IDEAS home Printed from https://ideas.repec.org/a/bla/jorssb/v83y2021i2p215-246.html
   My bibliography  Save this article

Anchor regression: Heterogeneous data meet causality

Author

Listed:
  • Dominik Rothenhäusler
  • Nicolai Meinshausen
  • Peter Bühlmann
  • Jonas Peters

Abstract

We consider the problem of predicting a response variable from a set of covariates on a data set that differs in distribution from the training data. Causal parameters are optimal in terms of predictive accuracy if in the new distribution either many variables are affected by interventions or only some variables are affected, but the perturbations are strong. If the training and test distributions differ by a shift, causal parameters might be too conservative to perform well on the above task. This motivates anchor regression, a method that makes use of exogenous variables to solve a relaxation of the ‘causal’ minimax problem by considering a modification of the least‐squares loss. The procedure naturally provides an interpolation between the solutions of ordinary least squares (OLS) and two‐stage least squares. We prove that the estimator satisfies predictive guarantees in terms of distributional robustness against shifts in a linear class; these guarantees are valid even if the instrumental variable assumptions are violated. If anchor regression and least squares provide the same answer (‘anchor stability’), we establish that OLS parameters are invariant under certain distributional changes. Anchor regression is shown empirically to improve replicability and protect against distributional shifts.

Suggested Citation

  • Dominik Rothenhäusler & Nicolai Meinshausen & Peter Bühlmann & Jonas Peters, 2021. "Anchor regression: Heterogeneous data meet causality," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 83(2), pages 215-246, April.
  • Handle: RePEc:bla:jorssb:v:83:y:2021:i:2:p:215-246
    DOI: 10.1111/rssb.12398
    as

    Download full text from publisher

    File URL: https://doi.org/10.1111/rssb.12398
    Download Restriction: no

    File URL: https://libkey.io/10.1111/rssb.12398?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Bowden,Roger J. & Turkington,Darrell A., 1990. "Instrumental Variables," Cambridge Books, Cambridge University Press, number 9780521385824, November.
    2. Donald B. Rubin, 2005. "Causal Inference Using Potential Outcomes: Design, Modeling, Decisions," Journal of the American Statistical Association, American Statistical Association, vol. 100, pages 322-331, March.
    3. Klepper, Steven & Leamer, Edward E, 1984. "Consistent Sets of Estimates for Regressions with Errors in All Variables," Econometrica, Econometric Society, vol. 52(1), pages 163-183, January.
    4. Leamer, Edward E, 1978. "Least-Squares versus Instrumental Variables Estimation in a Simple Errors in Variables Model," Econometrica, Econometric Society, vol. 46(4), pages 961-968, July.
    5. Jonas Peters & Peter Bühlmann & Nicolai Meinshausen, 2016. "Causal inference by using invariant prediction: identification and confidence intervals," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 78(5), pages 947-1012, November.
    Full references (including those not matched with items on IDEAS)

    Citations

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


    Cited by:

    1. Ruoxuan Xiong & Allison Koenecke & Michael Powell & Zhu Shen & Joshua T. Vogelstein & Susan Athey, 2021. "Federated Causal Inference in Heterogeneous Observational Data," Papers 2107.11732, arXiv.org, revised Apr 2023.
    2. Adam Lund & Søren Wengel Mogensen & Niels Richard Hansen, 2022. "Soft maximin estimation for heterogeneous data," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 49(4), pages 1761-1790, December.
    3. Martin Emil Jakobsen & Jonas Peters, 2022. "Distributional robustness of K-class estimators and the PULSE [The colonial origins of comparative development: An empirical investigation]," The Econometrics Journal, Royal Economic Society, vol. 25(2), pages 404-432.
    4. Malte Londschien & Peter Buhlmann, 2024. "Weak-instrument-robust subvector inference in instrumental variables regression: A subvector Lagrange multiplier test and properties of subvector Anderson-Rubin confidence sets," Papers 2407.15256, arXiv.org, revised Nov 2024.
    5. Zhaonan Qu & Yongchan Kwon, 2024. "Distributionally Robust Instrumental Variables Estimation," Papers 2410.15634, arXiv.org, revised Dec 2024.
    6. Markus Reichstein & Vitus Benson & Jan Blunk & Gustau Camps-Valls & Felix Creutzig & Carina J. Fearnley & Boran Han & Kai Kornhuber & Nasim Rahaman & Bernhard Schölkopf & José María Tárraga & Ricardo , 2025. "Early warning of complex climate risk with integrated artificial intelligence," Nature Communications, Nature, vol. 16(1), pages 1-13, December.
    7. Malte Londschien, 2025. "A statistician's guide to weak-instrument-robust inference in instrumental variables regression with illustrations in Python," Papers 2508.12474, arXiv.org.
    8. Fangting Zhou & Kejun He & Yang Ni, 2023. "Individualized causal discovery with latent trajectory embedded Bayesian networks," Biometrics, The International Biometric Society, vol. 79(4), pages 3191-3202, December.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hang Su & Wei Wang, 2024. "Invariant Feature Learning Based on Causal Inference from Heterogeneous Environments," Mathematics, MDPI, vol. 12(5), pages 1-23, February.
    2. Hang Su & Wei Wang, 2023. "An Out-of-Distribution Generalization Framework Based on Variational Backdoor Adjustment," Mathematics, MDPI, vol. 12(1), pages 1-21, December.
    3. Peter Bühlmann & Domagoj Ćevid, 2020. "Deconfounding and Causal Regularisation for Stability and External Validity," International Statistical Review, International Statistical Institute, vol. 88(S1), pages 114-134, December.
    4. Alberto Galasso & El Hadi Caoui, 2025. "Fractional Ownership and Copyright Licensing: Evidence from the Music Industry," NBER Working Papers 34336, National Bureau of Economic Research, Inc.
    5. Christian Bontemps & Thierry Magnac & Eric Maurin, 2012. "Set Identified Linear Models," Econometrica, Econometric Society, vol. 80(3), pages 1129-1155, May.
    6. David Greenaway & Johan Torstensson, 2000. "Economic Geography, Comparative Advantage and Trade within Industries: Evidence from the OECD," Journal of Economic Integration, Center for Economic Integration, Sejong University, vol. 15, pages 260-280.
    7. Sager, Michael & Taylor, Mark P., 2014. "Generating currency trading rules from the term structure of forward foreign exchange premia," Journal of International Money and Finance, Elsevier, vol. 44(C), pages 230-250.
    8. Salvatore Bimonte & Antonella D’Agostino, 2021. "Tourism development and residents’ well-being: Comparing two seaside destinations in Italy," Tourism Economics, , vol. 27(7), pages 1508-1525, November.
    9. Matthew Blackwell & James Honaker & Gary King, 2017. "A Unified Approach to Measurement Error and Missing Data: Overview and Applications," Sociological Methods & Research, , vol. 46(3), pages 303-341, August.
    10. Jean-Pierre Florens & Anna Simoni, 2021. "Revisiting Identification Concepts in Bayesian Analysis," Annals of Economics and Statistics, GENES, issue 144, pages 1-38.
    11. repec:osf:metaar:s42ba_v1 is not listed on IDEAS
    12. Stoker, Thomas M. & Berndt, Ernst R. & Denny Ellerman, A. & Schennach, Susanne M., 2005. "Panel data analysis of U.S. coal productivity," Journal of Econometrics, Elsevier, vol. 127(2), pages 131-164, August.
    13. Jonathan Temple, 1995. "Testing the augmented Solow Model," Economics Papers 18 & 106., Economics Group, Nuffield College, University of Oxford.
    14. Wu, Guojun & Song, Ge & Lv, Xiaoxiang & Luo, Shikai & Shi, Chengchun & Zhu, Hongtu, 2023. "DNet: distributional network for distributional individualized treatment effects," LSE Research Online Documents on Economics 122895, London School of Economics and Political Science, LSE Library.
    15. Sahar Saeed & Erica E. M. Moodie & Erin C. Strumpf & Marina B. Klein, 2018. "Segmented generalized mixed effect models to evaluate health outcomes," International Journal of Public Health, Springer;Swiss School of Public Health (SSPH+), vol. 63(4), pages 547-551, May.
    16. Susanne M. Schennach & Yingyao Hu & Arthur Lewbel, 2007. "Nonparametric identification of the classical errors-in-variables model without side information," Boston College Working Papers in Economics 674, Boston College Department of Economics.
    17. Harrigan, James, 1995. "Factor endowments and the international location of production: Econometric evidence for the OECD, 1970-1985," Journal of International Economics, Elsevier, vol. 39(1-2), pages 123-141, August.
    18. Baştürk, Nalan & Grassi, Stefano & Hoogerheide, Lennart & Opschoor, Anne & van Dijk, Herman K., 2017. "The R Package MitISEM: Efficient and Robust Simulation Procedures for Bayesian Inference," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 79(i01).
    19. Coën, Alain & Hübner, Georges, 2009. "Risk and performance estimation in hedge funds revisited: Evidence from errors in variables," Journal of Empirical Finance, Elsevier, vol. 16(1), pages 112-125, January.
    20. Fangting Zhou & Kejun He & Yang Ni, 2023. "Individualized causal discovery with latent trajectory embedded Bayesian networks," Biometrics, The International Biometric Society, vol. 79(4), pages 3191-3202, December.
    21. Harrigan, James, 1997. "Technology, Factor Supplies, and International Specialization: Estimating the Neoclassical Model," American Economic Review, American Economic Association, vol. 87(4), pages 475-494, September.

    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:bla:jorssb:v:83:y:2021:i:2:p:215-246. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/rssssea.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.