TRANSMISSION // 2608.07437v2

Can AI agents choose the right statistical test?

Source published

Fisher-R1 is an AI agent trained to carry out hypothesis tests. On a 425-task benchmark, it improved on its underlying model, but important limits remain.

AI-generated conceptual illustration for Can AI agents choose the right statistical test?
AI-generated conceptual illustration; not documentary evidence.

A program can run flawlessly and still answer a scientific question incorrectly. A new benchmark tests whether AI agents can choose suitable statistical methods—not just write code—and reports gains from training an agent with verified statistical rewards.

When correct code gives the wrong answer

A statistical program can run without errors and still produce a misleading scientific conclusion. The problem may be the choice of test: a method can calculate a precise p-value while relying on assumptions that do not fit the data or research question.

That is the challenge examined in Fisher-R1: Training LLM Agents for Reliable Hypothesis Testing. Jiacheng Miao and colleagues study AI agents that inspect datasets, write and run code, and report statistical conclusions. Their concern is that standard data-analysis benchmarks may reward working code or a plausible final answer without checking whether the method and reported p-value are appropriate.

The paper gives a simple illustration: a few influential outliers can make a linear regression appear to show an association. In the example, an agent notices the outliers but still uses linear regression; a rank-based test instead fails to reject the null hypothesis. The point is not that one test is always best, but that choosing a method requires statistical judgment, not just successful execution.

A benchmark for the whole testing task

The team created P-Bench, a set of 425 open-ended tasks drawn from economics, biology, and medicine. Each task supplies a research question and dataset, but does not tell the agent which statistical test to use. The agent must select a method, run the analysis in an R environment, report a p-value, and decide whether to reject the null hypothesis.

The benchmark’s answer keys come from executable reference analyses connected to published research or authoritative teaching materials. The authors say they reproduced the analyses, checked that the results aligned with published claims, and had domain experts audit the tasks. The benchmark includes 17 method categories, such as t-tests, survival analysis, and instrumental-variable methods. Some tasks also include data problems or statistical traps, including outliers, missing values, and clustered observations.

The researchers then trained Fisher-R1, an open-weight agent built on Qwen2.5-Coder models. Training combined examples of analysis workflows with reinforcement learning: the agent received rewards for reporting a p-value close to the reference and making the matching reject-or-not decision. Training tasks were synthetic, rather than drawn from P-Bench. The authors compared the trained models with their original backbones and with other open-source and proprietary systems. They tested each task with repeated independent attempts, reporting both conclusion accuracy and a stricter score that also required a sufficiently close p-value.

Better scores, but not a solved problem

On P-Bench, Fisher-R1 improved substantially over its underlying models. For example, the 14-billion-parameter version achieved 33.0% on the paper’s strict single-attempt score for the harder tasks, compared with 23.7% for its untrained backbone. The strict score matters because an agent can reach the right reject-or-not decision while reporting a p-value that differs considerably from the reference.

The authors report that Fisher-R1-14B exceeded GPT-5.4 on three of the four strict-score comparisons across the easy and hard splits and single- and three-attempt settings. It did not win every comparison: GPT-5.4 scored slightly higher on the easy split’s strict single-attempt result. Performance was also weaker on the harder tasks than on the easier ones. These results show improvement on this benchmark, not that the trained agent can reliably handle every scientific analysis.

A review of one set of model runs found that Fisher-R1 corrected some failures of its underlying model, especially failures to complete the task successfully. Remaining errors often involved specifying the model or analysis design and handling perturbed or low-quality data. The authors also found a large gap between getting the conclusion right and matching the reference p-value, underscoring why a correct-sounding conclusion alone can overstate reliability.

What the results cannot establish

P-Bench is a useful test, but its answer key is tied to a canonical reference analysis. Different procedures may sometimes be defensible, and the authors acknowledge that method choice is assessed indirectly through how closely the resulting p-value matches that reference. A benchmark score therefore does not establish that one analysis is uniquely correct in every real-world setting.

The evaluation also has a defined scope: frequentist tests of single hypotheses using a prespecified significance threshold. It does not test multiple-comparison correction, Bayesian evidence, choosing the threshold, or whether an effect matters in practice. The authors describe Fisher-R1 and P-Bench as tools for evaluation and oversight, not substitutes for statistical review.

The source is an arXiv preprint that identifies itself as a NeurIPS 2026 paper. This account is based on the supplied paper text and abstract; it does not independently verify the code, benchmark, or results. As with any reported benchmark, conclusions may depend on task design, scoring rules, and the systems compared. The findings support a narrower takeaway: training with verified statistical rewards improved performance on the authors’ test set, while meaningful inferential errors remained.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.