Backtesting biases are systematic errors that make a trading strategy look better on historical data than it is likely to perform with real money. They enter through the way data are chosen, the number of ideas tried and the assumption about what information was available on each past date. The family is closely tied to overfitting, survivorship bias and look-ahead bias.
Researchers at quantitative funds, academic finance groups and index providers use the terms below to describe and correct these errors. Data mining and selection bias describe how a result is produced, multiple hypothesis testing and the false discovery rate describe how the error is measured and controlled, and point-in-time data describes a database design that removes one source of the problem. Each section can be read on its own.
Data Mining Bias
Data mining bias, also called data snooping or P-hacking, appears when many rules, indicators or parameter values are tried on the same data set and only the best performer is kept. With enough trials, some rule will fit past prices well by chance alone, and its apparent edge disappears on new data. The effect grows with the number of variations tested, including informal ones such as tweaking a filter after seeing a poor year.
Academic work by Andrew Lo and Craig MacKinlay in 1990 and a reality-check test by Halbert White in 2000 brought the issue into financial statistics. Common safeguards are holding back an untouched out-of-sample period, using walk-forward optimization, requiring an economic reason for the rule before testing it, and raising the evidence bar as the number of trials grows. The same data set should be used only once for a final test.
Selection Bias
Selection bias is distortion caused by choosing which strategies, assets or periods to report after seeing the results. A manager who tests fifty signals and presents the three best, or who picks the start date that flatters a track record, is selecting on outcomes. The reported figures then overstate what an investor should expect, even if every individual calculation is correct.
It overlaps with data snooping, overfitting and survivorship bias, which is a special case in which failed funds or delisted stocks drop out of the sample. Reducing it means recording every idea tested, including discarded ones, fixing the test universe and period before looking at results, and confirming findings on data that played no part in the selection. Methods for doing this are collected under backtest validation methods.
Multiple Hypothesis Testing
Multiple hypothesis testing is the statistical problem that arises when many hypotheses are tested together. A single test at a 5 percent significance level has a 5 percent chance of a false positive when the null hypothesis is true, but across many tests the chance of at least one false positive rises quickly. For m independent tests the probability is:
Here is the significance level for each test and is the number of tests. With and , the result is about 99.4 percent, so a false winner is almost certain. The Bonferroni correction divides the threshold by the number of tests, here to 0.0005, while the Holm method is a less conservative step-down version. A related line of research argues that a newly proposed factor should clear a much higher t-statistic than the traditional value of about 2.
False Discovery Rate (FDR)
The false discovery rate is the expected share of declared discoveries that are false. It is a less strict target than controlling the chance of any false positive, and it suits research that screens hundreds of signals and accepts that some picks will fail. If a screen flags 40 strategies as significant at an FDR of 10 percent, about 4 of them are expected to be false.
The Benjamini-Hochberg procedure, published in 1995, is the standard way to control it. P-values are sorted from smallest to largest, and every hypothesis up to the largest rank k whose p-value is at or below k divided by m, multiplied by the chosen rate, is accepted. Quantitative researchers apply it when selecting from large pools of candidate signals, and it complements the p-value by adjusting for how many looks were taken. The tests themselves are described under statistical tests for strategy significance.
Point-in-Time Data
Point-in-time data records what was known on each historical date, without later restatements, revisions or additions. A fundamental backtest that uses today's version of a company's financial statements would see earnings that were corrected after the original announcement, and it would also assume figures were public at the end of the reporting period rather than when they were filed. Both mistakes leak the future into the past.
Typical examples are earnings restatements, revised macroeconomic releases such as GDP, index membership lists and analyst estimates as they stood before a later change. Commercial databases offer point-in-time versions that store each value with the date it became available. Using them removes one cause of look-ahead bias, although it does not cure data mining. The wider practice of backtesting depends on this discipline.
Ref 1320000505