Lesson
The theory — Multiple Comparisons
A family of tests is every hypothesis test run on one question or one data set, and its family-wise error rate is the chance that it rejects at least one true null hypothesis: 1 − (1 − α)m₀ when m₀ independent true nulls are each tested at α. Bonferroni tests each of the m hypotheses at α/m. Holm sorts the p-values and tests the i-th smallest at α/(m − i + 1), stopping at the first that fails. Both keep the family-wise rate at or below α. Benjamini–Hochberg rejects the k smallest p-values, where k is the largest i with p(i) ≤ iα/m, and holds the false discovery rate, the average share of rejections that are false, at or below (m₀/m)α for independent tests.
What each symbol means
m- the number of tests in the family
m₀- how many of them are true nulls; m − m₀ are real effects
α- the level each test is held to on its own, 5% here
p₍ᵢ₎- the i-th smallest p-value in the family
δ- the size of a real effect, in standard errors of its test statistic
- Assumes
- The tests are independent two-sided z-tests; a true null's p-value is uniform between 0 and 1; every real effect has the same size; and the family, its size and its rule are fixed before any data are seen.
Problem solved in full
-
What Bonferroni costs in sample size 3 steps
A study plans twenty comparisons and will correct them with Bonferroni. Each comparison was designed to have 80% power at 5%. How much larger must every sample be to win the 80% back? Press Five real effects in twenty first: the results table gives the effect size and its power under Bonferroni.
-
From the page: 80% power at 5% means an effect of δ = 2.802 standard errors, and at Bonferroni's 0.0025 the same effect is found only 41.23% of the time:
-
Leave out the chance of landing beyond the opposite bar, which is below 10−6 at 5% and below 10−11 at 0.0025. Then 80% power needs δ = z + 0.8416, where z is the two-sided critical value and Φ(0.8416) = 0.80. At 5% that is 1.960 + 0.842 = 2.802, and at 0.0025 it is 3.023 + 0.842 = 3.865:
-
A standard error shrinks as 1/√n, so δ grows as √n, and the sample has to grow by the square of the ratio:
Answer
About 1.90 times as many observations in every comparison, since (3.865/2.802)2 = 1.903. With 100 comparisons Bonferroni's bar is 0.0005 and the factor is 2.38. Holm and Benjamini–Hochberg need less, by an amount that depends on how many of the effects are real; the table on the page gives what each finds, and this calculation does not.
-
Learning path
What p < 0.05 does not promise
References (2)
- The step-up rule the page calls Benjamini–Hochberg (reject the k smallest, k the largest i with p(i) ≤ (i/m)q*), the definition of the false discovery rate as E(V/R) with V/R = 0 when nothing is rejected (the table note), Theorem 1 and its lemma's bound E(Q) ≤ (m0/m)q* for independent test statistics (the second insight's 3.75%), that the FDR equals the FWER when every null is true (the second insight's agreement on noise), that the gain in power is larger when more of the hypotheses are false (the third insight), screening chemicals for drug development as a use for FDR control (the second insight), and that the procedure has greater power than Holm's (1979): Y. Benjamini and Y. Hochberg, "Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing," Journal of the Royal Statistical Society, Series B (Methodological) 57 (1), 289–300 (1995).
- The first insight's comic: twenty jelly-bean colours tested against acne, green alone 'p < 0.05', and the newspaper's 'only 5% chance of coincidence': R. Munroe, "Significant," xkcd no. 882.