Skip to content
LeetQuant
QR08 Backtesting and Research Design

QR08 · Backtesting and Research Design · Lesson 4 of 6

Multiple Testing in Strategy Research

Family-wise error and false discovery rate, Bonferroni, Holm and Benjamini–Hochberg on a set of strategies, the haircut Sharpe ratio and the deflated Sharpe ratio, with numbers.

18 min

Objective

When you test many strategies, a 5% test per strategy no longer means a 5% chance of fooling yourself. You should be able to choose between controlling the family-wise error rate and the false discovery rate, apply Bonferroni, Holm and Benjamini–Hochberg by hand, convert a Sharpe ratio into a multiple-testing-adjusted ("haircut") Sharpe ratio, and explain what the deflated Sharpe ratio adds.

Two error rates

With mm tests, of which m0m_0 are true nulls:

  • Family-wise error rate (FWER): P(at least one false rejection)P(\text{at least one false rejection}). For mm independent true nulls tested at level α\alpha, FWER=1−(1−α)m\text{FWER} = 1 - (1 - \alpha)^m: 64% for 20 tests and 92% for 50.
  • False discovery rate (FDR): E[V/max⁡(R,1)]\mathbb{E}[V / \max(R, 1)], where RR is the number of rejections and VV the false ones. It tolerates some false positives as long as they are a controlled fraction of discoveries.

Use FWER control when acting on a single false positive is expensive (deploying capital to one strategy, publishing one result). Use FDR when screening many candidates for further work, where a few duds among the survivors are acceptable.

The procedures

Sort the p-values p(1)≤⋯≤p(m)p_{(1)} \le \dots \le p_{(m)}.

  • Bonferroni (FWER): reject p(i)≤α/mp_{(i)} \le \alpha/m. Valid under any dependence; conservative when tests are correlated.
  • Holm (FWER): step down. Reject p(1)p_{(1)} if p(1)≤α/mp_{(1)} \le \alpha/m, then p(2)p_{(2)} if p(2)≤α/(m−1)p_{(2)} \le \alpha/(m-1), and so on, stopping at the first failure. Also valid under any dependence and never rejects fewer than Bonferroni, so there is no reason to use plain Bonferroni except mental arithmetic.
  • Benjamini–Hochberg (FDR): find the largest kk with p(k)≤kα/mp_{(k)} \le k\alpha/m and reject p(1),…,p(k)p_{(1)}, \dots, p_{(k)}. Valid under independence or positive dependence, which is the usual situation for strategy returns. It is a step-up rule: a p-value can be rejected even if it fails its own threshold, as long as a larger one passes.

The haircut Sharpe ratio

Harvey and Liu suggest reporting the Sharpe ratio that the adjusted p-value corresponds to. With YY years of data:

  1. t=SR^Yt = \widehat{\text{SR}}\sqrt{Y} and p=2 (1−Φ(t))p = 2\,(1 - \Phi(t)).
  2. Adjust: Bonferroni gives p∗=min⁡(1,m p)p^{\ast} = \min(1, m\,p); Holm or BH can be used instead.
  3. Invert: t∗=Φ−1(1−p∗/2)t^{\ast} = \Phi^{-1}(1 - p^{\ast}/2) and SR∗=t∗/Y\text{SR}^{\ast} = t^{\ast}/\sqrt{Y}.

The haircut 1−SR∗/SR^1 - \text{SR}^{\ast}/\widehat{\text{SR}} is not a fixed percentage: it is large for marginal results and small for overwhelming ones. Harvey, Liu and Zhu argued along these lines that new factors in the published literature should clear t≈3t \approx 3 rather than 2.

The deflated Sharpe ratio

The probabilistic Sharpe ratio asks how likely the true Sharpe exceeds a benchmark SR0\text{SR}_0, accounting for sample length and non-normal returns. With per-period estimates SR^\widehat{\text{SR}}, TT observations, skewness γ3\gamma_3 and (non-excess) kurtosis γ4\gamma_4:

PSR(SR0)=Φ ⁣((SR^−SR0)T−11−γ3SR^+γ4−14SR^2).\text{PSR}(\text{SR}_0) = \Phi\!\left( \frac{(\widehat{\text{SR}} - \text{SR}_0)\sqrt{T - 1}}{\sqrt{1 - \gamma_3 \widehat{\text{SR}} + \tfrac{\gamma_4 - 1}{4}\widehat{\text{SR}}^2}} \right).

Negative skew and fat tails enlarge the denominator and lower the PSR. The deflated Sharpe ratio (Bailey and López de Prado) sets SR0\text{SR}_0 to the expected maximum Sharpe of the NN trials actually run, SR0=σS E[max⁡NZ]\text{SR}_0 = \sigma_S\,\mathbb{E}[\max_N Z], from the previous lesson. It answers: "is this better than the best of NN lucky draws?" Its weak point is the same as every correction's: you need an honest NN and σS\sigma_S, which only a research log provides.

Assumptions and limitations

  • All of these treat the tests you know about. Trials that were run and forgotten, or run by others on the same data, are not corrected for.
  • Bonferroni and Holm become very conservative when the strategies are highly correlated (nearby parameters); an effective number of independent trials, or a resampling method that preserves the correlation, is less wasteful.
  • Corrections control false positives, at the cost of power. A real but modest strategy can fail every correction on a short sample.

Worked example

Bonferroni, Holm and BH on ten strategies

Ten strategies have t-statistics 3.9,3.1,2.8,2.6,2.4,2.0,1.7,1.2,0.8,0.33.9, 3.1, 2.8, 2.6, 2.4, 2.0, 1.7, 1.2, 0.8, 0.3. Using two-sided p-values and α=5%\alpha = 5\%, which are rejected by Bonferroni, Holm and Benjamini–Hochberg?

Show solution

The two-sided p-values 2(1−Φ(t))2(1 - \Phi(t)) are, in order:

iittp(i)p_{(i)}Bonferroni 0.05/100.05/10Holm 0.05/(11−i)0.05/(11 - i)BH 0.005 i0.005\,i
13.90.00010.0050.00500.005
23.10.00190.0050.00560.010
32.80.00510.0050.00630.015
42.60.00930.0050.00710.020
52.40.01640.0050.00830.025
62.00.04550.0050.01000.030
71.70.08910.0050.01250.035

(Rows 8 to 10 have p-values of 0.230.23, 0.420.42 and 0.760.76 and pass nothing.)

  • Bonferroni rejects the first two: 0.00510.0051 just misses 0.0050.005.
  • Holm rejects 1, 2 and 3 (0.0051≤0.00630.0051 \le 0.0063), then stops at row 4 because 0.0093>0.00710.0093 > 0.0071.
  • BH passes rows 1 to 5 (0.0164≤0.0250.0164 \le 0.025) and fails rows 6 onward, so the largest passing kk is 5 and it rejects five strategies.

Read the result as: with FWER control, two or three strategies survive; if you accept that about 5% of your discoveries may be false, five go forward to the next stage.

Worked example

haircut and deflated Sharpe ratios

A strategy has an annualised Sharpe ratio of 1.0 over 10 years. (a) Compute the Bonferroni haircut Sharpe ratio if it was the best of 10, 50 and 100 trials. (b) Using 120 monthly returns with skewness −0.5-0.5 and kurtosis 5, compute the probabilistic Sharpe ratio against zero, and the deflated Sharpe ratio when the 50 trials had a cross-sectional Sharpe standard deviation of 1/10≈0.3161/\sqrt{10} \approx 0.316.

Show solution

(a) t=1.010=3.162t = 1.0\sqrt{10} = 3.162 and p=0.00157p = 0.00157.

trials mmp∗=m pp^{\ast} = m\,pt∗t^{\ast}SR∗=t∗/10\text{SR}^{\ast} = t^{\ast}/\sqrt{10}haircut
100.01572.420.7624%
500.07831.760.5644%
1000.1571.420.4555%

With 50 or more trials the adjusted result is no longer significant at 5%.

(b) The monthly Sharpe ratio is 1.0/12=0.28871.0/\sqrt{12} = 0.2887. The denominator is

1+0.5×0.2887+5−14×0.28872=1+0.1443+0.0833≈1.108.\sqrt{1 + 0.5 \times 0.2887 + \tfrac{5 - 1}{4} \times 0.2887^2} = \sqrt{1 + 0.1443 + 0.0833} \approx 1.108 .

Against SR0=0\text{SR}_0 = 0: z=0.2887119/1.108≈2.84z = 0.2887\sqrt{119}/1.108 \approx 2.84, so PSR≈0.998\text{PSR} \approx 0.998.

For the deflated version, the expected best of 50 null trials is 0.316×2.25≈0.7110.316 \times 2.25 \approx 0.711 annualised, or 0.711/12=0.20530.711/\sqrt{12} = 0.2053 monthly. Then

z=(0.2887−0.2053)1191.108≈0.82,DSR=Φ(0.82)≈0.79.z = \frac{(0.2887 - 0.2053)\sqrt{119}}{1.108} \approx 0.82, \qquad \text{DSR} = \Phi(0.82) \approx 0.79 .

A 79% probability of beating the best lucky draw is far from the 95% a deployment decision would usually ask for, although the strategy looked like a near-certainty (PSR 0.998) before the trial count entered.

Knowledge check

You test 20 independent strategies with no edge, each at the 5% level. What is the probability that at least one appears significant?

Knowledge check

Which statement about Holm and Bonferroni at the same level is correct?

Knowledge check

A strategy shows an annualised Sharpe ratio of 1.0 on 10 years of data and was the best of 10 trials. What is its Bonferroni haircut Sharpe ratio?

Key takeaways

  • FWER =1−(1−α)m= 1 - (1-\alpha)^m for independent nulls; control it when one false positive is costly, control FDR when screening.
  • Holm dominates Bonferroni; Benjamini–Hochberg rejects the largest kk with p(k)≤kα/mp_{(k)} \le k\alpha/m.
  • Haircut Sharpe: Sharpe to p-value, adjust for mm, back to Sharpe. The haircut is largest for marginal results.
  • Deflated Sharpe: the probabilistic Sharpe ratio against the expected best of NN trials, with skew and kurtosis included.
  • Every correction is only as good as the trial count; keep the log.

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).