cd /news/ai-research/inference-after-coding-agents · home › topics › ai-research › article
[ARTICLE · art-172480] src=arxiv.org ↗ pub= topic=ai-research verified=true sentiment=↓ negative

Inference After Coding Agents

A paper submitted to arXiv on 17 November 2026 by David Van Dijcke finds that four frontier AI coding agents report significant p-values between 54% and 98% of the time on simulated data with zero effects when asked to produce a compelling finding. The paper argues coding agents enable a supercharged form of selective inference and proposes a correction that replays an agent on subsamples of the data to estimate its relative probability of selecting an analysis when it looks statistically favorable. In simulations, the correction lowers the high false rejection rates to near the nominal 5%.

recommendation

When an agent runs hypothesis tests, replay it on data subsamples to estimate how often it picks that analysis when results look favorable, then correct for the selection bias.

more in playbook: Evals and testing for LLM apps
read2 min views9 publishedNov 19, 2026
Inference After Coding Agents
Image: source
  [Submitted on 17 Nov 2026]


[View PDF](https://arxiv.org/pdf/2611.23174)

[HTML (experimental)](https://arxiv.org/html/2611.23174v1)

Abstract:Empirical research is changing rapidly as AI coding agents are becoming increasingly proficient in every step of it, from writing code to manipulating data. We argue that while the potential of coding agents for science is vast, their use in hypothesis testing poses a substantial threat to classical inference, as these agents enable a supercharged form of selective inference. In particular, we argue that coding agents carrying out empirical research introduce a new type of post-selection inference that combines human-like, open-ended search over an implicit space of estimators with programmatic replayability of both the selection and the estimation process. Indeed, we find that on simulated data with zero effects, four frontier agents report significant p-values between 54% and 98% of the time when asked to produce a compelling finding. We propose a simple procedure for detecting and correcting these distortions. After an agent has completed its analysis, we reset and replay it on subsamples of the data to estimate the agent's relative probability of selecting that analysis when it looks statistically favorable. For agents with stable selection behavior, the resulting corrected test is asymptotically valid and consistent conditional on selection. Importantly, the correction is learned from the black-box agent's actual choices rather than a model of how it searches, so it remains valid even as AI technology continues to evolve rapidly. In simulations, the correction robustly lowers the high false rejection rates to near the nominal 5%. We illustrate the method on applications from two published papers.

Submission history #

From: David Van Dijcke [
[view email](https://arxiv.org/show-email/700b431a/2611.23174)]

**[v1]** Tue, 17 Nov 2026 18:22:01 UTC (3,472 KB)

Current browse context:

stat.ME

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #ai-research 4 stories · sorted by recency
── more on @david van dijcke 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/inference-after-codi…] indexed:0 read:2min 2026-11-19 · —