IDEAS home Printed from https://ideas.repec.org/p/cpr/ceprdp/19115.html

Inference for Regression with Variables Generated by AI or Machine Learning

Author

Listed:
  • Battaglia, Laura
  • Christensen, Tim
  • Hansen, Stephen
  • Sacher, Szymon

Abstract

It has become common practice for researchers to use AI-powered information retrieval algorithms or other machine learning methods to estimate variables of economic interest, then use these estimates as covariates in a regression model. We show both theoretically and empirically that naively treating AI- and ML-generated variables as “data†leads to biased estimates and invalid inference. We propose two methods to correct bias and perform valid inference: (i) an explicit bias correction with bias-corrected confidence intervals, and (ii) joint maximum likelihood estimation of the regression model and the variables of interest. Through several applications, we demonstrate that the common approach generates substantial bias, while both corrections perform well.

Suggested Citation

  • Battaglia, Laura & Christensen, Tim & Hansen, Stephen & Sacher, Szymon, 2024. "Inference for Regression with Variables Generated by AI or Machine Learning," CEPR Discussion Papers 19115, C.E.P.R. Discussion Papers.
  • Handle: RePEc:cpr:ceprdp:19115
    as

    Download full text from publisher

    File URL: https://cepr.org/publications/DP19115
    Download Restriction: no
    ---><---

    Other versions of this item:

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. is not listed on IDEAS
    2. Jiafeng Chen & Jiaying Gu & Soonwoo Kwon, 2025. "Empirical Bayes shrinkage (mostly) does not correct the measurement error in regression," Papers 2503.19095, arXiv.org, revised Feb 2026.
    3. Verónica Bäcker-Peral & Vitaly Meursault & Christopher Severen, 2025. "Can LLMs Credibly Transform the Creation of Panel Data from Diverse Historical Tables," Working Papers 25-28, Federal Reserve Bank of Philadelphia.
    4. Tsang, Kwok Ping & Yang, Zichao, 2025. "Agree to disagree: Measuring hidden dissent in FOMC meetings," Journal of Economic Dynamics and Control, Elsevier, vol. 180(C).
    5. Douglas Kiarelly Godoy de Araujo & Nikola Bokan & Fabio Alberto Comazzi & Michele Lenza, 2025. "Word2Prices: embedding central bank communications for inflation prediction," BIS Working Papers 1253, Bank for International Settlements.
    6. Timothy Christensen & Giovanni Compiani, 2026. "From Unstructured Data to Demand Counterfactuals: Theory and Practice," Papers 2601.05374, arXiv.org.
    7. Jiaqi Huang, 2026. "Fixed Effects as Generated Regressors," Papers 2602.08899, arXiv.org.
    8. Tian Xie, 2025. "Automatic Inference for Value-Added Regressions," Papers 2503.19178, arXiv.org, revised Dec 2025.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C11 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Bayesian Analysis: General
    • C51 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Model Construction and Estimation
    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:cpr:ceprdp:19115. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: CEPR (email available below). General contact details of provider: https://cepr.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.