|

Can Machine Learning Improve Recession Prediction?

Executive Summary

Big data utilization in economics and the financial world has increased with every passing day. In previous reports, we have discussed issues and opportunities related to big data applications in economics/finance.1 This report outlines a framework to utilize machine learning and statistical data mining tools in the economics/financial world with the goal of more accurately predicting recessions. Decision makers have a vital interest in predicting future recessions in order to enact appropriate policy. Therefore, to help decision makers, we raise the question: Does machine learning and statistical data mining improve recession prediction accuracy?

Our first method to predict recessions concerns statistical machine learning, also known as statistical data mining. This method examined over 500,000 variables as potential predictor variables in our tests. Furthermore, to obtain the final logit/probit model specification, we ran 30 million different models. The selected model was then utilized to generate recession probabilities. The second method is the random forest approach, which utilizes a famous class of machine learning tools. The random forest approach uses the same set of predictors that are utilized in the statistical data mining method. The third approach we use is known as gradient boosting, a technique that also belongs in the machine learning family. Moreover, we built an econometric model that utilizes the yield curve as an additional recession predictor and employ it as a benchmark. The other three approaches include hundreds of thousands of potential predictors that do not use any prior economic/financial theories. We set out with the question of whether machine learning tools are more useful than a simpler econometric model, a model with only one predictor.

To test a model's accuracy, we employ both in-sample and out-of-sample criteria. In our tests, the random forest approach outperforms all the other models (gradient boosting, statistical machine learning and the simple econometric model) in both the in-sample and out-of-sample situations. The gradient boosting model comes in second place, while the statistical data mining approach captures third. Furthermore, if we combine all four probabilities, then that method is still unable to beat the random forest's prediction accuracy. That is, the random forest approach, alone, is the best. Our analysis proposes that machine learning can improve recession prediction accuracy. Moreover, our models suggest a less than 5 percent chance of a recession during the next 12 months.

To sum up our big data application analysis, we would like to expand the aforementioned Picasso quote by emphasizing that it is up to the analyst to obtain either an accurate answer by utilizing computers (big data) efficiently, or end up with a useless answer by providing irrelevant inputs (more noise than signals) to the model.2 Therefore, the reliable answer may not depend on computers but rather on how one utilizes those computers.

Download The Full Special Report

Author

More from Wells Fargo Research Team
Share:

Editor's Picks

AUD/USD eyes 0.7150 barrier nine-day EMA

AUD/USD inches higher after registering modest losses in the previous day, trading around 0.7130 during the Asian hours. The technical analysis of the daily chart indicates that the pair is moving sideways within the rectangle pattern, suggesting a consolidation as neither the bulls nor the bears have enough momentum to take control of the market.

USD/JPY trades below 160.00 intervention threshold; bullish bias intact

The USD/JPY pair attracts some sellers during the Asian session amid fears that authorities will step in again to prop up the Japanese Yen. Furthermore, the Israel-Lebanon truce prompts some profit-taking around the US Dollar and exerts downward pressure on the currency pair.

Gold defends 200-day SMA at $4,425, but for how long?

Gold is attempting a tepid recovery toward $4,500 early Thursday, as renewed optimism in the Mideast geopolitical front calms market nerves. This cautious optimism across Asian markets weighs on Oil prices, and diminishes the US Dollar’s safe-haven appeal, helping Gold stage a decent comeback from the weekly low of $4,424.

 

Hyperliquid: ETF demand, capital rotation fuel HYPE rally as Bitcoin melts

Hyperliquid price sustains an upward trend near its all-time high of $75.76 on Thursday after posting 80% gains in May, while Bitcoin (BTC) retraces below $65,000, triggering a market-wide panic.

Kevin Warsh takes the Fed helm: What it means for the US Dollar
The Federal Reserve moves away from the highly predictable "forward guidance" model of the Jerome Powell era to a new “Kevin Warsh environment”, characterized by less communication, more policy surprises, and an increased focus on the Fed's complex balance sheet.
Recession on paper: What really moves the Canadian Loonie now?

Statistics Canada handed the headline writers a gift and the analysts a headache. Real GDP shrank 0.1% on an annualized basis in the first quarter, and with the fourth quarter of 2025 revised down to a 1.0% contraction, that is two negative quarters in a row, the textbook definition of a technical recession and Canada's first since the pandemic.