Skip to main content

Multiple Testing: False Positives and the Bonferroni Correction

IntermediateAdvanced Investment PracticeAlso known as: research integrity, p-hacking, data mining, backtest overfitting, family-wise error rate

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

FWER\displaystyle FWER=1−(1−α)n\displaystyle =1-(1-\alpha)^{n}αadj\displaystyle \alpha_{adj}=αn\displaystyle =\frac{\alpha}{n}E[false positives]\displaystyle E[\text{false positives}]=nα\displaystyle =n\alpha

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

nNumber of strategies, signals or variables tried (including the ones not reported)count
alphaSignificance level used for each testpercent
pp-value of the best resultnumber

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 tried4040
Chance of at least one false positive1 − (1 − 0.05)^4087.1%
Expected false positives40 × 0.052
Bonferroni-adjusted threshold0.05 ÷ 400.125%
Passes the adjusted threshold? (11 if 0.012<=0.05 ÷ 40 else 00
Adjusted p-valuemin(0.012 × 40, 1)0.480
The answer

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.

Want every formula on a few pages?Get the free Cheat Sheet (PDF) →

Calculator

Chance of at least one false positive87.1%
Expected false positives2
Bonferroni-adjusted threshold0.125%
Passes the adjusted threshold? (10
Adjusted p-value0.480

Keep going