Definition
Multiple comparisons, also called multiple testing, is the problem that arises when one study runs many hypothesis tests §11.22 or tries many ways of analyzing its data. Even if each test alone rejects a true null hypothesis (a model of no effect) with probability at most , the probability that at least one test does so grows with the number of tests. Correction procedures control an error rate for the whole family of tests instead: the probability of any false rejection, or the expected share of false rejections among all rejections.
The idea
A benchmark compares two builds on 20 metrics and tests each at . Suppose the builds are identical in every respect. Each test still has a 5% chance of a false alarm §1.22, and if the 20 tests are independent, the chance that at least one of them rejects is . Reporting only the metric that “reached significance” then presents what is most likely a false alarm as a finding.
A lottery is a fair picture. Each ticket rarely wins, but someone holding many tickets probably wins something, and the win says nothing about skill. The defense is to count every ticket: decide in advance which comparisons form the family, and judge each result against an error budget for the whole family. The picture stops where lottery tickets are independent; tests run on the same data usually are not. Dependence changes the exact probability of a false alarm, but the union bound §15.42, used below, still caps it.
Multiplicity is often hidden. Choosing among outlier §11.31 rules, time windows, subsets of runs or summary statistics after seeing which choice gives the clearest result is a search over many analyses, even if only one test is ever run formally. Andrew Gelman and Eric Loken called this the garden of forking paths [525].
How it works
Define the family: the set of tests whose results together support one claim, or are reported together. It includes every comparison tried, not only those printed.
Separate confirmatory from exploratory comparisons. Confirmatory comparisons are written down before the outcome data are seen, ideally in a dated plan, called a preregistration §13.17. Exploratory comparisons are found by looking at the data; they suggest hypotheses for a new experiment and are labeled as exploratory.
Choose the error rate to control. The familywise error rate (FWER) is the probability of at least one false rejection in the family. The false discovery rate (FDR) is the expected fraction of false rejections among all rejections, counted as 0 when nothing is rejected. Control the FWER when a single false claim is costly; control the FDR when many candidates are screened and a few false leads are acceptable.
Apply a procedure that controls the chosen rate.
Three procedures are standard. Each works on the p-values §11.23 of tests, where a p-value is the probability, if the null hypothesis is true, of a result at least as extreme as the one observed.
Bonferroni correction: reject test if . It controls the FWER at whatever the dependence between the tests.
Holm’s procedure (Sture Holm, 1979) [475]: sort the p-values from smallest to largest, . Reject the first if , then the second if , and so on, with threshold for the -th; at the first p-value that fails, stop and reject nothing further. It also controls the FWER whatever the dependence, and it rejects everything that Bonferroni rejects, often more.
Benjamini–Hochberg procedure (Yoav Benjamini and Yosef Hochberg, 1995) [476], at a chosen FDR level : sort the p-values, find the largest with , and reject the tests with the smallest p-values. It controls the FDR at when the tests are independent, and under some forms of positive dependence between them.
Worked example
Independent tests, all null hypotheses true, each at 0.05. For two tests, the probability that neither rejects is , so at least one rejects with probability , nearly twice 0.05. For 20 tests the probability that none rejects is , so at least one false rejection occurs with probability . Multiplying the probabilities is valid only because the tests are independent.
Bonferroni, 20 tests, family budget 0.05. Each test uses the threshold . By the union bound, the probability of any false rejection in the family is at most , whatever the dependence between the tests.
Three procedures on four tests. The sorted p-values are 0.004, 0.015, 0.030 and 0.045, and the budget is 0.05.
Bonferroni: the threshold is . Only 0.004 is below it: 1 rejection.
Holm: , reject; , reject; fails, so stop: 2 rejections.
Benjamini–Hochberg at : the thresholds are 0.0125, 0.025, 0.0375 and 0.05. The largest whose p-value is at or below its threshold is , since , so all 4 are rejected.
No correction: all four p-values are below 0.05, so 4 rejections, with no guarantee for the family.
Benjamini–Hochberg and no correction reject the same tests here, but only Benjamini–Hochberg comes with a guarantee: if the tests are independent, the expected fraction of false rejections among its rejections is at most 5%.
Stated precisely
Let tests be run, and let of their null hypotheses be true. Let be the number of true null hypotheses rejected, the false rejections, and the total number of rejections. Then where denotes the expected value, the long-run average. The ratio is at most 1 and is 0 when , so : controlling the FWER also controls the FDR, but not the other way round.
The guarantee of the Bonferroni correction is the union bound. For each of the tests whose null hypothesis is true, let be the event that test rejects. Then where is the event that at least one of the occurs. The bound needs no independence. It needs two things: each test’s own Type I error probability is really at most its threshold , and the family really contains every test that was tried.
If the tests with true null hypotheses are independent and each rejects with probability exactly , then . Benjamini and Hochberg proved that their procedure gives when the tests are independent; Benjamini and Yekutieli (2001) extended the guarantee to a form of positive dependence between the tests [477].
Limits and common mistakes
A correction covers only the tests in its family. Analyses tried and dropped, unreported metrics and data-dependent choices of outlier rule or time window are tests too; leaving them out of the count voids the guarantee.
Correction costs power. With 20 tests, each needs instead of . Plan the number of units with the corrected threshold, and keep the confirmatory family small.
The FDR is an average proportion. Controlling it does not bound the probability that at least one rejection is false.
There is no single right family. Counting every test a laboratory has ever run would leave each test almost no power; defining the family after seeing the results defeats its purpose. A family is the set of tests behind one claim, written down in advance.
A correction does not repair biased data, confounding §11.10 or a wrong model inside a single test. It assumes that each test is valid on its own.
Confidence intervals §11.18 need the same care. For intervals that must all be right together, the Bonferroni version gives each interval the coverage level .
An exploratory result that is labeled as exploratory and then confirmed on new data does not need a correction for the search that found it; the new data supply the error control.
Questions answered
Which comparisons were chosen before seeing results?
The comparisons chosen before seeing results are those recorded, with their metrics, tests and analysis rules, in a plan dated before any outcome data were examined; only for them does the stated error rate hold as computed. The question matters because a comparison chosen after looking at the data has in effect been selected from many possible ones, and its p-value no longer means what the formula says. With 20 independent comparisons of two identical systems at , the chance that at least one shows a “significant” difference is about 64%.
To answer the question, point to the written plan, such as a preregistration or an analysis script fixed in advance. List the confirmatory comparisons and the error rate controlled for them as a family, for example the familywise error rate, the probability of at least one false rejection, controlled by a Bonferroni or Holm correction. Label every comparison added later as exploratory, state how many analyses were tried in total, and confirm exploratory findings on new data.
Related entries: Hypothesis test (§11.22), p-value (§11.23), Sensitivity analysis (§11.46), Statistical power (§11.25), Union bound (§15.42). Further reading: [475, 476, 477, 525].