IDEAS home Printed from https://ideas.repec.org/p/fip/fedgfe/2020-38.html
   My bibliography  Save this paper

Machine Learning, the Treasury Yield Curve and Recession Forecasting

Author

Listed:
  • Michael Puglia
  • Adam Tucker

Abstract

We use machine learning methods to examine the power of Treasury term spreads and other financial market and macroeconomic variables to forecast US recessions, vis-à-vis probit regression. In particular we propose a novel strategy for conducting cross-validation on classifiers trained with macro/financial panel data of low frequency and compare the results to those obtained from standard k-folds cross-validation. Consistent with the existing literature we find that, in the time series setting, forecast accuracy estimates derived from k-folds are biased optimistically, and cross-validation strategies which eliminate data "peeking" produce lower, and perhaps more realistic, estimates of forecast accuracy. More strikingly, we also document rank reversal of probit, Random Forest, XGBoost, LightGBM, neural network and support-vector machine classifier forecast performance over the two cross-validation methodologies. That is, while a k-folds cross-validation indicates tha t the forecast accuracy of tree methods dominates that of neural networks, which in turn dominates that of probit regression, the more conservative cross-validation strategy we propose indicates the exact opposite, and that probit regression should be preferred over machine learning methods, at least in the context of the present problem. This latter result stands in contrast to a growing body of literature demonstrating that machine learning methods outperform many alternative classification algorithms and we discuss some possible reasons for our result. We also discuss techniques for conducting statistical inference on machine learning classifiers using Cochrane's Q and McNemar's tests; and use the SHapley Additive exPlanations (SHAP) framework to decompose US recession forecasts and analyze feature importance across business cycles.

Suggested Citation

  • 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.).
  • Handle: RePEc:fip:fedgfe:2020-38
    DOI: 10.17016/FEDS.2020.038
    as

    Download full text from publisher

    File URL: https://www.federalreserve.gov/econres/feds/files/2020038pap.pdf
    Download Restriction: no

    File URL: https://libkey.io/10.17016/FEDS.2020.038?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. Fornari, Fabio & Lemke, Wolfgang, 2010. "Predicting recession probabilities with financial variables over multiple horizons," Working Paper Series 1255, European Central Bank.
    2. Andreas Joseph, 2019. "Parametric inference with universal function approximators," Papers 1903.04209, arXiv.org, revised Oct 2020.
    3. Marcelle Chauvet & Simon Potter, 2005. "Forecasting recessions using the yield curve," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(2), pages 77-103.
    4. Serena Ng, 2014. "Viewpoint: Boosting Recessions," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 47(1), pages 1-34, February.
    5. Tashman, Leonard J., 2000. "Out-of-sample tests of forecasting accuracy: an analysis and review," International Journal of Forecasting, Elsevier, vol. 16(4), pages 437-450.
    6. Quinn McNemar, 1947. "Note on the sampling error of the difference between correlated proportions or percentages," Psychometrika, Springer;The Psychometric Society, vol. 12(2), pages 153-157, June.
    7. Fornaro, Paolo, 2015. "Forecasting U.S. Recessions with a Large Set of Predictors," MPRA Paper 62973, University Library of Munich, Germany.
    8. Aruoba, S. BoraÄŸan & Diebold, Francis X. & Scotti, Chiara, 2009. "Real-Time Measurement of Business Conditions," Journal of Business & Economic Statistics, American Statistical Association, vol. 27(4), pages 417-427.
    9. 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.
    10. Arturo Estrella & Mary R. Trubin, 2006. "The yield curve as a leading indicator: some practical issues," Current Issues in Economics and Finance, Federal Reserve Bank of New York, vol. 12(Jul).
    11. Liu, Weiling & Moench, Emanuel, 2016. "What predicts US recessions?," International Journal of Forecasting, Elsevier, vol. 32(4), pages 1138-1150.
    12. Wei-Yin Loh, 2014. "Fifty Years of Classification and Regression Trees," International Statistical Review, International Statistical Institute, vol. 82(3), pages 329-348, December.
    13. Benjamin H Cohen & Peter Hördahl & Dora Xia, 2018. "Term premia: models and some stylised facts," BIS Quarterly Review, Bank for International Settlements, March.
    14. Peter Johansson & Andrew C. Meldrum, 2018. "Predicting Recession Probabilities Using the Slope of the Yield Curve," FEDS Notes 2018-03-01-3, Board of Governors of the Federal Reserve System (U.S.).
    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. Seulki Chung, 2023. "Inside the black box: Neural network-based real-time prediction of US recessions," Papers 2310.17571, arXiv.org, revised Mar 2024.
    2. 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.
    3. Massimo Ferrari Minesso & Laura Lebastard & Helena Mezo, 2023. "Text-Based Recession Probabilities," IMF Economic Review, Palgrave Macmillan;International Monetary Fund, vol. 71(2), pages 415-438, June.
    4. 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.
    5. Christiansen, Charlotte & Eriksen, Jonas N. & Møller, Stig V., 2019. "Negative house price co-movements and US recessions," Regional Science and Urban Economics, Elsevier, vol. 77(C), pages 382-394.
    6. Liu, Weiling & Moench, Emanuel, 2016. "What predicts US recessions?," International Journal of Forecasting, Elsevier, vol. 32(4), pages 1138-1150.
    7. Davig, Troy & Hall, Aaron Smalter, 2019. "Recession forecasting using Bayesian classification," International Journal of Forecasting, Elsevier, vol. 35(3), pages 848-867.
    8. Shuping Shi & Peter C. B. Phillips & Stan Hurn, 2018. "Change Detection and the Causal Impact of the Yield Curve," Journal of Time Series Analysis, Wiley Blackwell, vol. 39(6), pages 966-987, November.
    9. Dongfeng Chang & Ryan S. Mattson & Biyan Tang, 2019. "The Predictive Power of the User Cost Spread for Economic Recession in China and the US," IJFS, MDPI, vol. 7(2), pages 1-12, June.
    10. Aguiar-Conraria, Luís & Martins, Manuel M.F. & Soares, Maria Joana, 2012. "The yield curve and the macro-economy across time and frequencies," Journal of Economic Dynamics and Control, Elsevier, vol. 36(12), pages 1950-1970.
    11. 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.
    12. 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.
    13. Knut Lehre Seip & Dan Zhang, 2021. "The Yield Curve as a Leading Indicator: Accuracy and Timing of a Parsimonious Forecasting Model," Forecasting, MDPI, vol. 3(2), pages 1-16, May.
    14. Kajal Lahiri & Cheng Yang, 2022. "ROC approach to forecasting recessions using daily yield spreads," Business Economics, Palgrave Macmillan;National Association for Business Economics, vol. 57(4), pages 191-203, October.
    15. Marius M. Mihai, 2020. "Do credit booms predict US recessions?," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 39(6), pages 887-910, September.
    16. Manfred Keil & Edward Leamer & Yao Li, 2023. "An investigation into the probability that this is the last year of the economic expansion," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(5), pages 1228-1244, August.
    17. Harold M. Hastings & Tai Young-Taft & Thomas Wang, 2019. "When to Ease Off the Brakes--and Hopefully Prevent Recessions," Economics Working Paper Archive wp_929, Levy Economics Institute.
    18. Pawel Dlotko & Simon Rudkin, 2019. "The Topology of Time Series: Improving Recession Forecasting from Yield Spreads," Working Papers 2019-02, Swansea University, School of Management.
    19. Harri Pönkä & Markku Stenborg, 2020. "Forecasting the state of the Finnish business cycle," Finnish Economic Papers, Finnish Economic Association, vol. 29(1), pages 81-99, Spring.
    20. , & Stein, Tobias, 2021. "Equity premium predictability over the business cycle," CEPR Discussion Papers 16357, C.E.P.R. Discussion Papers.

    More about this item

    Keywords

    Shapley; Probit; XGBoost; Treasury yield curve; neural networks; LightGBM; Recession; Tree ensemble; Support-vector machine; Random forest;
    All these keywords.

    JEL classification:

    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • E37 - Macroeconomics and Monetary Economics - - Prices, Business Fluctuations, and Cycles - - - Forecasting and Simulation: Models and Applications

    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:fip:fedgfe:2020-38. 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: Ryan Wolfslayer ; Keisha Fournillier (email available below). General contact details of provider: https://edirc.repec.org/data/frbgvus.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.