Overfitting

Atlas of Cognitive Biases #57 · Data and testing. A perfect backtest, a disappointing future

What it looks like in trading

An example from a session

In the simulation from Biases by the numbers #6, we run 200 random “strategies” on random data. The best of them posts an excellent result in the test period and an average one in the next. That is no surprise, because it never had an edge to begin with.

What the research says

Halbert White (2000) proposed a test for judging whether the best of many tested strategies actually beats chance. Bailey, Borwein, López de Prado and Zhu (2014) demonstrated how easily many attempts yield a backtest that only looks excellent. For exactly this reason, Harvey, Liu and Zhu (2016) called for stricter significance thresholds in financial research.

Related biases

Frequently asked questions

What is overfitting?

Tuning a method to the fine details of historical data, random noise included. Such a method explains the past perfectly but performs poorly going forward. Also known as data snooping.

How does overfitting show up in trading?

Warning signs: settings tuned to get the best possible result on history; testing hundreds of versions and picking the winner; rules along the lines of “except Thursdays after 1:00 PM”.

Educational content, not psychological advice or an investment recommendation.