replying to: A. Senior et al.; Scientific Reports https://doi.org/10.1038/s41598-025-90267-x (2025).
Over the past decade, analytical models leveraging the experimental power of the Geometric Framework for nutrition (GF) have advanced significantly in extracting insights from multidimensional data1,2,3,4,5. In a recent study6, I introduced the use of Thales’ theorem to analyse experimental data on appetite and nutrient intake. While supportive of the concept, Senior et al. (2025)7 critiqued my model, highlighting potential misestimations of the standard error and confidence intervals for the angle β. This angle was used to statistically test whether nutrient arrays align with the closest distance optimization (CDO) rule of dietary compromise (see6,8 for details).
Using simulations and a reanalysis of the Drosophila melanogaster data from my study, Senior et al. (2025)7 demonstrated two key points: (1) heteroscedastic models are required instead of the homoscedastic models I used, and (2) estimates of standard error and confidence intervals for the angle β depend on the proximity to the intake target (IT), that is, the nutrient balance animals select when given a choice. Senior et al. (2025)7 offered heuristic explanations for these findings and suggested that the delta method could improve accuracy when using trigonometric functions. They also emphasised the need for further theoretical development to address these issues comprehensively.
I welcome the engagement of Senior et al. (2025)7 and endorse their call for more theoretical work in nutritional ecology. I was delighted by the delta method’s ability to accurately estimate standard errors and confidence intervals, enabling correct statistical inferences with my proposed model. However, an important question remains: why are the angle β estimates influenced by the distance to the IT? While Senior et al. (2025)7 heuristic argument offered valuable insights, I believe further formalisation is needed, and I aim to address that here.
Recall from Morimoto6 and the law of cosines that the angle \(\beta\) is calculated as:
Where s is the length between the origin and the average intake of an unbalanced diet U, h is the length between the origin and the IT, which is also the diameter of the Thales’ circle in the method, and t is the Euclidean distance between the IT and the intake in the unbalanced diet. Senior et al. (2025) claimed that standard errors are wider as the intake of an unbalanced diet U approaches the IT (Fig. 1a). In the GF framework, this happens if diet U was designed (purposefully or serendipitously) and used in no-choice experiments with PC ratios near that of the IT8,9.
Thales’ theorem applied to nutrition. (a) Geometric construction to show that the estimates of the angle \(\beta\) become unstable as U approaches the IT. (b) Landscape of the estimated standard deviation of a simulated mesh of nutrient intakes with known normally distributed noise with mean = 0 and standard deviation = 0.2. This illustrates that the standard deviation becomes unstable in a symmetric way as U approaches the IT. (c) The estimates of the angle \(\beta\) in the same noisy landscape as in panel (b) to highlight that, despite instabilities in the estimates of the standard deviation, error, and confidence intervals, the angle \(\beta\) is nevertheless a useful proxy for the CDO rule of dietary compromise.
The inverse cosine function \(\cos^{ - 1} (x)\) used in Eq. (1) has domain [− 1, 1]. Notice that this function is non-linear in its domain and the absolute magnitude of its gradient increases as the input value x approaches the domain boundaries (i.e. \(\frac{d}{dx}\cos^{ - 1} (x) = - \frac{1}{{\sqrt {(1 - x^{2} )} }}\)). This means that estimates of the angle \(\beta\) will vary proportionally more as x approaches the boundaries, that is, as \(x \to \pm 1.\) For the sake of argument, let’s focus on the case where x \(\to\) 1, although the logic is the same when x \(\to\) − 1. As the domain interval is closed, let x = 1 which means that in Eq. (1), \(\cos^{ - 1} (1)\) when \(s^{2} + t^{2} - h^{2} = 2st\). Simplifying this, we find that \(\cos^{ - 1} (1)\) when \(h = s - t\) (see Appendix I). To show that estimates of the angle \(\beta\) are more variable, we therefore need to show that as the intake of a diet U approaches the IT, then \(h \to s - t\).
Let’s consider a diet U that is some distance y to the IT as shown in Fig. 1a. With some geometric constructions and projections, we have the following relationships.
What happens to these equations when U \(\to\) IT? Another way of stating this is ‘what happens when \(y \to 0\)?’ (Fig. 1a) This means that:
-
(a)
\(t^{2} \to x^{2}\) which also implies that \(t \to x\) (using Eq. 2)
-
(b)
\(\alpha \to 0\) and \(\sin (\alpha ) \to 0\) such that \(x^{\prime} \to \sqrt {0 + x^{2} }\) and \(x^{\prime} \to x\) using Eqs. (3) and (4).
-
(c)
\(\delta \to 0\) as the distance between the horizontal line y becomes tangent to the Thales’ circle at the IT. This also means that \(s \to s^{\prime} + x^{\prime}\) in Eq. (5).
-
(d)
Note that \(x^{\prime} \to x\) (b) and \(t \to x\) (a), then \(s \to s^{\prime} + x^{\prime}\) is equivalent to \(s^{\prime} \to s + t\)
-
(e)
As both \(\delta\) (above) and \(y\) (by definition) \(\to\) 0, Eq. (6) then leads us to \(h \to s^{\prime}\)
-
(f)
Substituting this in (d), we have that as \(y \to 0\) then \(h \to s - t\), which is what we needed to show that estimates of the angle \(\beta\) become more variable as the intake of diet U \(\to\) IT.
To show how this looks like within the GF context, I used the software R version 4.3.210 to run simulations showing how the standard deviation (which is related to the standard error) of the angle \(\beta\) changes across a GF landscape. For the simulation, I created a mesh which simulated the nutrient intakes across a range of 0 to 10 for both protein (x-axis) and carbohydrates (y-axis). For each point, I added a random noise from a normal distribution using the ‘rnorm’ function parameters of mean = 0 and standard deviation = 0.2. The IT was set at the coordinates (Protein = 6, Carbohydrate = 6) and as in Senior et al. (2025)7, was assumed to be known with perfect knowledge (i.e. no error associated with IT estimates). Figure 1b shows that standard deviation of the angle \(\beta\) indeed increases as the estimates approach the intake target. It also increases next to the origin for the same reasons as mentioned above (Fig. 1b). Having said that, neither I nor Senior et al. (2025)7 have a definitive solution to solve the instability of the estimates of the standard errors near the IT when using the Thales’ method. While the delta method appears promising as shown by Senior et al. (2025), we still lack a formal study to ascertain its suitability. Thus, until this is done, I agree with Senior et al. (2025)7 advice to exercise caution when using the Thales method for statistical inferences. From the simulation, it appears that the effect is symmetric in both x and y-axis which may help approaches such as the multivariate approach of the delta method assuage the effect and improve statistical inferences.
Despite these criticisms, the Thales’ method remains a valid even if as a qualitative tool for understanding dietary compromise rules. This is because animals following the CDO rule will by definition have average angle β estimates close to 90°. Figure 1c illustrates angle β estimates within the same noisy landscape, demonstrating the method’s utility. As expected, average angle β values increase when the intake of an unbalanced diet (U) falls within the Thales’ circle, while estimates near the circle approach 90°. Thus, the Thales’ method continues to be a valuable approach for evaluating nutrient intake patterns.
An encouraging finding from Senior et al. (2025)7 is their reanalysis of the Drosophila dataset from Lee et al.11. Using Welch’s heteroscedastic models, they concluded that neither equal distance nor CDO fully explains macronutrient regulation in females. This aligns with my original conclusions using the Thales’ theorem with a homoscedastic model, where I found that flies follow the CDO rule when diets are protein-rich but deviate from it as diets become carbohydrate-rich (see Figure 2a,b in the original paper)6. While this does not suggest fitting an incorrect model, it underscores the overarching value of the Thales’ method.
Increased intake variance near the IT may not merely result from statistical artifacts but could reflect underlying biological mechanisms. GF studies suggest that performance landscapes for traits across diets often form ‘plateaus’ of maximum expression (see e.g.3,5,11,12,13,14 and others). This implies that individuals might tolerate deviations from their IT without significant fitness costs as long as these deviations remain within the plateau (Fig. 1a). In contrast, larger deviations from IT, taking individuals off the plateau, could act as filters that reduce variance in nutrient intake. Animals feeding closer to the IT might exhibit greater variability in nutrient intake without incurring fitness costs.
This idea aligns with Simpson et al.’s (2004)15 assumptions that fitness costs increase “continuously and smoothly” with distance from IT. Under these assumptions, animals would optimize their intake to minimize this distance, shaping their nutrient array and performance landscape geometry. Deviations from IT on costly diets (i.e., off of the IT) would be penalised, possibly non-linearly15, resulting in narrower feeding ranges for animals further from IT. Simpson et al.’s (2004)15 Figure 5a visually supports this, showing increased errors when dietary intakes neared the plateau. I reanalysed data from Lee et al. (2008)11 which also supports this pattern, particularly for carbohydrates and, to a lesser extent, proteins (Fig. 2). This raises intriguing questions for future research and will certainly uncover new biological patterns, provided the field adopts stronger open-data policies to enhance experimental power and collaboration13,16.
Standard deviation of dietary intake in nutritional rails of varying distances from the IT in Drosophila. Red diamond highlights the standard deviation in the intake of the rail associated with the IT. For carbohydrates, there is almost a linear decline in standard deviation with the distance of the nutritional rail from the IT. For proteins, a similar pattern is found, although standard deviation was higher for diets with increasing protein content, which highlights interesting physiological differences between the regulation of protein and carbohydrates in Drosophila11. Distance from IT was estimated as the Euclidean distance from the average dietary intake for the nutritional rail and the IT, divided by the total intake in the nutritional rail. Dividing by the total intake in the nutritional rail did not change the patterns shown. Standard deviation was estimated using the `sd()’ function in R from the raw data. Data form Lee et al. (2008)11.
In sum, I agree with Senior et al. (2025)7 that further theoretical work is needed to formalise the sampling distributions and statistical inferences using angles and confidence intervals. Advancing our understanding of the hidden patterns in animal nutritional ecology will require a concerted effort combining new theoretical frameworks, analytical models, and empirical data.
References
Morimoto, J. & Lihoreau, M. Quantifying nutritional trade-offs across multidimensional performance landscapes. Am. Nat. 193, E168–E181 (2019).
Morimoto, J., Conceição, P., Mirth, C. & Lihoreau, M. Nutrigonometry I: using right-angle triangles to quantify nutritional trade-offs in performance landscapes. Am. Nat. 201, 725–740 (2023).
Rapkin, J. et al. The geometry of nutrient space-based life-history trade-offs: sex-specific effects of macronutrient intake on the trade-off between encapsulation ability and reproductive effort in decorated crickets. Am. Nat. 191, 452–474 (2018).
Del Castillo, E., Chen, P., Meyers, A., Hunt, J. & Rapkin, J. Confidence regions for the location of response surface optima: the R package OptimaRegion. Commun. Stat. Simul. Comput. 51, 7074–7094 (2022).
Pascacio-Villafán, C. et al. Diet quality and conspecific larval density predict functional trait variation and performance in a polyphagous frugivorous fly. Funct. Ecol. 36, 1163–1176 (2022).
Morimoto, J. Nutrigonometry IV: Thales’ theorem to measure the rules of dietary compromise in animals. Sci. Rep. 13, 7466 (2023).
Senior, A. M., Andrews, Caitlin J., Simpson, S. J. & Raubenheimer, D. A caveat about the use of trigonometric functions in statistical tests of Nutritional Geometry models. Sci. Rep.. https://doi.org/10.1038/s41598-025-90267-x (2025).
Raubenheimer, D. & Simpson, S. J. The geometry of compensatory feeding in the locust. Anim. Behav. 45, 953–964 (1993).
Simpson, S. J. & Raubenheimer, D. A multi-level analysis of feeding behaviour: the geometry of nutritional decisions. Philos. Trans. R. Soc. Lond. B Biol. Sci. 342, 381–402 (1993).
R Core Team, R. R: A language and environment for statistical computing (2013).
Lee, K. P. et al. Lifespan and reproduction in Drosophila: New insights from nutritional geometry. Proc. Natl. Acad. Sci. 105, 2498–2503 (2008).
Rodrigues, M. A. et al. Drosophila melanogaster larvae make nutritional choices that minimize developmental time. J. Insect Physiol. 81, 69–80 (2015).
Morimoto, J. Optimum ratio of dietary protein and carbohydrate that maximises lifespan is shared among related insect species. Aging Cell 23, e14067 (2024).
Ng, S. H., Simpson, S. J. & Simmons, L. W. Macronutrients and micronutrients drive trade-offs between male pre- and postmating sexual traits. Funct. Ecol. 32, 2380–2394 (2018).
Simpson, S. J., Sibly, R. M., Lee, K. P., Behmer, S. T. & Raubenheimer, D. Optimal foraging when regulating intake of multiple nutrients. Anim. Behav. 68, 1299–1311 (2004).
Morimoto, J. & Lihoreau, M. Open data for open questions in comparative nutrition. Insects 11, 236 (2020).
Acknowledgements
I would like to thank Dr Irakli Patchkoria for comments that help clarify the arguments presented here.
Author information
Authors and Affiliations
Contributions
JM is the sole author of this article and therefore was responsible for analysing the data, generating the figures as well as writing and revising the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Appendix I
Appendix I
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Morimoto, J. Reply to: A caveat about the use of trigonometric functions in statistical tests of Nutritional Geometry models. Sci Rep 15, 8322 (2025). https://doi.org/10.1038/s41598-025-90231-9
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-90231-9