AI-Predicted Variables in Statistical Inference
Published:
1. Introduction
AI/ML-predicted data (used either as dependent or independent variables) are valuable for social scientists, but they threaten our work in two ways: biased estimation (the estimated effects are not correct) and incorrect inference (a higher rate of type I error, because ignoring the error in our generated data narrows the standard errors of our estimators).
AI-predicted data come in many forms: text classification, image segmentation, image classification, and so on. This note brings together papers covering different types of predicted data, but they all come down to a similar and well-known problem: measurement error.
Fortunately, many researchers have thought about this problem before, and we are now well equipped to deal with it! This short note helps navigate the literature on the subject and provides a broad overview of the field.
2. Is this really a problem?
Yes. Egami et al. (2023) show that even very accurate classifiers (80–90% accuracy in binary text classification tasks) make errors that bias downstream regressions, and TeBlunthuis, Hase & Chan (2024) show that reporting accuracy or F1 scores offers little guarantee. The same holds for continuous predictions from imagery (Proctor, Carleton & Sum 2023) and for labels produced from images (Rister Portinari Maranca et al. 2025).
Furthermore, the bias and variance issues are not limited to regression coefficients: they concern every estimated quantity describing a distribution, such as the mean, standard deviation or median. Even simple descriptive reporting of a variable should therefore account for these errors.
Notation
- \(X\) and \(Y\): the ground truth for the regressor and the outcome.
- \(\tilde{X}\) and \(\tilde{Y}\): the AI-predicted values used in their place.
- \(W\): control variables, where relevant.
- The target model, which we would estimate if we observed the truth:
3. Types of measurement error
Keogh et al. (2020) is the reference paper on measurement error in epidemiology, and most later papers borrow heavily from it. Proctor, Carleton & Sum (2023) adapt it to econometrics and, by extension, to the social sciences. Their Appendix C deserves special mention: it derives the bias of the estimators for each type of measurement error (link).
All six error types below are special cases of one model: the linear measurement error model (Keogh et al. 2020). Each prediction is written as a shifted, rescaled and noisy version of the truth:
\[\tilde{X} = \theta_x + \lambda_x X + u_x \qquad \tilde{Y} = \theta_y + \lambda_y Y + u_y\]- \(\theta\) is a constant shift.
- \(\lambda\) is a scale factor; \(\lambda = 1\) means the prediction moves one-for-one with the ground truth.
- \(u\) is the remaining noise, with mean zero.
Each type restricts \(\theta\) or \(\lambda\), or specifies what the noise \(u\) depends on. The equations are written for \(\tilde{X}\); the same structures apply to \(\tilde{Y}\).
3.1 Classical error
The predictions are correct on average (unbiased) but include additional noise. The noise is uncorrelated with the true value, with the other variables of the model and with any control.
\[\tilde{X} = X + u, \qquad E[u] = 0, \qquad u \perp X, Y, W\]Example: the detection of a given urban element is noisy because of random variation in lighting, cars in the picture, etc.
3.2 Berkson error
The true values scatter around the predicted values:
\[X = \tilde{X} + v, \qquad E[v] = 0, \qquad v \perp \tilde{X}\]Example: a calibrated CNN gives each tract the average trash count of tracts that look like it. Tracts that look alike can still differ, for instance because some trash is not visible in SVI, so the true values scatter around the predicted values. Assigning a tract-level count to every block in the tract creates the same structure.
3.3 Systematic bias (constant shift)
The prediction is off by the same amount for every unit.
\[\tilde{X} = X + \theta\]The shift must be identical across units and periods to stay a pure shift. If it differs across areas or imagery vintages, it becomes covariate-dependent error (Section 3.6).
Example: if the camera car’s own body at the bottom of each panorama is labelled as a vehicle, every image’s vehicle share receives roughly the same addition.
3.4 Mean reversion
The prediction compresses the range of the true value toward a central value \(c\): high values are under-predicted and low values over-predicted. This is the default behavior of models trained to minimize squared error, which shrink toward the mean of their training data.
\[\tilde{X} = c + \lambda (X - c) + u, \qquad 0 < \lambda < 1\]The central value \(c\) is the mean of the data the model learned from. It differs from the mean of our data when the model was trained on another city or population. Misclassification of a binary variable is a special case, with \(\lambda\) equal to sensitivity plus specificity minus one.
Example: encampment counts from segmentation. On heavily encamped streets, tents overlap or hide behind fences and cars, so ten tents may be counted as six. On streets with none, a construction tarp or a canopy produces false positives, so a true zero becomes one or two.
3.5 Differential error
The error in one variable depends on the other variable of the model: the error in \(\tilde{X}\) depends on \(Y\), or the error in \(\tilde{Y}\) depends on \(X\).
\[\tilde{X} = X + \gamma Y + u \quad \text{or} \quad \tilde{Y} = Y + \gamma X + u\]Example: we estimate the effect of greenery coverage (\(X\), measured without error) on pedestrian street use (\(\tilde{Y}\), detected in images). Vegetation makes pedestrians harder to detect, so the error in \(\tilde{Y}\) is largest where \(X\) is high.
3.6 Covariate-dependent error
The error depends on a third variable \(W\), such as neighborhood characteristics or image capture date, which is not the variable being studied.
\[\tilde{X} = X + \delta W + u\]The dependence can also affect prediction quality rather than the level: \(\lambda\), the noise or the misclassification rates may differ across values of \(W\).
Example: Street View refreshes images more often in some neighborhoods, and leaf-off winter images reveal more street equipment than summer images. Predicted counts then depend on capture season, which varies by neighborhood, or even by city.
4. Effects on the mean and the standard deviation
Classical and Berkson errors do not bias the mean, but they bias the variance and standard deviation. A shift, mean reversion toward an outside value, and differential or covariate-dependent error bias the mean itself.
We estimate the true mean \(\mu = E[X]\) and standard deviation \(\sigma_X\) with the sample mean and standard deviation of \(\tilde{X}\). The expressions below give what these estimators converge to; the same results hold for \(\tilde{Y}\). Standard errors computed from predictions also ignore the uncertainty of the prediction model itself.
4.1 Classical error
\[E[\tilde{X}] = \mu \qquad \operatorname{SD}(\tilde{X}) = \sqrt{\sigma_X^2 + \sigma_u^2} \; > \; \sigma_X\]The mean is unbiased, but the standard deviation is overstated: the noise adds variation that does not exist.
4.2 Berkson error
\[E[\tilde{X}] = \mu \qquad \operatorname{SD}(\tilde{X}) = \sqrt{\sigma_X^2 - \sigma_v^2} \; < \; \sigma_X\]The mean is unbiased, provided the model is calibrated on the population being analysed. The standard deviation is understated, because the prediction leaves out the scatter of true values around predicted values.
4.3 Systematic bias
\[E[\tilde{X}] = \mu + \theta \qquad \operatorname{SD}(\tilde{X}) = \sigma_X\]The mean is biased by the shift; the standard deviation is unaffected, since the shift is constant.
4.4 Mean reversion
\[E[\tilde{X}] = \mu + (1 - \lambda)(c - \mu) \qquad \operatorname{SD}(\tilde{X}) = \sqrt{\lambda^2 \sigma_X^2 + \sigma_u^2}\]The mean is unbiased only if the central value \(c\) equals our mean \(\mu\), i.e. the model was trained on the same population. Otherwise, the mean is pulled toward \(c\). The standard deviation is usually understated, since \(\lambda < 1\) compresses the range. Large noise can offset this.
4.5 Differential error
\[E[\tilde{X}] = \mu_X + \gamma \mu_Y \qquad E[\tilde{X} \mid Y = y_1] - E[\tilde{X} \mid Y = y_0] = \Delta_{\text{true}} + \gamma (y_1 - y_0)\]The mean is shifted by \(\gamma\) times the mean of the other variable. Comparisons across levels of the other variable are biased by \(\gamma\) per unit of difference, which can create a gap where none exists. The standard deviation is biased; the direction depends on \(\gamma\) and on the correlation between \(X\) and \(Y\).
4.6 Covariate-dependent error
\[E[\tilde{X}] = \mu + \delta E[W] \qquad E[\tilde{X} \mid W = w_1] - E[\tilde{X} \mid W = w_0] = \Delta_{\text{true}} + \delta (w_1 - w_0)\]The mean is shifted by \(\delta E[W]\). Even when this averages out, subgroup means by \(W\), or by anything correlated with \(W\), remain biased. The standard deviation is biased; the direction depends on \(\delta\) and on the correlation between \(X\) and \(W\). If prediction quality differs by \(W\), the spread differs by group too.
4.7 Summary
| Type | Mean | Standard deviation |
|---|---|---|
| Classical | Unbiased | Overstated |
| Berkson | Unbiased, if calibrated on this population | Understated |
| Systematic bias | Shifted by \(\theta\) | Unchanged |
| Mean reversion | Pulled toward \(c\); unbiased only if \(c = \mu\) | Usually understated; overstated for rare binary detections |
| Differential | Shifted by \(\gamma \mu_Y\); comparisons across \(Y\) biased | Biased; direction depends on \(\gamma\) and \(\operatorname{Cov}(X, Y)\) |
| Covariate-dependent | Shifted by \(\delta E[W]\); comparisons across \(W\) biased | Biased; direction depends on \(\delta\) and \(\operatorname{Cov}(X, W)\) |
5. How to solve the problem
The three main methods share one requirement: a labelled subsample, i.e. a set of units for which we observe the ground truth as well as the prediction. They differ in how they use it.
- Prediction-powered inference (PPI) measures the average error of the estimator on the labelled units and subtracts it.
- Design-based supervised learning (DSL) builds a corrected value for each unit, using known labelling probabilities.
- Multiple imputation (MI) models the truth given the prediction, then imputes it for the unlabelled units.
Common setup for this section:
- Unlabelled sample, of size \(N\): we observe the prediction and the other analysis variables, e.g. \((\tilde{Y}_i, X_i)\).
- Labelled sample, of size \(n\): we also observe the truth, \((Y_j, \tilde{Y}_j, X_j)\).
- \(\hat\beta_N(\tilde{Y})\) is the OLS coefficient of \(\tilde{Y}\) on \(X\) in the unlabelled sample; \(\hat\beta_n(\tilde{Y})\) and \(\hat\beta_n(Y)\) are the coefficients of \(\tilde{Y}\) and of \(Y\) on \(X\) in the labelled sample.
Every estimator in this note (mean, OLS, logit, Poisson) solves a moment condition written with the truth, \(E[m(Y, X; \beta)] = 0\). Plugging in the prediction shifts that moment by \(E[m(\tilde{Y}, X; \beta) - m(Y, X; \beta)]\). Section 3 describes when this shift is non-zero; the methods below estimate it and remove it.
5.1 Prediction-powered inference (Angelopoulos et al. 2023)
Idea. Compute the estimator on the predictions for the full sample, then subtract a “rectifier”: the average prediction error, estimated on a randomly drawn labelled subsample. For a mean:
\[\hat\mu^{PP} = \underbrace{\frac{1}{N}\sum_{i=1}^{N} \tilde{Y}_i}_{\text{prediction-based estimate}} \; - \; \underbrace{\frac{1}{n}\sum_{j=1}^{n} (\tilde{Y}_j - Y_j)}_{\text{rectifier}}\]For an OLS regression with a predicted outcome:
\[\hat\beta^{PP} = \hat\beta_N(\tilde{Y}) - \big[\hat\beta_n(\tilde{Y}) - \hat\beta_n(Y)\big]\]The second regression estimates how the prediction error moves with \(X\), i.e. the differential-error term of Section 3. For general estimators (logit, Poisson, quantiles), the same correction is applied to the loss function. PPI++ (Angelopoulos, Duchi & Zrnic 2024) adds a weight \(\lambda\) on the predictions, chosen from the data to minimise variance:
\[\hat\beta^{PP}(\lambda) = \hat\beta_n(Y) + \lambda \big[\hat\beta_N(\tilde{Y}) - \hat\beta_n(\tilde{Y})\big]\]\(\lambda = 0\) uses the labelled units only; \(\lambda = 1\) is plain PPI. Variance (for the mean):
\[\operatorname{Var}(\hat\mu^{PP}) \approx \frac{\operatorname{Var}(\tilde{Y})}{N} + \frac{\operatorname{Var}(\tilde{Y} - Y)}{n}\]Pros
- No model of the error: valid whatever its structure (classical, mean reversion, differential, covariate-dependent).
- Works for means, quantiles, regression coefficients and nonlinear models (logit, Poisson), for predicted outcomes and predicted regressors.
- Simple to implement, with analytic standard errors.
- With PPI++, never less precise than using the labelled units alone.
Cons
- The labelled subsample must be a random draw from the population analysed (Kluger et al. 2025 extend it to known, unequal sampling probabilities).
- The prediction model must not be trained on the labelled units, or their errors will look too small; use a separate training set or cross-fitting.
- One correction per estimand: each new statistic or regression needs its own rectifier.
- Precision depends on the number of labelled units and on how accurate the predictions are.
5.2 Design-based supervised learning (Egami et al. 2023; Rister Portinari Maranca et al. 2025)
Idea. Choose which units to hand-label, with known probabilities \(\pi_i\). Fit a machine learning model \(\hat{g}\) predicting the truth from the prediction and the covariates, using cross-fitting. Then build a bias-corrected pseudo-outcome for every unit:
\[\tilde{Y}^{DSL}_i = \hat{g}_i + \frac{R_i}{\pi_i}\big(Y_i - \hat{g}_i\big)\]where \(R_i = 1\) if unit \(i\) was labelled. Run the usual regression on \(\tilde{Y}^{DSL}_i\). The second term is an inverse-probability-weighted correction: because \(\pi_i\) is known by design, it removes whatever bias \(\hat{g}\) has. DSL builds on doubly robust estimation and double/debiased machine learning (Chernozhukov et al. 2018).
Example: with 1,000 images of which 100 are drawn at random for hand-labelling, \(\pi_i = 0.1\) for all images, and each labelled unit’s error is multiplied by 10. With stratified labelling, e.g. 60 of the 200 images flagged by the detector and 40 of the 800 unflagged ones, \(\pi_i = 0.3\) for flagged images and \(\pi_i = 0.05\) for unflagged images.
Pros
- Valid even if the machine learning model \(\hat{g}\) is badly misspecified: its quality affects only precision.
- Allows unequal, known labelling probabilities, so rare classes can be oversampled.
- Uses covariates and several predictions to improve precision.
- Distributional quantities remain estimable: the CDF at any value \(y\) is the mean of \(\mathbf{1}(Y \le y)\), so shares above a threshold and quantiles can be corrected too.
- An R package (
dsl) implements the method.
Cons
- The labelling must be designed: \(\pi_i\) must be set before observing the truth, recorded, and greater than zero for every unit. Existing ground truth that was not sampled by design cannot be used.
- Estimand-specific: the model \(\hat{g}\) conditions on the analysis variables, so each new analysis needs its own run.
- Pseudo-outcomes are not a corrected variable: individual values can fall outside the range of \(Y\) (e.g. 8.2 for a binary outcome), so they cannot be mapped or plotted as data.
- Developed mainly for predicted outcomes.
5.3 Multiple imputation (Proctor, Carleton & Sum 2023)
Idea. Model the truth as a function of the prediction and of the other analysis variables in the calibration (labelled) sample, then impute it \(K\) times for the unlabelled units. For a predicted regressor:
\[X_j = a + b\,\tilde{X}_j + c\,Y_j + e_j\]For \(k = 1, \dots, K\), draw the coefficients \((a^{(k)}, b^{(k)}, c^{(k)})\) by bootstrap or Bayesian linear regression, plus a residual, and impute \(X_i^{(k)} = a^{(k)} + b^{(k)}\tilde{X}_i + c^{(k)}Y_i + e_i^{(k)}\). Run the analysis on each completed dataset, then combine with Rubin’s rules:
\[\hat\beta^{MI} = \frac{1}{K}\sum_{k=1}^{K} \hat\beta_k \qquad V(\hat\beta^{MI}) = \underbrace{\frac{1}{K}\sum_{k=1}^{K} V(\hat\beta_k)}_{\text{within } (V_w)} + \Big(1 + \frac{1}{K}\Big) \underbrace{\frac{1}{K-1}\sum_{k=1}^{K} \big(\hat\beta_k - \hat\beta^{MI}\big)^2}_{\text{between } (V_b)}\]The within-imputation variance is the usual sampling variance; the between-imputation variance captures the uncertainty from estimating the imputation model on \(n\) labelled units. The outcome must enter the imputation model: imputing from \(\tilde{X}\) alone reintroduces attenuation through the imputation noise.
Pros
- Produces \(K\) completed datasets that can be reused for any analysis, including maps and analyses not planned in advance.
- Can use existing ground truth that was not sampled at random, provided the truth is missing at random given the variables in the imputation model.
- Handles predicted regressors and predicted outcomes, and any second-stage model.
- Standard software:
micein R,IterativeImputerin Python,miin Stata. - Outperforms the alternatives tested by Proctor et al., with coverage of 95% confidence intervals above 90%.
Cons
- Validity depends on the imputation model being correct, including the residual distribution. Distributional quantities (tails, quantiles, variance) are especially model-dependent.
- The imputation model must include every variable of the analysis model, outcome included.
- Draws must be “proper”, i.e. reflect the uncertainty in the imputation coefficients; otherwise standard errors are too small.
- Bias rises with small or spatially distant calibration samples, and with very small calibration samples it can be worse than no correction, especially for predicted outcomes.
- Averaging imputations unit by unit gives \(E[X \mid \tilde{X}, Y]\), a Berkson-type variable: maps of averaged imputations look smoother than reality.
5.5 Comparison
| PPI / PPI++ | DSL | Multiple imputation | |
|---|---|---|---|
| Source of validity | Random labelling | Known labelling probabilities | Correct imputation model, missing at random |
| What is learned on labelled units | Average error of the estimator | Corrected value per unit | Distribution of the truth given prediction and analysis variables |
| Labelled sample | Random draw (or known probabilities) | Designed by us, with recorded \(\pi_i\) | Any calibration sample, if missing at random holds |
| Output | One corrected estimate per estimand | One corrected estimate per estimand | \(K\) reusable completed datasets |
| Predicted outcome / regressor | Both | Mainly outcome | Both |
| Nonlinear models | Yes, through the corrected loss | Yes, through moment conditions | Yes, rerun on each dataset |
| Distributional quantities | Via indicator moments | Via indicator moments | Read from completed data, model-dependent |
| Inference | Analytic | Sandwich (M-estimation) | Rubin’s rules |
| Main failure mode | Labelled units unlike the analysis sample | Too few labels; undesigned labels | Misspecified model; distant or small calibration sample |
In one line: PPI and DSL provide robustness by constraining how labels are collected; multiple imputation provide flexibility by assuming how the error behaves.
Bibliography
- Angelopoulos, A. N., Bates, S., Fannjiang, C., Jordan, M. I. & Zrnic, T. (2023). Prediction-Powered Inference. Science 382(6671): 669–674.
- Angelopoulos, A. N., Duchi, J. C. & Zrnic, T. (2024). PPI++: Efficient Prediction-Powered Inference. arXiv.
- Canen, N. & Enamorado, T. (2026). When Predictions Become Regressors: A Split-Sample Correction for Biases in Downstream Inference. arXiv:2608.02909.
- Carroll, R. J., Ruppert, D., Stefanski, L. A. & Crainiceanu, C. M. (2006). Measurement Error in Nonlinear Models, 2nd ed. Reference textbook.
- Chernozhukov, V., Chetverikov, D., Demirer, M., Duflo, E., Hansen, C., Newey, W. & Robins, J. (2018). Double/Debiased Machine Learning for Treatment and Structural Parameters. The Econometrics Journal 21(1).
- Egami, N., Hinck, M., Stewart, B. M. & Wei, H. (2023). Using Imperfect Surrogates for Downstream Inference: Design-based Supervised Learning for Social Science Applications of Large Language Models. NeurIPS.
- Gordon, M., Ayers, M., Stone, E. & Sanford, L. (2026). Remote Control: Debiasing Machine Learning Predictions for Causal Inference. Working paper.
- Keogh, R. H., Shaw, P. A., Gustafson, P., Carroll, R. J., et al. (2020). STRATOS guidance document on measurement error and misclassification of variables in observational epidemiology: Part 1. Statistics in Medicine 39(16). Framework for the linear measurement error model.
- Kluger, D. M., Lu, K., Zrnic, T., Wang, S. & Bates, S. (2025). Prediction-Powered Inference with Imputed Covariates and Nonuniform Sampling. arXiv.
- Proctor, J., Carleton, T. & Sum, S. (2023). Parameter Recovery Using Remotely Sensed Variables. NBER WP 30861. Bias formulas for ML predictions used as \(X\) or \(Y\), and multiple imputation.
- Rambachan, A., Singh, R. & Viviano, D. (2026). Program Evaluation with Remotely Sensed Outcomes. arXiv:2411.10959.
- Rister Portinari Maranca, A., Chung, J., Hinck, M., Wolsky, A. D., Egami, N. & Stewart, B. M. (2025). Correcting the Measurement Errors of AI-Assisted Labeling in Image Analysis Using Design-Based Supervised Learning. Sociological Methods & Research 54(3).
- TeBlunthuis, N., Hase, V. & Chan, C. (2024). Misclassification in Automated Content Analysis Causes Bias in Regression. Can We Fix It? Yes We Can! Communication Methods and Measures.
