[Paper Review] Predicting Economic Recessions Using Machine Learning Algorithms
This paper proposes using random forest machine learning algorithms to predict economic recessions in the U.S. and U.K. by training on real-time financial market indicators available at the time of forecasting. It demonstrates that the model can predict the 2008–2009 recession up to six quarters in advance with statistically significant correlation, outperforming traditional survey-based forecasts in long-term horizon predictions.
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.
Motivation & Objective
- To address the persistent failure of traditional economic forecasting to predict major recessions, such as the 2008–2009 global crisis.
- To evaluate whether machine learning, specifically random forests, can improve early warning signals for economic downturns using only timely, available financial indicators.
- To compare the performance of machine learning predictions against the Survey of Professional Forecasters (SPF) over long horizons (three and six quarters ahead).
- To assess the robustness and reliability of the model by retraining it iteratively over rolling time windows from 1970 to 2017.
- To determine whether the model avoids false positives by never predicting a recession when none occurred.
Proposed method
- The study employs a random forest classifier trained on a small set of financial market variables available at the time of each forecast.
- Training is performed over a rolling window: starting from 1970Q2 to 1990Q1, then incrementally extended to 1990Q2, 1990Q3, and so on, up to 2017.
- The model makes predictions one, three, and six quarters ahead, using default hyperparameters from the R package without any tuning.
- Predictions are compared against actual GDP growth data and the SPF’s mean forecasts over the same period.
- Statistical significance of the correlation between predicted and actual recessions is assessed using hypothesis testing.
- The model’s performance is evaluated separately for the U.S. and the U.K., with a focus on predictive accuracy and timing.
Experimental results
Research questions
- RQ1Can random forest models trained on real-time financial indicators predict major economic recessions earlier than traditional forecasting methods?
- RQ2How does the predictive accuracy of machine learning models compare to the Survey of Professional Forecasters (SPF) over three- and six-quarter horizons?
- RQ3Can the model reliably avoid false positives by not predicting recessions when no downturn occurs?
- RQ4To what extent can the model anticipate the 2008–2009 global recession, and how far in advance is this possible?
- RQ5Does the model’s performance remain significant and stable when retrained on rolling time windows?
Key findings
- The random forest model predicted the 2008–2009 U.S. recession six quarters in advance, with a statistically significant correlation between predicted and actual outcomes.
- For three- and six-quarter-ahead predictions, the correlation between model forecasts and actual GDP growth was very significantly different from zero, despite low absolute correlation values.
- The model never issued a false positive recession signal, correctly identifying that no recession occurred when none took place.
- While the model did not outperform the SPF in one-quarter-ahead predictions, it significantly improved upon SPF forecasts at longer horizons.
- The model’s predictive power was even stronger in the case of the United Kingdom, indicating potential for cross-country applicability.
- The results demonstrate that machine learning techniques like random forests can provide early warning signals for recessions using only timely, observable financial data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.