Prompting large language models for quality ecological statistics
The DOI matches its Crossref record, with a small difference in title or year; 4 of the 4 references it cites were found in a registry or an index.
Abstract
Large language models (LLMs) are rapidly transforming scientific workflows, including ecological statistics and coding. While these AI tools offer impressive capabilities for code generation and scientific reasoning, their responses can be inconsistent, and they may mislead users about appropriate statistical methods. This perspective addresses the need for effective prompting guidelines to ensure consistent and appropriate advice on statistical analyses when using LLMs. We draw on the literature and create new evaluations of statistics and code written by LLMs. We use these examples to provide prompting strategies and a framework for statistical workflows that helps get accurate statistical advice and consistent code that is easier to understand. General advice for prompting is to be detailed and specific, include data context and break problems down into smaller parts. We recommend that researchers align prompts with the different stages of analyses workflows, including choosing a statistical analysis, planning the implementation and writing the code. We run evaluations of LLMs to show how including study context in prompts improves statistical recommendations and how being specific helps the LLMs write code that has a consistent style and is ecologically valid. By employing these prompting strategies, researchers can harness LLMs to improve rather than compromise statistical quality in ecological research. These principles also increase consistency of AI‐generated analysis code, which is key for maintaining human oversight and repeatability of research. Future research should focus on evaluations of LLMs for ecological statistics, development of specialized prompting strategies and integration of LLMs with traditional statistical approaches.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Figures
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“yet existing guidance treats prompting and verification as separate topics rather than as integrated components of a single risk management framework”
From A practical risk framework for large language model use in life science research (2026) · cites this paper as [5]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Do not log‐transform count data
O’Hara, R. B., & Kotze, D. J. (2010) · Methods in Ecology and Evolution · doi:10.1111/j.2041-210x.2010.00021.x · Cited by 1,268
LLMs Get Lost In Multi-Turn Conversation
Laban, P., Hayashi, H., Zhou, Y., & Neville, J. (2025) · arXiv · Cited by 419 · cited 4×
“Obtaining accurate and consistent results from LLMs depends on what you write in your prompt (Boonstra, 2024 ), as well as which LLM you choose to use (e.g. Laban et al., 2025 ) and which AI assis - tant software you use.”
InfluentialLarger and more instructable language models become less reliable
Zhou, L., Schellaert, W., Martínez-Plumed, F., Moros-Daval, Y., Ferri, C., & Hernández-Orallo, J. (2024) · Nature · doi:10.1038/s41586-024-07930-y · Cited by 203
LLMs as Research Tools: A Large Scale Survey of Researchers' Usage and Perceptions
Liao, Z., Antoniak, M., Cheong, I., Cheng, E. Y.-Y., Lee, A.-H., Lo, K., Chang, J. C., & Zhang, A. X. (2024) · arXiv · doi:10.48550/arxiv.2411.05025 · Cited by 7
Research works printed but not linked: 37
- Arif, Suchinta, and M. Aaron MacNeil. 2022. "Predictive Models Aren't for Causal Inference." Ecology Letters 25 (8): 1741-45. https://doi.org/https://doi.org/10.1111/ele.14033. · DOI
- Bolker, Benjamin M. 2024. "Multimodel Approaches Are Not the Best Way to Understand Multifactorial Systems." Entropy 26 (6). https://doi.org/10.3390/e26060506. · DOI
- Brown, Christopher J., David S. Schoeman, William J. Sydeman, Keith Brander, Lauren B. Buckley, Michael Burrows, Carlos M. Duarte, et al. 2011. "Quantitative Approaches in Climate Change Ecology." Global Change Biology 17 (12): 3697-3713. https://doi.org/https://doi.org/10.1111/j.1365-2486.2011.02531.x. · DOI · Paper page
- Culina, Ilona AND Evans, Antica AND van den Berg. 2020. "Low Availability of Code in Ecology: A Call for Urgent Action." PLOS Biology 18 (7): 1-9. https://doi.org/10.1371/journal.pbio.3000763. · DOI · Paper page
- Ellis, Amanda R, and Emily Slade. 2023. "A New Era of Learning: Considerations for ChatGPT as a Tool to Enhance Statistics and Data Science Education." Journal of Statistics and Data Science Education 31 (2): 128-33.
- Fordham, Damien A, Cleo Bertelsmeier, Barry W Brook, Regan Early, Dora Neto, Stuart C Brown, Sébastien Ollier, and Miguel B Araújo. 2018. "How Complex Should Models Be? Comparing Correlative and Mechanistic Range Dynamics Models." Global Change Biology 24 (3): 1357-70.
- Forstmeier, Wolfgang, Eric-Jan Wagenmakers, and Timothy H. Parker. 2017. "Detecting and Avoiding Likely False-Positive Findings -a Practical Guide." Biological Reviews 92 (4): 1941-68. https://doi.org/https://doi.org/10.1111/brv.12315. · DOI · Paper page
- Fraser, Tim AND Nakagawa, Hannah AND Parker. 2018. "Questionable Research Practices in Ecology and Evolution." PLOS ONE 13 (7): 1-16. https://doi.org/10.1371/journal.pone.0200303. · DOI · Paper page
- Gallo, Robert J, Michael Baiocchi, Thomas R Savage, and Jonathan H Chen. 2024. "Establishing Best Practices in Large Language Model Research: An Application to Repeat Prompting." Journal of the American Medical Informatics Association 32 (2): 386-90. https://doi.org/10.1093/jamia/ocae294. · DOI
- Gibert, Karina, Jeffery S. Horsburgh, Ioannis N. Athanasiadis, and Geoff Holmes. 2018. "Environmental Data Science." Environmental Modelling & Software 106: 4-12. https://doi.org/https://doi.org/10.1016/j.envsoft.2018.04.005. · DOI · Paper page
- 10.1111/cobi.13079 · DOI
- Brown C. &Spillias S.(2026).Code for the paper ‘Prompting large language models for quality ecological statistics’.https://doi.org/10.5281/zenodo.18463012 · doi:10.32942/x2cs80
- 10.1111/2041‐210X.13559 · DOI
- 10.1111/2041‐210X.14396 · DOI
- Onan, Aytuǧ, and Hesham Alhumyani. 2024. "Assessing the Impact of Prompt Strategies on Text Summarization with Large Language Models." In International Conference on Computer Applications in Industry and Engineering, 41-55. Springer. · DOI · Paper page
- Popovic, Gordana, Tanya Jane Mason, Szymon Marian Drobniak, Tiago André Marques, Joanne Potts, Rocío Joo, Res Altwegg, et al. 2024. "Four Principles for Improved Statistical Ecology." Methods in Ecology and Evolution 15 (2): 266-81. https://doi.org/https://doi.org/10.1111/2041-210X.14270. · DOI
- Shoemaker, Kevin T., and Kevin J. Loope. 2025. "We Need Better Ways to Re-Evaluate Conservation Policies When They're Founded on Flawed Research." Proceedings of the National Academy of Sciences 122 (19): e2426166122. https://doi.org/10.1073/pnas.2426166122. · doi:10.1073/pnas.2426166122
- 10.1111/2041-210X.14325 · DOI
- 10.1111/rssa.12276 · DOI · Paper page
- Gilbert, Neil A., Bruna R. Amaral, Olivia M. Smith, Peter J. Williams, Sydney Ceyzyk, Samuel Ayebare, Kayla L. Davis, Wendy Leuenberger, Jeffrey W. Doser, and Elise F. Zipkin. 2024. "A Century of Statistical Ecology." Ecology 105 (6): e4283. https://doi.org/https://doi.org/10.1002/ecy.4283. · DOI
- 10.1016/j.biocon.2017.04.024 · DOI
- Jansen, Jacqueline A, Artür Manukyan, Nour Al Khoury, and Altuna Akalin. 2025. "Leveraging Large Language Models for Data Analysis Automation." PloS One 20 (2): e0317084. · DOI
- Jenkins, Gareth B, Andrew P Beckerman, Céline Bellard, Ana Benı ́tez-López, Aaron M Ellison, Christopher G Foote, Andrew L Hufton, et al. 2023. "Reproducibility in Ecology and Evolution: Minimum Standards for Data and Code." Ecology and Evolution 13 (5): e9961. · DOI
- Ji, Wenlong, Weizhe Yuan, Emily Getzen, Kyunghyun Cho, Michael I Jordan, Song Mei, Jason E Weston, Weijie J Su, Jing Xu, and Linjun Zhang. 2025. "An Overview of Large Language Models for Statisticians." arXiv Preprint arXiv:2502.17814. · arXiv
- 10.1002/cbic.202500678 · DOI
- Messeri, Lisa, and MJ Crockett. 2024. "Artificial Intelligence and Illusions of Understanding in Scientific Research." Nature 627 (8002): 49-58.
- 10.1371/journal.pcbi.1000424 · DOI · Paper page
- 10.1038/s41559‐024‐02623‐1 · DOI
- 10.5670/oceanog.2025.109 · DOI
- 10.1111/2041‐210X.14341 · DOI · Paper page
- Sivarajkumar, Sonish, Mark Kelley, Alyssa Samolyk-Mazzanti, Shyam Visweswaran, and Yanshan Wang. 2024. "An Empirical Evaluation of Prompting Strategies for Large Language Models in Zero-Shot Clinical Natural Language Processing: Algorithm Development and Validation Study." JMIR Medical Informatics 12: e55318. · DOI · Paper page
- Touchon, Justin C, and Michael W McCoy. 2016. "The Mismatch Between Current Statistical Practice and Doctoral Training in Ecology." Ecosphere 7 (8): e01394.
- 10.1016/j.crsus.2024.100132 · DOI · Paper page
- Warton, David I., Mitchell Lyons, Jakub Stoklosa, and Anthony R. Ives. 2016. "Three Points to Consider When Choosing a LM or GLM Test for Count Data." Methods in Ecology and Evolution 7 (8): 882-90. https://doi.org/https://doi.org/10.1111/2041-210X.12552. · DOI · Paper page
- Wei, Jason, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. 2022. "Chain-of-Thought Prompting Elicits Reasoning in Large Language Models." Advances in Neural Information Processing Systems 35: 24824-37.
- 10.1111/2041‐210X.14454 · DOI
- Zhu, Yizhang, Shiyin Du, Boyan Li, Yuyu Luo, and Nan Tang. 2024. "Are Large Language Models Good Statisticians?" arXiv Preprint arXiv:2406.07815. · arXiv
Cited by
A practical risk framework for large language model use in life science research
Sharpton, T., Davis II, E. W., & Alexiev, A. (2026) · PLOS Computational Biology · doi:10.1371/journal.pcbi.1014776
Metadata
- Authors
- Brown, C. J., & Spillias, S.
- Affiliations
- Institute for Marine and Antarctic Studies University of Tasmania Hobart Tasmania Australia
- Centre for Marine Socioecology University of Tasmania Hobart Tasmania Australia
- Venue
- Methods in Ecology and Evolution
- Publisher
- Wiley
- Published
- 2026-03-06
- Volume
- 17
- Issue
- 4
- Pages
- 1012-1021
- ISSN
- 2041-210X
- Cited by
- 2
- References
- 4
- Language
- en
- Licence
- creativecommons.org/licenses/by/4.0/ (am)
- creativecommons.org/licenses/by/4.0/ (vor)
- doi.wiley.com/10.1002/tdm_license_1.1 (tdm)
- Funders
- Australian Research Council (FT210100792)
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.


