How easy is overfitting of investment strategy parameters and how much does overfitting inflate expectations? In their February 2016 paper entitled “Backtest Overfitting in Financial Markets”, David Bailey, Jonathan Borwein, Marcos Lopez de Prado, Amir Salehipour and Qiji Zhu introduce two online backtest overfitting tools:
- Backtest Overfitting Demonstration Tool – BODT simulates the overfitting of seasonal strategies (typical of technical analysis) to find the optimal strategy within a simulated sample of prices or actual S&P 500 Index levels by varying entry day, holding period, long or short, and stop-loss level. It runs a “movie” showing the progression of Sharpe ratio optimization. BODT then tests the optimal strategy on new (out-of-sample) data. It also provides a deflated in-sample Sharpe ratio based on the number of variations tested.
- Tenure Maker Simulation Tool – TMST simulates the overfitting of econometric strategies (typical of academic journals) by varying forecasting equation parameters to maximize predictive power within a random (unpredictable) time series. It also runs a “movie” showing progression of Sharpe ratio optimization.
By overfitting, they mean repetitive use of an historical set of market data to identify the best of many variations of a strategy. Such optimality tends to target idiosyncrasies of the historical sample rather than any general market behavior. Their goals are to show how easy it is to overfit an investment strategy and how much overfitting may inflate investment performance expectations. Based on outputs of the two simulation tools, they conclude that:
- For most BODT runs, the subsequent out-of-sample Sharpe ratio is either negative or at least much lower than the in-sample optimal Sharpe ratio. In one example, the optimal in-sample Sharpe ratio is 1.59, but the out-of-sample Sharpe ratio is -0.18.
- Sharpe ratio inflation for TMST runs tends to be more extreme than that observed for BODT runs. In other words, econometric methods are susceptible to extreme overfitting, casting doubt on investment strategies published in academic journals.
In summary, evidence from simulations indicates that overfitting of investment strategies is easy and cultivates highly inflated expectations for investment performance.
Cautions regarding conclusions include:
- As with any simulator, results are realistic only to the extent that the inputs (such as simulated price data) mimic real market behaviors.
- Some strategists take steps to mitigate overfitting bias.
See also “Insidiousness of Overfitting Investment Strategies via Iterative Backtests”, “Measuring Investment Strategy Snooping Bias” and “Snooping for Fun and No Profit”.
Frequently Asked Questions
What is backtest overfitting in investing?
Backtest overfitting is the repetitive use of a historical set of market data to identify the best of many variations of an investment strategy. The resulting optimal strategy tends to target idiosyncrasies of the historical sample rather than any general market behavior, which inflates performance expectations.
Does an overfit backtest predict how a strategy will perform out-of-sample?
An overfit backtest does not reliably predict out-of-sample performance. In most Backtest Overfitting Demonstration Tool runs, the out-of-sample Sharpe ratio is negative or much lower than the in-sample optimum, such as 1.59 in-sample falling to -0.18 out-of-sample in one example. Simulations indicate overfitting is easy and fosters highly inflated performance expectations.
How do simulation tools test for backtest overfitting?
Bailey et al. use two online tools that search many strategy variations for the best in-sample Sharpe ratio and display the progression as a "movie." The Backtest Overfitting Demonstration Tool varies entry day, holding period, long or short position, and stop-loss level on simulated prices or actual S&P 500 Index levels, then tests the optimal strategy on new data and reports a deflated in-sample Sharpe ratio based on the number of variations tried. The Tenure Maker Simulation Tool varies forecasting equation parameters to maximize predictive power within a random, unpredictable time series.
Are econometric strategies from academic journals more prone to overfitting than technical analysis strategies?
In the simulations, econometric strategies appear more prone to overfitting than technical (seasonal) strategies. Sharpe ratio inflation in Tenure Maker Simulation Tool runs, which model econometric methods typical of academic journals, tends to be more extreme than in Backtest Overfitting Demonstration Tool runs, which model technical analysis. The authors say this casts doubt on investment strategies published in academic journals.
What are the limitations of using simulations to measure backtest overfitting?
Simulation results are realistic only to the extent that inputs, such as simulated price data, mimic real market behavior. In addition, some strategists take steps to mitigate overfitting bias, so the simulated inflation may not apply to every strategy. The findings therefore illustrate how easy overfitting is rather than precisely quantifying it for all real-world strategies.