IDEAS home Printed from https://ideas.repec.org/p/zbw/dicedp/303050.html
   My bibliography  Save this paper

Forecasting recessions in Germany with machine learning

Author

Listed:
  • Rademacher, Philip

Abstract

This paper applies machine learning to forecast business cycles in the German economy using a high-dimensional dataset with 73 indicators, primarily from the OECD Main Economic Indicator Database, covering a time period from 1973 to 2023. Sequential Floating Forward Selection (SFFS) is used to select the most relevant indicators and build compact, explainable, and performant models. Therefore, regularized regression models (LASSO, Ridge) and tree-based classification models (Random Forest, and Logit Boost) are used as challenger models to outperform a probit model containing the term spread as a predictor. All models are trained on data from 1973-2006 and evaluated on a hold-out-sample starting in 2006. The study reveals that fewer indicators are necessary to model recessions. Models built with SFFS have a maximum of eleven indicators. Furthermore, the study setting shows that many indicators are stable across time and business cycles. Machine learning models prove particularly effective in predicting recessions during periods of quantitative easing, when the predictive power of the term spread diminishes. The findings contribute to the ongoing discussion on the use of machine learning in economic forecasting, especially in the context of limited and imbalanced data.

Suggested Citation

  • Rademacher, Philip, 2024. "Forecasting recessions in Germany with machine learning," DICE Discussion Papers 416, Heinrich Heine University Düsseldorf, Düsseldorf Institute for Competition Economics (DICE).
  • Handle: RePEc:zbw:dicedp:303050
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/303050/1/1903197465.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Hasse, Jean-Baptiste & Lajaunie, Quentin, 2022. "Does the yield curve signal recessions? New evidence from an international panel data analysis," The Quarterly Review of Economics and Finance, Elsevier, vol. 84(C), pages 9-22.
    2. Travis J. Berge, 2015. "Predicting Recessions with Leading Indicators: Model Averaging and Selection over the Business Cycle," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 34(6), pages 455-471, September.
    3. Simon Gilchrist & Egon Zakrajsek, 2012. "Credit Spreads and Business Cycle Fluctuations," American Economic Review, American Economic Association, vol. 102(4), pages 1692-1720, June.
    4. Ullrich Heilemann, 2019. "Rezessionen in der Bundesrepublik Deutschland von 1966 bis 2013 [German Recessions 1966 to 20013]," Wirtschaftsdienst, Springer;ZBW - Leibniz Information Centre for Economics, vol. 99(8), pages 546-552, August.
    5. Döpke, Jörg & Fritsche, Ulrich & Pierdzioch, Christian, 2017. "Predicting recessions with boosted regression trees," International Journal of Forecasting, Elsevier, vol. 33(4), pages 745-759.
    6. Jean-Baptiste Hasse & Quentin Lajaunie, 2020. "Does the Yield Curve Signal Recessions? New Evidence from an International Panel Data Analysis," AMSE Working Papers 2013, Aix-Marseille School of Economics, France.
    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. Laleh Tafakori & Armin Pourkhanali & Riccardo Rastelli, 2022. "Measuring systemic risk and contagion in the European financial network," Empirical Economics, Springer, vol. 63(1), pages 345-389, July.
    2. 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.
    3. Shahram Fattahi & Kiomars Sohaili & Hamed Monkaresi & Fatemeh Mehrabi, 2017. "Modelling and Forecasting Recessions in Oil-exporting Countries: The Case of Iran," International Journal of Economics and Financial Issues, Econjournals, vol. 7(3), pages 569-574.
    4. Jean-Baptiste Hasse, 2022. "Systemic risk: a network approach," Empirical Economics, Springer, vol. 63(1), pages 313-344, July.
    5. Christos Argyropoulos & Bertrand Candelon & Jean‐Baptiste Hasse & Ekaterini Panopoulou, 2024. "Towards a macroprudential regulatory framework for mutual funds?," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 29(3), pages 3063-3082, July.
    6. Lauri Nevasalmi, 2022. "Recession forecasting with high‐dimensional data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(4), pages 752-764, July.
    7. Filip Bašić & Tomislav Globan, 2023. "Early bird catches the worm: finding the most effective early warning indicators of recessions," Economic Research-Ekonomska Istraživanja, Taylor & Francis Journals, vol. 36(1), pages 2120040-212, December.
    8. Jean-Baptiste Hasse, 2020. "Systemic Risk: a Network Approach," Working Papers halshs-02893780, HAL.
    9. Min Jeong Kim & Dohyoung Kwon, 2023. "Dynamic asset allocation strategy: an economic regime approach," Journal of Asset Management, Palgrave Macmillan, vol. 24(2), pages 136-147, March.
    10. Hwang, Youngjin, 2019. "Forecasting recessions with time-varying models," Journal of Macroeconomics, Elsevier, vol. 62(C).
    11. 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.
    12. Seulki Chung, 2023. "Real-time Prediction of the Great Recession and the Covid-19 Recession," Papers 2310.08536, arXiv.org, revised May 2024.
    13. Qin Zhang & He Ni & Hao Xu, 2023. "Forecasting models for the Chinese macroeconomy in a data‐rich environment: Evidence from large dimensional approximate factor models with mixed‐frequency data," Accounting and Finance, Accounting and Finance Association of Australia and New Zealand, vol. 63(1), pages 719-767, March.
    14. Quentin LAJAUNIE, 2021. "Nonlinear Impulse Response Function for Dichotomous Models," LEO Working Papers / DR LEO 2852, Orleans Economics Laboratory / Laboratoire d'Economie d'Orleans (LEO), University of Orleans.
    15. Carstensen, Kai & Heinrich, Markus & Reif, Magnus & Wolters, Maik H., 2020. "Predicting ordinary and severe recessions with a three-state Markov-switching dynamic factor model," International Journal of Forecasting, Elsevier, vol. 36(3), pages 829-850.
    16. Christoph Görtz & John D. Tsoukalas, 2013. "Sector Specific News Shocks in Aggregate and Sectoral Fluctuations," CESifo Working Paper Series 4269, CESifo.
    17. Steven J. Davis & John C. Haltiwanger & Kyle Handley & Ben Lipsius & Josh Lerner & Javier Miranda, 2021. "The economic effects of private equity buyouts," Jena Economics Research Papers 2021-013, Friedrich-Schiller-University Jena.
    18. Salzmann, Leonard, 2020. "The Impact of Uncertainty and Financial Shocks in Recessions and Booms," VfS Annual Conference 2020 (Virtual Conference): Gender Economics 224588, Verein für Socialpolitik / German Economic Association.
    19. repec:zbw:bofrdp:2016_016 is not listed on IDEAS
    20. Hollander, Hylton & Liu, Guangling, 2016. "Credit spread variability in the U.S. business cycle: The Great Moderation versus the Great Recession," Journal of Banking & Finance, Elsevier, vol. 67(C), pages 37-52.
    21. Karadi, Peter & Nakov, Anton, 2021. "Effectiveness and addictiveness of quantitative easing," Journal of Monetary Economics, Elsevier, vol. 117(C), pages 1096-1117.

    More about this item

    Keywords

    Business Cycles; Recession; Forecasting; Machine Learning;
    All these keywords.

    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:zbw:dicedp:303050. 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/diduede.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.