Agentic Distributional Regression: Conditional Density Estimation through Agent-Written Programs
Not on the map. Why?
Abstract (arXiv)
Artificial intelligence offers statisticians a new paradigm for modelling and analysing complex datasets. Agents based on large language models can reason about data and automate key stages of the statistical modelling workflow, from model fitting to validation. In this paper we propose a method that uses such an agent to estimate the conditional density of a response given a vector of covariates from an iid sample. The agent examines the sample, chooses a model for the conditional distribution of the response and the procedure to fit it, and returns the estimator as a short computer program. The program is built from a library of probability distributions. The returned law can therefore be a parametric distribution, a mixture or a multivariate factorization, with distribution parameters given by explicit formulas in the covariates. We call this approach agentic distributional regression (ADR). Unlike in the classical approach, the statistician no longer chooses the estimator, but asks an agent to build one. Treating the returned program as a random conditional density estimator, we derive a finite-sample error bound under assumptions on the number of admissible models and on the accuracy of the agent's fit, and an oracle inequality for the selection of a model among fitted candidates using independent validation data. Finally, assuming that, as the sample size grows, the agent selects the same smooth parametric model with probability tending to one and fits it accurately, we show that the estimated parameters are asymptotically normal. In simulation studies, on twelve real datasets and on a new dataset whose responses postdate the agents' training data, ADR with Claude Opus 5.5 has the best average performance among the existing methods from the statistical literature with which it is compared.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 18 of its 62 references that are in the map. Submitted 27 Oct 2026.
Builds on
18 of 62 references.
References · 18
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 9,589
- 2016Density estimation using Real NVPcited by 2,125
- 2019Normalizing Flows for Probabilistic Modeling and Inferencecited by 1,369
- 2014NICE: Non-linear Independent Components Estimationcited by 1,100
- 2022Diffusion Models in Vision: A Surveycited by 1,036
- 2024Data Interpreter: An LLM Agent For Data Sciencecited by 245
- 2019Learning Likelihoods with Conditional Normalizing Flowscited by 179
- 2024DS-Agent: Automated Data Science by Empowering Large Language Models with Case-Based Reasoningcited by 142
- 2024Automated Statistical Model Discovery with Language Modelscited by 47
- 2021Probabilistic Forecasting with Generative Networks via Scoring Rule Minimizationcited by 44
- 2025Probabilistic neural operators for functional uncertainty quantificationcited by 23
- 2023What Should Data Science Education Do with Large Language Models?cited by 16
6 more
- 2023Wasserstein Generative Regressioncited by 15
- 2021LinCDE: Conditional Density Estimation via Lindsey's Methodcited by 14
- 2018RFCDE: Random Forests for Conditional Density Estimationcited by 9
- 2024Conditional Density Estimation with Histogram Treescited by 7
- 2023Generative Quantile Regression with Variability Penaltycited by 5
- 2025Nonparametric estimation of conditional probability distributions using a generative approach based on conditional push-forward neural networkscited by 2
Built on by
Not cited yet.