Skip to content

Locally Robust Inference with Outcomes Predicted by Machine Learning

Juan Carlos Escanciano, Alejandro Puerta-Cuartas

econ.EMarXiv:2610.21756

Abstract

Many parameters of interest in economics depend on outcomes generated by machine learning (ML). These generated outcomes are subsequently used in standard econometric estimation and typically treated as observed, a practice that threatens the validity of downstream inference. Relevant examples include the partially linear model with an ML-predicted outcome, productivity persistence, and inequality of opportunity with life-cycle-corrected income. This paper develops a three-step locally robust GMM framework for valid inference when the dependent variable is generated by ML. We construct a debiased moment condition that augments the identifying moment with first- and second-step influence functions, making inference locally insensitive to regularization and model selection biases at both steps. We establish consistency and asymptotic normality of the locally robust estimator and illustrate its finite-sample performance through simulations. We then estimate inequality of opportunity in Spain, where incomes observed at different ages are subject to life-cycle bias. Correcting income for this bias with type-specific age profiles estimated by ML lowers inequality of opportunity over the working life by 10% to 14% relative to raw income, whereas treating the corrected incomes as observed overstates it by up to 15%.

Create a lesson