IDEAS home Printed from https://ideas.repec.org/p/cwl/cwldpp/2421.html
   My bibliography  Save this paper

Inference for Regression with Variables Generated by AI or Machine Learning

Author

Listed:
  • Laura Battaglia

    (Oxford University)

  • Timothy Christensen

    (Yale University)

  • Stephen Hansen

    (UCL, IFS, and CEPR)

  • Szymon Sacher

    (Meta)

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

  • Laura Battaglia & Timothy Christensen & Stephen Hansen & Szymon Sacher, 2025. "Inference for Regression with Variables Generated by AI or Machine Learning," Cowles Foundation Discussion Papers 2421, Cowles Foundation for Research in Economics, Yale University.
  • Handle: RePEc:cwl:cwldpp:2421
    as

    Download full text from publisher

    File URL: https://cowles.yale.edu/sites/default/files/2025-01/d2421.pdf
    Download Restriction: no
    ---><---

    More about this item

    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:cwl:cwldpp:2421. 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: Brittany Ladd (email available below). General contact details of provider: https://edirc.repec.org/data/cowleus.html .

    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.