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.
    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. 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.
    2. Hwang, Youngjin, 2019. "Forecasting recessions with time-varying models," Journal of Macroeconomics, Elsevier, vol. 62(C).
    3. Pan Tang & Yuwei Zhang, 2024. "China's business cycle forecasting: a machine learning approach," Computational Economics, Springer;Society for Computational Economics, vol. 64(5), pages 2783-2811, November.
    4. Seulki Chung, 2023. "Real-time Prediction of the Great Recession and the Covid-19 Recession," Papers 2310.08536, arXiv.org, revised May 2024.
    5. 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.
    6. 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.
    7. 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.
    8. Lauri Nevasalmi, 2022. "Recession forecasting with high‐dimensional data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(4), pages 752-764, July.
    9. 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.
    10. 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.
    11. Christoph Görtz & John D. Tsoukalas, 2013. "Sector Specific News Shocks in Aggregate and Sectoral Fluctuations," CESifo Working Paper Series 4269, CESifo.
    12. 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.
    13. 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.
    14. Karadi, Peter & Nakov, Anton, 2021. "Effectiveness and addictiveness of quantitative easing," Journal of Monetary Economics, Elsevier, vol. 117(C), pages 1096-1117.
    15. Zvi Eckstein & Ofer Setty & David Weiss, 2019. "Financial Risk And Unemployment," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 60(2), pages 475-516, May.
    16. Gareis, Johannes & Mayer, Eric, 2020. "Financial shocks and the relative dynamics of tangible and intangible investment: Evidence from the euro area," Discussion Papers 39/2020, Deutsche Bundesbank.
    17. Metiu, Norbert, 2021. "Anticipation effects of protectionist U.S. trade policies," Journal of International Economics, Elsevier, vol. 133(C).
    18. Alessandri, Piergiorgio & Mumtaz, Haroon, 2019. "Financial regimes and uncertainty shocks," Journal of Monetary Economics, Elsevier, vol. 101(C), pages 31-46.
    19. Marco Del Negro & Michele Lenza & Giorgio E. Primiceri & Andrea Tambalotti, 2020. "What's Up with the Phillips Curve?," Brookings Papers on Economic Activity, Economic Studies Program, The Brookings Institution, vol. 51(1 (Spring), pages 301-373.
    20. Goldstein, Itay & Jiang, Hao & Ng, David T., 2017. "Investor flows and fragility in corporate bond funds," Journal of Financial Economics, Elsevier, vol. 126(3), pages 592-613.

    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.