Skip to content
Glacius
StatisticsConcept reference

Multiple comparisons

Bonferroni adds valid individual error bounds across a fixed test family.

On this page 8 sections
  1. Overview
  2. Testing many candidate effects creates many chances for a false positive
  3. A closer look
  4. The bound needs no independence assumption
  5. A closer look
  6. Key takeaway
  7. Sources & further reading
  8. Concept connections
Three false-rejection probabilities are each bounded by .02. Adding the three bounds gives an upper bound .06 on their union; equality is not assumed. Segment widths represent equal error budgets.Three false-rejection probabilities are each bounded by .02. Adding the three bounds gives an upper bound .06 on their union; equality is not assumed. Segment widths represent equal error budgets.
Figure 1Three false-rejection probabilities are each bounded by .02. Adding the three bounds gives an upper bound .06 on their union; equality is not assumed. Segment widths represent equal error budgets.
Link to this figure ↗Download SVGDownload PNG

01Testing many candidate effects creates many chances for a false positive#

Testing many candidate effects creates many chances for a false positive. Even if each test has a modest false-positive rate, searching a large collection and reporting only its most favorable result changes the meaning of the evidence.

A family is the full set of tests whose errors you want to control together. Fix it before seeing results. A false rejection rejects a true null hypothesis. Familywise error rate (FWER) is the probability of at least one such error.

Let each of three false-rejection events have probability at most 0.02. Their union means at least one error. The union bound adds the three bounds, giving at most 0.06.

FWER3(0.02)=0.06\begin{aligned}\mathrm{FWER}&\leq 3(0.02)\\&=0.06\end{aligned}

If a family contains 20 tests and the desired family-wise false-positive bound is 0.05, Bonferroni uses threshold 0.05/20=0.00250.05/20=0.0025 per test. A p-value 0.01 passes an unadjusted 0.05 cutoff but fails this family threshold. The number of tests includes the defined family, not only the results selected for reporting.

To target FWER at most α\alpha across mm tests, give each test a bound α/m\alpha/m. Adding all mm contributions gives α\alpha. This is the equal-allocation Bonferroni rule.

t=α/mt=\alpha/m
Check your reasoning

Fixed family: 4 tests. Valid p-values. Target FWER≤0.08. Equal Bonferroni cutoff?

Show answer and explanation
0.02

0.08/4=0.02 per test.

02A closer look#

With a valid p-value, rejecting when ptp\leq t gives a false-rejection probability at most tt when the null is true. Bonferroni therefore compares each p-value with α/m\alpha/m. Equality meets the cutoff. A rejection is a decision, not proof that the null is false.

Check your reasoning

Fixed 3-test family. Valid p-values: A=0.01, B=0.03, C=0.07. FWER≤0.09. “Use 0.09 each.” Repair.

  1. A0.09; reject A,B,C.
  2. B0.03; reject A.
  3. C0.03; reject A,B.
Show answer and explanation
0.03; reject A,B.

0.09/3=0.03.

03The bound needs no independence assumption#

The bound needs no independence assumption. If individual valid bounds differ, add them. For bounds 0.02 and 0.03, FWER is at most 0.05. Cap sums above 1 at 1. A bound need not equal the actual error probability.

Check your reasoning

Fixed family; any dependence. False-rejection bounds: 0.02, 0.01, 0.04. Capped FWER bound?

  1. AAt most 0.04.
  2. BAt most 0.07.
  3. CExactly 1.
Show answer and explanation
At most 0.07.

0.02+0.01+0.04=0.07.

04A closer look#

Feature screening, repeated model comparisons, and many subgroup analyses can create multiplicity. Define the family and correction method before interpreting the strongest result. Different methods control different error quantities, so do not treat every adjusted threshold as answering the same question.

Key takeaway

Count the complete family, use alpha divided by its size, and interpret the sum as an upper bound rather than an exact error probability.

  • Allocate the family error budget across every stated test.

Sources & further reading

  1. [1]

Reference this concept

Link to this page, a section, or an individual figure.

Glacius. “Multiple comparisons.” Math behind ML. /learn/s-multiple-tests