Multiple Testing: False Positives and the Bonferroni Correction
Finds: whether a best-of-many result could be luck.
When to use it: Use it to check research for data mining. If you try 40 signals and report the best one, a "significant" result at 5% is very likely by luck alone. State how many things you tried, adjust the threshold, and test on data not used in the search. The same issue applies to backtests where many rules and parameters were tried.
The formula
In words: If you test n unrelated ideas at significance level alpha, the chance of at least one false discovery = 1 − (1 − alpha)^n; Expected number of false positives = n x alpha; Bonferroni-adjusted threshold = alpha / n; A result is credible only if its p-value is below the adjusted threshold; Required t-statistic rises from about 2 to 3 or more when many strategies are tried
What each symbol means
| n | Number of strategies, signals or variables tried (including the ones not reported) | count |
| alpha | Significance level used for each test | percent |
| p | p-value of the best result | number |
Worked example
A researcher tries 40 trading signals at the 5% level and reports the best one, which has a p-value of 0.012.
| Signals tried | 40 | 40 |
| Chance of at least one false positive | 1 − (1 − 0.05)^40 | 87.1% |
| Expected false positives | 40 × 0.05 | 2 |
| Bonferroni-adjusted threshold | 0.05 ÷ 40 | 0.125% |
| Passes the adjusted threshold? (1 | 1 if 0.012<=0.05 ÷ 40 else 0 | 0 |
| Adjusted p-value | min(0.012 × 40, 1) | 0.480 |
The chance that at least one of 40 signals looks significant by luck alone is 87.1%, and the expected number of false positives is 2.0. The adjusted threshold is 0.125%. The reported p-value of 0.012 is 0 (1 = passes the adjusted threshold, 0 = does not). The adjusted p-value (p x n, capped at 1) is 0.480.