Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Enough lottery tickets and someone wins
If a test has a 1-in-20 chance of a false alarm, and you run 20 tests on things that are all actually fine, you should expect one false alarm. Run 2000 tests and you’ll get about 100. That’s exactly what happens when you check every sensor on a spacecraft, every hyperparameter setting, or every subgroup of users.
Multiple-testing corrections adjust the thresholds so that, across the whole batch, false alarms stay under control.
| rule | true found | false alarms | share false |
|---|---|---|---|
| uncorrected p ≤ 0.05 | 45/50 | 23 | 33.8% |
| Bonferroni p ≤ 0.05/m | 13/50 | 0 | 0.0% |
| Benjamini–Hochberg (q = 5%) | 31/50 | 4 | 11.4% |
Health-monitoring systems check thousands of channels. ML teams compare dozens of model variants on many metrics. Without correction, operators drown in false alarms, or the team ships a “winner” that only won by luck.
- 1. 100 tests at 5% on things that are all fine: expected false alarms?
- 2. Multiple-testing corrections make each individual test…
- 3. Checking 2000 sensors daily without correction gives…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.Two error rates for a family of tests
- FWER (family-wise error rate): . Use it when any single false claim is costly: safety-critical alarms, confirmatory claims.
- FDR (false discovery rate): . Use it when screening many candidates and a small proportion of duds among the discoveries is acceptable.
Controlling FWER
- Bonferroni: test each hypothesis at . It’s valid under any dependence (union bound, A4.3-6).
- Šidák: . Exact for independent tests, and slightly less strict.
- Holm (step-down): sort the p-values, and reject while . It’s always at least as powerful as Bonferroni, also under any dependence. There’s no reason to use plain Bonferroni instead.
For independent tests with no correction, : 64% at .
- 1. Bonferroni threshold for m = 50 at α = 0.05?
- 2. FDR is the expected fraction of…
- 3. Compared with Bonferroni, Holm is…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 40 minUndergraduate students and practising engineers.Benjamini–Hochberg
Sort . Find the largest with , and reject . Under independence (or positive dependence), (Benjamini and Hochberg, 1995). It’s a step-up procedure: a large p-value can be rejected if enough smaller ones precede it.
Adaptive BH: since FDR , estimate the null fraction from the flat right part of the p-value histogram (Storey, 2002), and run BH at . That gains power when many hypotheses are real.
Hidden multiplicity
Multiplicity isn’t only “m tests in a table”. It also comes from:
- many metrics;
- many subgroups;
- many model variants or seeds;
- many time points of peeking (A4.4-7);
- many analysis choices: the “garden of forking paths” (Gelman and Loken, 2014).
Pre-register the primary metric, correct for what you test, and validate the selected winner on fresh data.
- 1. BH rejects the k smallest p-values for the largest k with…
- 2. BH's FDR guarantee is actually ≤ …
- 3. Evaluating 10 metrics and reporting the best one without correction is…
Level 3: Advanced
★★★★☆ Advanced⏱ 40 minGraduate level, with full derivations and proofs.Proof that Holm controls FWER
Let be the set of true nulls, , and let be the position in sorted order of the smallest true-null p-value.
- Position bound. At most hypotheses precede position , so .
- A false rejection needs a small p. If Holm makes any false rejection, it must reach and reject it, which requires .
- Union bound. . ∎ No independence is needed.
Why BH controls FDR (independent case)
For a null , . Conditioning on the other p-values and using uniformity of gives for each null. Summing over the nulls gives . ∎ Benjamini and Yekutieli (2001) cover arbitrary dependence, at the cost of a factor .
q-values and local FDR
The q-value of a test is the smallest FDR at which it would be rejected, the FDR analogue of a p-value. The empirical-Bayes view: p-values come from a mixture , and is the posterior probability that this particular hypothesis is null (Efron, 2010).
Exercise 3.1: Why does FWER control imply FDR control?
If is the number of false rejections, then . So . FDR is the weaker requirement, which is why it allows more power.
- 1. Holm's FWER proof needs…
- 2. Benjamini–Yekutieli's price for arbitrary dependence is about a factor of…
- 3. FDR ≤ FWER because…
Level 4: Expert
★★★★★ Expert⏱ 40 minResearchers: original papers and open problems.Screening thousands of telemetry channels
A spacecraft or a robot fleet streams thousands of channels, and each day you test each one for drift. Per-channel 5% tests flag about 100 healthy channels a day: alarm fatigue. Bonferroni misses most real drifts. BH at 5% FDR promises that about 95% of flagged channels really are drifting. On a bad day, say after a thermal event with 30% of channels affected, Storey’s adaptive BH estimates the null fraction (≈ 0.70) and recovers more true drifts while keeping the FDR at 5%. That’s the right regime for screening. For a single safety-critical alarm, keep FWER control.
Multiple testing in AI, robotics and aerospace
- Model selection on a test set. Picking the best of many variants by test score overfits the test set. Use a held-out validation set, then a fresh test (A4.3-6 winner’s curse; Recht et al., 2019, on ImageNet reuse).
- Anomaly detection at scale. Per-channel alarm thresholds must account for the number of channels and time steps. FDR control and the maximum-of-n bounds (A4.3-7) set them.
- Genomics-scale screening ideas carry over to feature screening in high-dimensional sensor data, and to “which of 500 failure signatures changed?” analyses.
- A/B testing platforms apply FDR or group-sequential corrections across many metrics and experiments.
- Scientific claims from ML benchmarks. Many datasets × many baselines × many seeds need family-wise or FDR control (Demšar, 2006).
References
- C. E. Bonferroni (1936). Teoria statistica delle classi e calcolo delle probabilità. Florence.
- S. Holm (1979). “A simple sequentially rejective multiple test procedure.” Scandinavian Journal of Statistics, 6(2).
- Y. Benjamini, Y. Hochberg (1995). “Controlling the false discovery rate: a practical and powerful approach to multiple testing.” JRSS B, 57(1).
- Y. Benjamini, D. Yekutieli (2001). “The control of the false discovery rate in multiple testing under dependency.” Annals of Statistics, 29(4).
- J. Storey (2002). “A direct approach to false discovery rates.” JRSS B, 64(3).
- Z. Šidák (1967). “Rectangular confidence regions for the means of multivariate normal distributions.” JASA, 62(318).
- B. Efron (2010). Large-Scale Inference. Cambridge University Press.
- A. Gelman, E. Loken (2014). “The statistical crisis in science.” American Scientist, 102(6).
- B. Recht, R. Roelofs, L. Schmidt, V. Shankar (2019). “Do ImageNet classifiers generalize to ImageNet?” ICML.
- J. Demšar (2006). “Statistical comparisons of classifiers over multiple data sets.” JMLR, 7.