Data snooping bias (multiple testing)

Data snooping bias is the inflation of a result that comes from testing many rules, parameters or variants on the same data and keeping the best one. The more attempts, the more likely that the winner owes its performance to chance, so the reported result must be judged against the number of trials that produced it.

Senzoukria · Glossary · Updated September 2026


At a glance

Also called
Multiple testing, selection bias, p-hacking
20 useless rules at 5%
64% chance that at least one looks significant
Formal tests
White's Reality Check (2000), Hansen's SPA test (2005), deflated Sharpe, PBO
In Senzoukria
Sweep capped at 400 combinations; DSR counts the whole grid

Why the best of many is inflated

Test one rule with no edge at the 5% significance level and there is a 5% chance of a false positive. Test twenty independent rules with no edge and the chance that at least one passes is 1 − 0.95²⁰ ≈ 64%. The winning rule's statistics are genuine for that rule on that data, but the process that found it would have found something regardless. The maximum of many noisy results is biased upward by construction; that is a property of maxima, not of markets.

Halbert White formalized a test for this situation in 2000, the Reality Check, which compares the best rule against the distribution of the best of many rules under the null of no edge. Peter Hansen's superior predictive ability test (2005) refined it. The deflated Sharpe ratio and the probability of backtest overfitting address the same problem from other angles.

The trials nobody counts

  • Changing the session window, the bar type or the instrument after a first look at results.
  • Adding a filter because the equity curve had a bad month, then keeping it.
  • Starting from an idea that already worked in someone else's backtest on the same period.
  • Re-running a walk-forward with a different selection criterion until the efficiency looks acceptable.
  • Each of these is a trial. A formal correction only works if the count includes them.

In Senzoukria

The parameter sweep and the walk-forward of the automatic backtest refuse grids above 400 combinations, and the backtest assistant is instructed to keep sweeps under 100. The walk-forward reports a deflated Sharpe of its out-of-sample trades in which the number of trials is the number of configurations the selection chose from. The Gauntlet reruns the whole grid on the full period, computes the deflated Sharpe with N equal to the entire grid rather than the configurations kept, estimates the probability of backtest overfitting when at least eight session days are available, and adds a permutation test of the Sharpe ratio. What the software cannot see is the history of your earlier runs: a grid launched after ten abandoned grids is counted as one set of trials.

Practical countermeasures

  • Write the hypothesis, the grid and the selection criterion before looking at results.
  • Keep a research record of every variant tried, including abandoned ones.
  • Reserve a final period that no decision has touched and use it once.
  • Prefer rules whose neighbors on the grid also work over an isolated best cell.

In the same section

This page in other languages

Frequently asked questions

Is data snooping the same as overfitting?
They are closely related. Overfitting describes a rule tuned to the accidents of one sample. Data snooping describes the selection process: trying many rules or variants and keeping the best. Snooping is one of the main ways overfit rules are produced.
Can a walk-forward analysis remove data snooping bias?
It reduces it for the parameters chosen inside the procedure, because each choice is evaluated on data it did not see. It does not correct for choices made outside it, such as the rule family, the instrument or the number of walk-forwards run before the one you report.

Keep reading