SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.07815 · NeurIPS · 2024

Are Large Language Models Good Statisticians?

Boyan Li, Nan Tang, Yizhang Zhu, Shiyin Du, Yuyu Luo, Correla�on Pearson, Coefficient

arXiv · PDF · Open in the Atlas

Code that ran

8 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2406.07815.json · badge: /api/ran/2406.07815.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
derrickzhuyz/statqa canonical (classifier label)
classifier basis: census
8 ran · 0 no recorded run
FunctionStatusWhere it lives
adjust_difficulty_for_benchmark Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/Construction/benchmark_balancing.py
pointer only (licence: GPL-3.0) · get_code("0f221deb0d99d0ac")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compare_and_count_answer_row Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/analyze_model_answer.py
pointer only (licence: GPL-3.0) · get_code("0d6eb666267a07a1")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

filter_not_applicable Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/Construction/benchmark_postprocessing.py
pointer only (licence: GPL-3.0) · get_code("25b96370b6e5e212")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_categorical Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/utils.py
pointer only (licence: GPL-3.0) · get_code("210bb3d7d71304d8")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

is_quantitative Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/utils.py
pointer only (licence: GPL-3.0) · get_code("d46d776b53eab8dd")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mock_paraphrase_question_gpt Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/Construction/benchmark_balancing.py
pointer only (licence: GPL-3.0) · get_code("1415fc951e81f32d")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mock_refine_question_gpt Ran
ran; our contract draft was wrong, not the code
derrickzhuyz/statqa/Construction/gpt_refine_question.py
pointer only (licence: GPL-3.0) · get_code("39716b18bfa7f20e")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_answer_score_policy Ran
ran, honoured the contract we drafted
derrickzhuyz/statqa/analyze_model_answer.py
pointer only (licence: GPL-3.0) · get_code("8a8442ec614a7b93")
How it ran

The body of this sample is withheld: GPL-3.0, as GitHub detects it on this paper's repository, derrickzhuyz/statqa, is not in the permissive set Syntology serves inline. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large Language Models (LLMs) have demonstrated impressive capabilities across a range of scientific tasks including mathematics, physics, and chemistry. Despite their successes, the effectiveness of LLMs in handling complex statistical tasks remains systematically under-explored. To bridge this gap, we introduce StatQA, a new benchmark designed for statistical analysis tasks. StatQA comprises 11,623 examples tailored to evaluate LLMs' proficiency in specialized statistical tasks and their applicability assessment capabilities, particularly for hypothesis testing methods. We systematically experiment with representative LLMs using various prompting strategies and show that even state-of-the-art models such as GPT-4o achieve a best performance of only 64.83%, indicating significant room for improvement. Notably, while open-source LLMs (e.g., LLaMA-3) show limited capability, those fine-tuned ones exhibit marked improvements, outperforming all in-context learning-based methods (e.g., GPT-4o). Moreover, our comparative human experiments highlight a striking contrast in error types between LLMs and humans: LLMs primarily make applicability errors, whereas humans mostly make statistical task confusion errors. This divergence highlights distinct areas of proficiency and deficiency, suggesting that combining LLM and human expertise could lead to complementary strengths, inviting further investigation into their collaborative potential. Our source code and data are available at https://statqa.github.io/.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2406.07815")
get_code_for_paper("2406.07815")
have("2406.07815")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2406.07815.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2406.07815.svg)](https://syntology.ai/paper/2406.07815)

Connect an agent — have() is free.