IDEAS home Printed from https://ideas.repec.org/p/arx/papers/1701.01428.html
   My bibliography  Save this paper

Predicting Economic Recessions Using Machine Learning Algorithms

Author

Listed:
  • Rickard Nyman
  • Paul Ormerod

Abstract

Even at the beginning of 2008, the economic recession of 2008/09 was not being predicted. The failure to predict recessions is a persistent theme in economic forecasting. The Survey of Professional Forecasters (SPF) provides data on predictions made for the growth of total output, GDP, in the United States for one, two, three and four quarters ahead since the end of the 1960s. Over a three quarters ahead horizon, the mean prediction made for GDP growth has never been negative over this period. The correlation between the mean SPF three quarters ahead forecast and the data is very low, and over the most recent 25 years is not significantly different from zero. Here, we show that the machine learning technique of random forests has the potential to give early warning of recessions. We use a small set of explanatory variables from financial markets which would have been available to a forecaster at the time of making the forecast. We train the algorithm over the 1970Q2-1990Q1 period, and make predictions one, three and six quarters ahead. We then re-train over 1970Q2-1990Q2 and make a further set of predictions, and so on. We did not attempt any optimisation of predictions, using only the default input parameters to the algorithm we downloaded in the package R. We compare the predictions made from 1990 to the present with the actual data. One quarter ahead, the algorithm is not able to improve on the SPF predictions. Three and six quarters ahead, the correlations between actual and predicted are low, but they are very significantly different from zero. Although the timing is slightly wrong, a serious downturn in the first half of 2009 could have been predicted six quarters ahead in late 2007. The algorithm never predicts a recession when one did not occur. We obtain even stronger results with random forest machine learning techniques in the case of the United Kingdom.

Suggested Citation

  • Rickard Nyman & Paul Ormerod, 2017. "Predicting Economic Recessions Using Machine Learning Algorithms," Papers 1701.01428, arXiv.org.
  • Handle: RePEc:arx:papers:1701.01428
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/1701.01428
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Alessi, Lucia & Detken, Carsten, 2011. "Quasi real time early warning indicators for costly asset price boom/bust cycles: A role for global liquidity," European Journal of Political Economy, Elsevier, vol. 27(3), pages 520-533, September.
    2. Hal R. Varian, 2014. "Big Data: New Tricks for Econometrics," Journal of Economic Perspectives, American Economic Association, vol. 28(2), pages 3-28, Spring.
    3. Fildes, Robert & Stekler, Herman, 2002. "The state of macroeconomic forecasting," Journal of Macroeconomics, Elsevier, vol. 24(4), pages 435-468, December.
    4. Fildes, Robert & Stekler, Herman, 2002. "Reply to the comments on 'The state of macroeconomic forecasting'," Journal of Macroeconomics, Elsevier, vol. 24(4), pages 503-505, December.
    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. Ramaharo, Franck Maminirina & Rasolofomanana, Gerzhino H, 2023. "Nowcasting Madagascar's real GDP using machine learning algorithms," AfricArxiv vpuac, Center for Open Science.
    2. Rafael R. S. Guimaraes, 2022. "Deep Learning Macroeconomics," Papers 2201.13380, arXiv.org.
    3. Cheng-Feng Wu & Shian-Chang Huang & Chei-Chang Chiou & Tsangyao Chang & Yung-Chih Chen, 2022. "The Relationship Between Economic Growth and Electricity Consumption: Bootstrap ARDL Test with a Fourier Function and Machine Learning Approach," Computational Economics, Springer;Society for Computational Economics, vol. 60(4), pages 1197-1220, December.
    4. Cyrille Lenoel & Garry Young, 2020. "Real-time turning point indicators: Review of current international practices," Economic Statistics Centre of Excellence (ESCoE) Discussion Papers ESCoE DP-2020-05, Economic Statistics Centre of Excellence (ESCoE).
    5. Marcelle Chauvet & Rafael R. S. Guimaraes, 2021. "Transfer Learning for Business Cycle Identification," Working Papers Series 545, Central Bank of Brazil, Research Department.
    6. Jeffrey C. Chen & Abe Dunn & Kyle Hood & Alexander Driessen & Andrea Batch, 2019. "Off to the Races: A Comparison of Machine Learning and Alternative Data for Predicting Economic Indicators," NBER Chapters, in: Big Data for Twenty-First-Century Economic Statistics, pages 373-402, National Bureau of Economic Research, Inc.
    7. Tölö, Eero, 2020. "Predicting systemic financial crises with recurrent neural networks," Journal of Financial Stability, Elsevier, vol. 49(C).
    8. Paolo Fornaro & Henri Luomaranta, 2020. "Nowcasting Finnish real economic activity: a machine learning approach," Empirical Economics, Springer, vol. 58(1), pages 55-71, January.
    9. Giovanni Cicceri & Giuseppe Inserra & Michele Limosani, 2020. "A Machine Learning Approach to Forecast Economic Recessions—An Italian Case Study," Mathematics, MDPI, vol. 8(2), pages 1-20, February.

    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. Rickard Nyman & Paul Ormerod, 2020. "Understanding the Great Recession Using Machine Learning Algorithms," Papers 2001.02115, arXiv.org.
    2. Karsten Müller, 2022. "German forecasters’ narratives: How informative are German business cycle forecast reports?," Empirical Economics, Springer, vol. 62(5), pages 2373-2415, May.
    3. Rostami-Tabar, Bahman & Ali, Mohammad M. & Hong, Tao & Hyndman, Rob J. & Porter, Michael D. & Syntetos, Aris, 2022. "Forecasting for social good," International Journal of Forecasting, Elsevier, vol. 38(3), pages 1245-1257.
    4. Ericsson, Neil R., 2016. "Eliciting GDP forecasts from the FOMC’s minutes around the financial crisis," International Journal of Forecasting, Elsevier, vol. 32(2), pages 571-583.
    5. Tara M. Sinclair & Fred Joutz & Herman O. Stekler, 2008. "Are 'unbiased' forecasts really unbiased? Another look at the Fed forecasts," Working Papers 2008-010, The George Washington University, Department of Economics, H. O. Stekler Research Program on Forecasting.
    6. Heilemann, Ullrich & Stekler, Herman, 2007. "Introduction to "The future of macroeconomic forecasting"," International Journal of Forecasting, Elsevier, vol. 23(2), pages 159-165.
    7. Leitner, Johannes & Leopold-Wildburger, Ulrike, 2011. "Experiments on forecasting behavior with several sources of information - A review of the literature," European Journal of Operational Research, Elsevier, vol. 213(3), pages 459-469, September.
    8. Döpke, Jörg & Fritsche, Ulrich & Müller, Karsten, 2019. "Has macroeconomic forecasting changed after the Great Recession? Panel-based evidence on forecast accuracy and forecaster behavior from Germany," Journal of Macroeconomics, Elsevier, vol. 62(C).
    9. Döpke Jörg & Fritsche Ulrich & Waldhof Gabi, 2019. "Theories, Techniques and the Formation of German Business Cycle Forecasts : Evidence from a survey of professional forecasters," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 239(2), pages 203-241, April.
    10. Klinger, Sabine & Heilemann, Ullrich, 2005. "Zu wenig Wettbewerb? Zu Stand und Entwicklung der Genauigkeit makroökonomischer Prognosen," Technical Reports 2005,16, Technische Universität Dortmund, Sonderforschungsbereich 475: Komplexitätsreduktion in multivariaten Datenstrukturen.
    11. Glocker, Christian & Kaniovski, Serguei, 2020. "Structural modeling and forecasting using a cluster of dynamic factor models," MPRA Paper 101874, University Library of Munich, Germany.
    12. Singleton, Carl & Reade, J. James & Brown, Alasdair, 2020. "Going with your gut: The (In)accuracy of forecast revisions in a football score prediction game," Journal of Behavioral and Experimental Economics (formerly The Journal of Socio-Economics), Elsevier, vol. 89(C).
    13. Dovern, Jonas & Jannsen, Nils, 2017. "Systematic errors in growth expectations over the business cycle," International Journal of Forecasting, Elsevier, vol. 33(4), pages 760-769.
    14. Heilemann, Ullrich & Stekler, H. O., 2003. "Has the accuracy of German macroeconomic forecasts improved?," Technical Reports 2003,31, Technische Universität Dortmund, Sonderforschungsbereich 475: Komplexitätsreduktion in multivariaten Datenstrukturen.
    15. repec:zbw:rwirep:0382 is not listed on IDEAS
    16. David Tucket & Antoine Mandel & Diana Mangalagiu & Allen Abramson & Jochen Hinkel & Konstantinos Katsikopoulos & Alan Kirman & Thierry Malleret & Igor Mozetic & Paul Ormerod & Robert Elliot Smith & To, 2015. "Uncertainty, Decision Science, and Policy Making: A Manifesto for a Research Agenda," SciencePo Working papers Main hal-02057279, HAL.
    17. Krkoska, Libor & Teksoz, Utku, 2009. "How reliable are forecasts of GDP growth and inflation for countries with limited coverage?," Economic Systems, Elsevier, vol. 33(4), pages 376-388, December.
    18. Constantinou Anthony Costa & Fenton Norman Elliott, 2012. "Solving the Problem of Inadequate Scoring Rules for Assessing Probabilistic Football Forecast Models," Journal of Quantitative Analysis in Sports, De Gruyter, vol. 8(1), pages 1-14, March.
    19. Castle, Jennifer L. & Clements, Michael P. & Hendry, David F., 2015. "Robust approaches to forecasting," International Journal of Forecasting, Elsevier, vol. 31(1), pages 99-112.
    20. repec:hal:pseose:hal-02057279 is not listed on IDEAS
    21. Mathy, Gabriel & Stekler, Herman, 2017. "Expectations and forecasting during the Great Depression: Real-time evidence from the business press," Journal of Macroeconomics, Elsevier, vol. 53(C), pages 1-15.
    22. Christopher F. Baum & John Barkoulas, 2006. "Long-memory forecasting of US monetary indices," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 25(4), pages 291-302.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:1701.01428. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.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.