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

Inside the black box: Neural network-based real-time prediction of US recessions

Author

Listed:
  • Seulki Chung

Abstract

A standard feedforward neural network (FFN) and two specific types of recurrent neural networks, long short-term memory (LSTM) and gated recurrent unit (GRU), are used for modeling US recessions in the period from 1967 to 2021. The estimated models are then employed to conduct real-time predictions of the Great Recession and the Covid-19 recession in the US. Their predictive performances are compared to those of the traditional linear models, the standard logit model and the ridge logit model. The out-of-sample performance suggests the application of LSTM and GRU in the area of recession forecasting, especially for the long-term forecasting tasks. They outperform other types of models across five different forecast horizons with respect to a selected set of statistical metrics. Shapley additive explanations (SHAP) method is applied to GRU and the ridge logit model as the best performer in the neural network and linear model group, respectively, to gain insight into the variable importance. The evaluation of variable importance differs between GRU and the ridge logit model, as reflected in their unequal variable orders determined by the SHAP values. These different weight assignments can be attributed to GRUs flexibility and capability to capture the business cycle asymmetries and nonlinearities. The SHAP method delivers some key recession indicators. For forecasting up to 3 months, the stock price index, real GDP, and private residential fixed investment show great short-term predictability, while for longer-term forecasting up to 12 months, the term spread and the producer price index have strong explanatory power for recessions. These findings are robust against other interpretation methods such as the local interpretable model-agnostic explanations (LIME) for GRU and the marginal effects for the ridge logit model.

Suggested Citation

  • Seulki Chung, 2023. "Inside the black box: Neural network-based real-time prediction of US recessions," Papers 2310.17571, arXiv.org, revised Mar 2024.
  • Handle: RePEc:arx:papers:2310.17571
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Fornari, Fabio & Lemke, Wolfgang, 2010. "Predicting recession probabilities with financial variables over multiple horizons," Working Paper Series 1255, European Central Bank.
    2. Bluwstein, Kristina & Buckmann, Marcus & Joseph, Andreas & Kang, Miao & Kapadia, Sujit & Simsek, Özgür, 2020. "Credit growth, the yield curve and financial crisis prediction: evidence from a machine learning approach," Bank of England working papers 848, Bank of England.
    3. Norman R. Swanson & Halbert White, 1997. "A Model Selection Approach To Real-Time Macroeconomic Forecasting Using Linear Models And Artificial Neural Networks," The Review of Economics and Statistics, MIT Press, vol. 79(4), pages 540-550, November.
    4. Serena Ng, 2014. "Viewpoint: Boosting Recessions," Canadian Journal of Economics, Canadian Economics Association, vol. 47(1), pages 1-34, February.
    5. Nyberg, Henri, 2014. "A Bivariate Autoregressive Probit Model: Business Cycle Linkages And Transmission Of Recession Probabilities," Macroeconomic Dynamics, Cambridge University Press, vol. 18(4), pages 838-862, June.
    6. Tkacz, Greg, 2001. "Neural network forecasting of Canadian GDP growth," International Journal of Forecasting, Elsevier, vol. 17(1), pages 57-69.
    7. Chauvet, Marcelle & Piger, Jeremy, 2008. "A Comparison of the Real-Time Performance of Business Cycle Dating Methods," Journal of Business & Economic Statistics, American Statistical Association, vol. 26, pages 42-49, January.
    8. Marcelle Chauvet & Simon Potter, 2005. "Forecasting recessions using the yield curve," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(2), pages 77-103.
    9. Qi, Min, 2001. "Predicting US recessions with leading indicators via neural network models," International Journal of Forecasting, Elsevier, vol. 17(3), pages 383-401.
    10. Stark, Tom & Croushore, Dean, 2002. "Forecasting with a real-time data set for macroeconomists," Journal of Macroeconomics, Elsevier, vol. 24(4), pages 507-531, December.
    11. Markus Holopainen & Peter Sarlin, 2017. "Toward robust early-warning models: a horse race, ensembles and model uncertainty," Quantitative Finance, Taylor & Francis Journals, vol. 17(12), pages 1933-1963, December.
    12. James H. Stock & Mark W. Watson, 1998. "A Comparison of Linear and Nonlinear Univariate Models for Forecasting Macroeconomic Time Series," NBER Working Papers 6607, National Bureau of Economic Research, Inc.
    13. Wesley Clair Mitchell & Arthur F. Burns, 1938. "Statistical Indicators of Cyclical Revivals," NBER Books, National Bureau of Economic Research, Inc, number mitc38-1, March.
    14. Zhang, Guoqiang & Eddy Patuwo, B. & Y. Hu, Michael, 1998. "Forecasting with artificial neural networks:: The state of the art," International Journal of Forecasting, Elsevier, vol. 14(1), pages 35-62, March.
    15. Jaditz, Ted & Riddick, Leigh A. & Sayers, Chera L., 1998. "MULTIVARIATE NONLINEAR FORECASTING Using Financial Information to Forecast the Real Sector," Macroeconomic Dynamics, Cambridge University Press, vol. 2(3), pages 369-382, September.
    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. Tkacz, Greg, 2001. "Neural network forecasting of Canadian GDP growth," International Journal of Forecasting, Elsevier, vol. 17(1), pages 57-69.
    2. Giusto, Andrea & Piger, Jeremy, 2017. "Identifying business cycle turning points in real time with vector quantization," International Journal of Forecasting, Elsevier, vol. 33(1), pages 174-184.
    3. Michael Puglia & Adam Tucker, 2020. "Machine Learning, the Treasury Yield Curve and Recession Forecasting," Finance and Economics Discussion Series 2020-038, Board of Governors of the Federal Reserve System (U.S.).
    4. Heravi, Saeed & Osborn, Denise R. & Birchenhall, C. R., 2004. "Linear versus neural network forecasts for European industrial production series," International Journal of Forecasting, Elsevier, vol. 20(3), pages 435-446.
    5. Saman, Corina, 2011. "Scenarios of the Romanian GDP Evolution With Neural Models," Journal for Economic Forecasting, Institute for Economic Forecasting, vol. 0(4), pages 129-140, December.
    6. Nissilä, Wilma, 2020. "Probit based time series models in recession forecasting – A survey with an empirical illustration for Finland," BoF Economics Review 7/2020, Bank of Finland.
    7. Tölö, Eero, 2020. "Predicting systemic financial crises with recurrent neural networks," Journal of Financial Stability, Elsevier, vol. 49(C).
    8. Vrontos, Spyridon D. & Galakis, John & Vrontos, Ioannis D., 2021. "Modeling and predicting U.S. recessions using machine learning techniques," International Journal of Forecasting, Elsevier, vol. 37(2), pages 647-671.
    9. Roberto Patuelli & Peter Nijkamp & Simonetta Longhi & Aura Reggiani, 2008. "Neural Networks and Genetic Algorithms as Forecasting Tools: A Case Study on German Regions," Environment and Planning B, , vol. 35(4), pages 701-722, August.
    10. Pauwels, Laurent & Vasnev, Andrey, 2014. "Forecast combination for U.S. recessions with real-time data," The North American Journal of Economics and Finance, Elsevier, vol. 28(C), pages 138-148.
    11. Terasvirta, Timo & van Dijk, Dick & Medeiros, Marcelo C., 2005. "Linear models, smooth transition autoregressions, and neural networks for forecasting macroeconomic time series: A re-examination," International Journal of Forecasting, Elsevier, vol. 21(4), pages 755-774.
    12. Chauvet, Marcelle & Potter, Simon, 2013. "Forecasting Output," Handbook of Economic Forecasting, in: G. Elliott & C. Granger & A. Timmermann (ed.), Handbook of Economic Forecasting, edition 1, volume 2, chapter 0, pages 141-194, Elsevier.
    13. Qing Cao & Mark Parry & Karyl Leggio, 2011. "The three-factor model and artificial neural networks: predicting stock price movement in China," Annals of Operations Research, Springer, vol. 185(1), pages 25-44, May.
    14. repec:syb:wpbsba:05/2013 is not listed on IDEAS
    15. Qi, Min & Yang, Sha, 2003. "Forecasting consumer credit card adoption: what can we learn about the utility function?," International Journal of Forecasting, Elsevier, vol. 19(1), pages 71-85.
    16. Dean Croushore, 2011. "Frontiers of Real-Time Data Analysis," Journal of Economic Literature, American Economic Association, vol. 49(1), pages 72-100, March.
    17. Pierdzioch Christian & Gupta Rangan, 2020. "Uncertainty and Forecasts of U.S. Recessions," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 24(4), pages 1-20, September.
    18. Seulki Chung, 2023. "Real-time Prediction of the Great Recession and the Covid-19 Recession," Papers 2310.08536, arXiv.org, revised Mar 2024.
    19. De Gooijer, Jan G. & Hyndman, Rob J., 2006. "25 years of time series forecasting," International Journal of Forecasting, Elsevier, vol. 22(3), pages 443-473.
    20. Jan G. De Gooijer & Rob J. Hyndman, 2005. "25 Years of IIF Time Series Forecasting: A Selective Review," Monash Econometrics and Business Statistics Working Papers 12/05, Monash University, Department of Econometrics and Business Statistics.
    21. Malik, Farooq & Nasereddin, Mahdi, 2006. "Forecasting output using oil prices: A cascaded artificial neural network approach," Journal of Economics and Business, Elsevier, vol. 58(2), pages 168-180.

    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:2310.17571. 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.