IDEAS home Printed from https://ideas.repec.org/a/wly/japmet/v39y2024i3p401-421.html
   My bibliography  Save this article

The macroeconomy as a random forest

Author

Listed:
  • Philippe Goulet Coulombe

Abstract

I develop the macroeconomic random forest (MRF), an algorithm adapting the canonical machine learning (ML) tool, to flexibly model evolving parameters in a linear macro equation. Its main output, generalized time‐varying parameters (GTVPs), is a versatile device nesting many popular nonlinearities (threshold/switching, smooth transition, and structural breaks/change) and allowing for sophisticated new ones. The approach delivers clear forecasting gains over numerous alternatives, predicts the 2008 drastic rise in unemployment, and performs well for inflation. Unlike most ML‐based methods, MRF is directly interpretable—via its GTVPs. For instance, the successful unemployment forecast is due to the influence of forward‐looking variables (e.g., term spreads and housing starts) nearly doubling before every recession. Interestingly, the Phillips curve has indeed flattened, and its might is highly cyclical.

Suggested Citation

  • Philippe Goulet Coulombe, 2024. "The macroeconomy as a random forest," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 39(3), pages 401-421, April.
  • Handle: RePEc:wly:japmet:v:39:y:2024:i:3:p:401-421
    DOI: 10.1002/jae.3030
    as

    Download full text from publisher

    File URL: https://doi.org/10.1002/jae.3030
    Download Restriction: no

    File URL: https://libkey.io/10.1002/jae.3030?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. Alan J. Auerbach & Yuriy Gorodnichenko, 2012. "Measuring the Output Responses to Fiscal Policy," American Economic Journal: Economic Policy, American Economic Association, vol. 4(2), pages 1-27, May.
    2. Clements, Michael P. & Smith, Jeremy, 1997. "The performance of alternative forecasting methods for SETAR models," International Journal of Forecasting, Elsevier, vol. 13(4), pages 463-475, December.
    3. Liudas Giraitis & George Kapetanios & Tony Yates, 2018. "Inference on Multivariate Heteroscedastic Time Varying Random Coefficient Models," Journal of Time Series Analysis, Wiley Blackwell, vol. 39(2), pages 129-149, March.
    4. Olivier Coibion & Yuriy Gorodnichenko, 2015. "Is the Phillips Curve Alive and Well after All? Inflation Expectations and the Missing Disinflation," American Economic Journal: Macroeconomics, American Economic Association, vol. 7(1), pages 197-232, January.
    5. Edward E. Leamer, 2007. "Housing is the business cycle," Proceedings - Economic Policy Symposium - Jackson Hole, Federal Reserve Bank of Kansas City, pages 149-233.
    6. Philippe Goulet Coulombe & Maxime Leroux & Dalibor Stevanovic & Stéphane Surprenant, 2022. "How is machine learning useful for macroeconomic forecasting?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 920-964, August.
    7. Antonello D'Agostino & Luca Gambetti & Domenico Giannone, 2013. "Macroeconomic forecasting and structural change," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 28(1), pages 82-101, January.
    8. Pooyan Amir-Ahmadi & Christian Matthes & Mu-Chun Wang, 2020. "Choosing Prior Hyperparameters: With Applications to Time-Varying Parameter Models," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 38(1), pages 124-136, January.
    9. Delle-Monache, Davide & De-Polis, Andrea & Petrella, Ivan, 2020. "Modelling and Forecasting Macroeconomic Downside Risk," EMF Research Papers 34, Economic Modelling and Forecasting Group.
    10. Marco Del Negro & Marc P. Giannoni & Frank Schorfheide, 2015. "Inflation in the Great Recession and New Keynesian Models," American Economic Journal: Macroeconomics, American Economic Association, vol. 7(1), pages 168-196, January.
    11. Jordi Galí & Luca Gambetti, 2019. "Has the U.S. Wage Phillips Curve Flattened? A Semi-Structural Exploration," Working Papers Central Bank of Chile 846, Central Bank of Chile.
    12. James H. Stock & Mark W. Watson, 2007. "Why Has U.S. Inflation Become Harder to Forecast?," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 39(s1), pages 3-33, February.
    13. Blanchard, Oliver & Cerutti, Eugenio & SUmmers, Lawrence, 2015. "Inflation and Activity - Two Explorations and Their Monetary Policy Implications," Working Paper Series 15-070, Harvard University, John F. Kennedy School of Government.
    14. Aruoba, S. Borağan & Bocola, Luigi & Schorfheide, Frank, 2017. "Assessing DSGE model nonlinearities," Journal of Economic Dynamics and Control, Elsevier, vol. 83(C), pages 34-54.
    15. Giorgio E. Primiceri, 2005. "Time Varying Structural Vector Autoregressions and Monetary Policy," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 72(3), pages 821-852.
    16. JAMES G. MacKINNON, 2006. "Bootstrap Methods in Econometrics," The Economic Record, The Economic Society of Australia, vol. 82(s1), pages 2-18, September.
    17. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    18. Christopher A. Sims & Tao Zha, 2006. "Were There Regime Switches in U.S. Monetary Policy?," American Economic Review, American Economic Association, vol. 96(1), pages 54-81, March.
    19. Harding, Martín & Lindé, Jesper & Trabandt, Mathias, 2022. "Resolving the missing deflation puzzle," Journal of Monetary Economics, Elsevier, vol. 126(C), pages 15-34.
    20. Lin, Yi & Jeon, Yongho, 2006. "Random Forests and Adaptive Nearest Neighbors," Journal of the American Statistical Association, American Statistical Association, vol. 101, pages 578-590, June.
    21. Rina Friedberg & Julie Tibshirani & Susan Athey & Stefan Wager, 2018. "Local Linear Forests," Papers 1807.11408, arXiv.org, revised Sep 2020.
    22. Valerie A. Ramey & Sarah Zubairy, 2018. "Government Spending Multipliers in Good Times and in Bad: Evidence from US Historical Data," Journal of Political Economy, University of Chicago Press, vol. 126(2), pages 850-901.
    23. Matt Taddy & Matt Gardner & Liyun Chen & David Draper, 2016. "A Nonparametric Bayesian Analysis of Heterogenous Treatment Effects in Digital Experimentation," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 34(4), pages 661-672, October.
    24. Petrova, Katerina, 2019. "A quasi-Bayesian local likelihood approach to time varying parameter VAR models," Journal of Econometrics, Elsevier, vol. 212(1), pages 286-306.
    25. James H. Stock & Mark W. Watson, 2007. "Why Has U.S. Inflation Become Harder to Forecast?," Journal of Money, Credit and Banking, Blackwell Publishing, vol. 39(s1), pages 3-33, February.
    Full references (including those not matched with items on IDEAS)

    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. Philippe Goulet Coulombe, 2021. "The Macroeconomy as a Random Forest," Working Papers 21-05, Chair in macroeconomics and forecasting, University of Quebec in Montreal's School of Management.
    2. Philippe Goulet Coulombe, 2020. "The Macroeconomy as a Random Forest," Papers 2006.12724, arXiv.org, revised Mar 2021.
    3. Philippe Goulet Coulombe, 2022. "A Neural Phillips Curve and a Deep Output Gap," Working Papers 22-01, Chair in macroeconomics and forecasting, University of Quebec in Montreal's School of Management.
    4. Philippe Goulet Coulombe, 2022. "A Neural Phillips Curve and a Deep Output Gap," Papers 2202.04146, arXiv.org.
    5. Philippe Goulet Coulombe, 2020. "Time-Varying Parameters as Ridge Regressions," Papers 2009.00401, arXiv.org, revised Apr 2023.
    6. Magnus Reif, 2020. "Macroeconomics, Nonlinearities, and the Business Cycle," ifo Beiträge zur Wirtschaftsforschung, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 87.
    7. Pfarrhofer, Michael, 2022. "Modeling tail risks of inflation using unobserved component quantile regressions," Journal of Economic Dynamics and Control, Elsevier, vol. 143(C).
    8. Hauzenberger, Niko, 2021. "Flexible Mixture Priors for Large Time-varying Parameter Models," Econometrics and Statistics, Elsevier, vol. 20(C), pages 87-108.
    9. Pablo Guerróon‐Quintana & Molin Zhong, 2023. "Macroeconomic forecasting in times of crises," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 38(3), pages 295-320, April.
    10. Guido Ascari & Luca Fosso, 2021. "The Inflation Rate Disconnect Puzzle: On the International Component of Trend Inflation and the Flattening of the Phillips Curve," Working Paper 2021/17, Norges Bank.
    11. Bańbura, Marta & Bobeica, Elena, 2023. "Does the Phillips curve help to forecast euro area inflation?," International Journal of Forecasting, Elsevier, vol. 39(1), pages 364-390.
    12. Markus Heinrich & Magnus Reif, 2020. "Real-Time Forecasting Using Mixed-Frequency VARS with Time-Varying Parameters," CESifo Working Paper Series 8054, CESifo.
    13. Sune Karlsson & Pär Österholm, 2023. "Is the US Phillips curve stable? Evidence from Bayesian vector autoregressions," Scandinavian Journal of Economics, Wiley Blackwell, vol. 125(1), pages 287-314, January.
    14. Niko Hauzenberger, 2020. "Flexible Mixture Priors for Large Time-varying Parameter Models," Papers 2006.10088, arXiv.org, revised Nov 2020.
    15. Andrea Carriero & Francesco Corsello & Massimiliano Marcellino, 2022. "The global component of inflation volatility," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(4), pages 700-721, June.
    16. Richard Schnorrenberger & Aishameriane Schmidt & Guilherme Valle Moura, 2024. "Harnessing Machine Learning for Real-Time Inflation Nowcasting," Working Papers 806, DNB.
    17. Adams, Patrick A. & Adrian, Tobias & Boyarchenko, Nina & Giannone, Domenico, 2021. "Forecasting macroeconomic risks," International Journal of Forecasting, Elsevier, vol. 37(3), pages 1173-1191.
    18. Thomas Hasenzagl & Filippo Pellegrino & Lucrezia Reichlin & Giovanni Ricco, 2022. "A Model of the Fed's View on Inflation," The Review of Economics and Statistics, MIT Press, vol. 104(4), pages 686-704, October.
    19. Sune Karlsson & Pär Österholm, 2020. "A note on the stability of the Swedish Phillips curve," Empirical Economics, Springer, vol. 59(6), pages 2573-2612, December.
    20. Todd E. Clark & Michael W. McCracken & Elmar Mertens, 2020. "Modeling Time-Varying Uncertainty of Multiple-Horizon Forecast Errors," The Review of Economics and Statistics, MIT Press, vol. 102(1), pages 17-33, March.

    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:wly:japmet:v:39:y:2024:i:3:p:401-421. 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: http://www.interscience.wiley.com/jpages/0883-7252/ .

    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.