Multiple comparisons: what happens when you run many tests
Measure twenty outcomes for one drug, or scan thousands of genes at once, and a few "significant" results always show up. Here you will run the tests yourself to see how many of them are just luck, and how to fix the threshold. All data on this page is made up, and the page only explains statistical ideas.
Short answer. Even if one test has only a 5% chance of a false alarm (calling something "significant" when there is no effect), run 20 tests and one of them will probably come out "significant" by luck. So when you run many tests, you make the threshold stricter. Bonferroni controls "no false alarms at all" (the family-wise error rate, FWER). Benjamini-Hochberg controls "the share of false alarms among what you call discoveries" (the false discovery rate, FDR).
Each square is one test. Each test compares a made-up drug that does nothing with a fake pill, 20 people per group. So every orange square (p < 0.05) is a false discovery. "Run experiment" runs the same experiment again with new people. In the lower picture, the green curve is the formula 1 − 0.95^m, and the blue squares show how often "at least one significant" happened when the same experiment was repeated 2,000 times. The scale across goes 1, 2, 5, 10, so each step multiplies. The random numbers come from a fixed seed: for the same m, pressing in the same order gives the same results.
Try this. ① At the start (m = 20), 2 of the 20 tests with no effect have p < 0.05 (p = 0.00964, 0.04). ② Press "Run experiment" four more times and you get 0, 1 (p = 0.00607), 0 and 2. In three of the five experiments (60.0%), at least one test was significant. The formula says 64.2%, and the simulation with 2,000 repeats says 63.9%. ③ Set m to 1: the formula gives 5.0% and the simulation 5.3%. At 14 the formula passes half, 51.2% (simulation 50.3%). ④ Set m to 100: the first experiment colors 4 squares. On average it is 100 × 0.05 = 5, and the chance of at least one significant result is 99.4%.
Definitions
Suppose m null hypotheses are tested together. Write for the p-value of test i, and for the p-values sorted from the smallest. Write R for the number of discoveries (null hypotheses rejected) and V for how many of them had a true null hypothesis (false discoveries, type I errors).
- family-wise error rate (FWER)
- The chance of at least one false discovery in a family, the set of tests done together to answer one question. If every null hypothesis is true, the tests are independent, and each uses significance level α, it is .
- false discovery rate (FDR)
- The expected share of false discoveries among the discoveries. When there are no discoveries (R = 0), the share counts as 0.
- Bonferroni correction
- Lower the significance level of every test to α ÷ m. The chance of a union of events is never more than the sum of their chances ( is the event that test i makes a type I error), so FWER ≤ α however the tests depend on each other. The adjusted p-value is .
- Holm's method
- Check the inequality below for i = 1, 2, … in order, and stop at the first rank where it fails. Reject only the ranks before it. FWER ≤ α however the tests depend on each other, and it always rejects everything Bonferroni rejects.
- Benjamini-Hochberg procedure
- With q the level at which to hold the FDR, find k below and reject ranks 1 to k (if there is no such i, reject nothing). If the tests are independent, the FDR is , which is no more than q ( is the number of true null hypotheses).
1. Why it is a problem: more chances for a false alarm
A hypothesis test measures, as a p-value, "if there were no effect, how likely is data at least this extreme?", and calls the result "significant" when the p-value is below a threshold α (usually 0.05). Getting "significant" when there is no effect is what this page calls a false alarm or false discovery. Textbooks call it a type I error (Type I and II errors and power). With a threshold of 0.05, one test with no effect raises a false alarm with chance 0.05.
The trouble starts with many tests. Run m independent tests with no effect, and the chance that none of them raises a false alarm is 0.95 multiplied m times. Everything else is "at least one false alarm".
| Tests m | Chance of none: 0.95^m | Chance of at least one significant | Average false discoveries m × 0.05 |
|---|---|---|---|
| 1 | 0.95 | 5.0% | 0.05 |
| 5 | 0.7738 | 22.6% | 0.25 |
| 10 | 0.5987 | 40.1% | 0.5 |
| 20 | 0.3585 | 64.2% | 1 |
| 50 | 0.0769 | 92.3% | 2.5 |
| 100 | 0.0059 | 99.4% | 5 |
With 20 tests you get one false discovery on average. That is what "one in 20" means. The group of tests you run to answer one question is called a family, and the chance of at least one false discovery in that family is the family-wise error rate (FWER). The third column above is the FWER with no correction.
This formula assumes the tests are independent. When tests are linked, like similar outcomes measured on the same people, the value changes. But "at most m × α" is always true, linked or not. The next section shows this as a picture.
A common wrong reading. "One of 20 outcomes had p = 0.04, so the effect is real with 96% probability." A p-value is "the chance of data this extreme if there were no effect", not "the chance the effect is real". On top of that, even with no effect at all, about one in 20 tests gives p < 0.05. If only the significant one is reported and the other nineteen are left out, readers have no way to know.
2. How the formula is built: the Bonferroni threshold α ÷ m
To keep the family-wise error rate under α (0.05), how low must the threshold for each test be? The answer is α ÷ m. Press "Next" to see where it comes from, one step at a time.
In the formula, the piece with the orange background is the one added in this step. The grid on the left shows two tests, the chart on the right shows m tests. From the third step on, the grid fades.
Written only as formulas, the steps above look like this. is the event that test i makes a type I error.
- One test:
P(false alarm) = α. A test with no effect says "significant" with chance α = 0.05. That is 20 of the 400 squares. - Two tests:
P(at least one of two) ≤ α + α. "At least one false alarm" is any square in the green row or the blue column. Adding the two gives 20 + 20 = 40 squares, but the square where they cross was counted twice. The real count is 39, and 39 ÷ 400 = 0.0975. Adding without taking off the overlap gives a number at least as big as the real one, so we write "at most" (≤). - m tests:
P(at least one of m) ≤ m × α. Three or four tests work the same way. Add them all up without taking off any overlap, and you get at most m × α. This holds even when the tests are linked, because we only added and never needed to know the size of the overlaps. - Give each test α ÷ m:
m × (α ÷ m) = α. To hold the total at α, do not give each test all of α. Split it into m pieces. Then the right side of the inequality is exactly α. - Done:
threshold for each test = α ÷ m. With m = 20 that is 0.05 ÷ 20 = 0.0025. Only tests with p ≤ 0.0025 count as "significant".
Here is how close the rough bound m × α is to the exact value, in numbers (for independent tests).
| m | Exact 1 − (1 − α)^m | Rough bound m × α | With α ÷ m per test: 1 − (1 − α ÷ m)^m |
|---|---|---|---|
| 2 | 0.0975 | 0.1 | 0.0494 |
| 5 | 0.2262 | 0.25 | 0.0490 |
| 10 | 0.4013 | 0.5 | 0.0489 |
| 20 | 0.6415 | 1 | 0.0488 |
The larger m is, the looser the bound gets. At m = 20 the bound of 1 tells you nothing, but it is never smaller than the exact value. That is why giving each test α ÷ m keeps the family-wise error rate under 0.05, as the last column shows. It even leaves a little unused (0.0488). If you know the tests are independent, you can use the exact threshold 1 − (1 − α)^(1 ÷ m) (Šidák), but at m = 20 that is 0.00256 against 0.0025, so Bonferroni is used more often.
Try this. ① Press "Next" once: the blue column appears, and the orange square where the two lines cross is counted twice. On the right, the bound 0.1 and the exact 0.0975 for m = 2 appear. ② Press again to see the gap (orange fill) between the bound 1 and the exact 0.6415 at m = 20. ③ Go to the end: the two lines lie flat near 0.05, and with the threshold 0.0025 at m = 20 the chance of at least one false alarm is 0.0488.
3. Two goals: the family-wise error rate and the false discovery rate
After m tests, each test lands in one of four boxes. In real life you do not know which tests have a real effect, but with made-up data you do.
| Called a discovery (significant) | Left alone (not significant) | |
|---|---|---|
| Real effect | True discovery | Missed (type II error) |
| No effect | False discovery (type I error) | Correctly left alone |
Call the number of false discoveries V and the number of discoveries R. The two goals differ like this.
- Family-wise error rate (FWER) = P(V ≥ 1). The chance of at least one false discovery. The promise is "not a single wrong item on the list". Bonferroni and Holm hold this at α.
- False discovery rate (FDR) = the average of V ÷ R (counting 0 when R = 0). The share of false discoveries among what you call discoveries, averaged as if the same study were run many times. The promise is "a few wrong items are fine, but no more than 5% on average". Benjamini-Hochberg holds this at q.
For example, a list of 20 discoveries with 1 false one has a false discovery share of 5%. Through FWER eyes that is "a false discovery, so it failed". Through FDR eyes it is "5% is fine". When no test has a real effect, the two are the same, because any false discovery makes that list 100% false.
| Family-wise error rate (FWER) | False discovery rate (FDR) | |
|---|---|---|
| Asks | Chance of even one wrong discovery | Share of wrong ones among discoveries (on average) |
| Strictness | Strict. The more tests, the lower the threshold goes | Less strict. With many real effects the threshold drops less |
| Fits | Confirming studies where one wrong claim has big consequences. Several main outcomes in a clinical trial | Exploring, where you find many and check them again in the next experiment. Scanning thousands of genes |
| Main methods | Bonferroni, Holm | Benjamini-Hochberg (BH) |
Common wrong readings.
- "We found them with FDR 5%, so each one has a 5% chance of being wrong." The FDR is about the whole list, and it is an average over many runs. The real false share in the one list you got can be above or below 5%. In the experiment below, compare "this time" with the repeated average.
- "We held the FWER at 5%, so 5% of the discoveries are false." The FWER is not a share. It is "the chance of at least one".
- "It is not significant after correction, so there is no effect." Correction makes the threshold stricter, so real effects are easier to miss too. All it says is "this data did not show it" (section 8).
4. Three methods: Bonferroni, Holm, Benjamini-Hochberg
All three are easiest to think about with the p-values sorted from smallest to largest and ranked. The smallest p is rank 1: p₍₁₎ ≤ p₍₂₎ ≤ … ≤ p₍ₘ₎. Here α and q are both 0.05.
- Bonferroni. The same threshold
α ÷ mfor every test. If p ≤ α ÷ m, it is a discovery. The same thing from the p-value side: compare the adjusted p = min(1, m × p) with α. - Holm. Starting at rank 1, check whether
p₍ᵢ₎ ≤ α ÷ (m − i + 1). If yes, call it a discovery and move to the next rank. Stop at the first no, and leave everything after it alone. Rank 1 gets the same threshold as Bonferroni, α ÷ m, and each discovery loosens it a bit: α ÷ (m − 1), α ÷ (m − 2), and so on. Put simply, once the earlier ones are called discoveries, there are fewer tests left to worry about, so each gets a bigger share (the proof is in Holm's paper). The FWER ≤ α holds no matter how the tests are linked. - Benjamini-Hochberg (BH). The threshold for rank i is
(i ÷ m) × q, a sloped line that climbs with the rank. Find the largest rank k withp₍ᵢ₎ ≤ (i ÷ m) × q, and call ranks 1 to k all discoveries. Where Holm starts at the front and stops, BH searches from the back. So a p-value above its own threshold can still be a discovery, thanks to a later rank. For independent tests the FDR comes out as (share of tests with no effect) × q, so it never goes over q. Later work extended this to tests that move together in the same direction, and a stricter version (Benjamini-Yekutieli) works however the tests are linked.
| Method | Controls | Threshold for rank i | If tests are linked | Finding power |
|---|---|---|---|---|
| No correction | α for each single test | α | Does not matter | Largest (and the most false discoveries) |
| Bonferroni | FWER | α ÷ m | Still holds | Smallest |
| Holm | FWER | α ÷ (m − i + 1), stop at the first rank that fails | Still holds | Always finds everything Bonferroni finds |
| BH | FDR | (i ÷ m) × q, up to the largest rank under its threshold | Proven for independent tests and tests that move together | With q = α, always finds everything Holm finds |
With the same α = q, the lists of discoveries always grow in the order Bonferroni ⊆ Holm ⊆ BH ⊆ no correction. Holm's threshold for rank i, α ÷ (m − i + 1), is never larger than BH's (i ÷ m) × α (comparing the two comes down to (i − 1)(m − i) ≥ 0).
| Method | True discoveries | False discoveries | Missed | Correctly left alone | False discovery share | Power |
|---|
| Method | Average false discovery share (FDR) | Share with at least one false discovery (FWER) | Average power |
|---|
This is a scaled-down model. Each test compares the averages of a made-up drug group and a fake pill group, 20 people each, and the "share with a real effect" decides how many of the 50 tests (counted from the front) get an effect. The effect size d is the difference between the two group averages divided by the standard deviation (1 means they differ by one standard deviation). Instead of drawing a value for each person, it assumes the standard deviation is known and draws the test statistic z directly, which gives the same results. Real studies often use a t-test, but the multiple comparisons picture is the same. The scale going up is a log scale where each line is 10 times smaller, so even tiny p-values show. That is also why BH's straight threshold (i ÷ m) × q looks curved. For no correction and Bonferroni, the dots under the line are the discoveries. Holm reads from the left and stops at the first dot above its line. BH takes everything up to the rightmost dot under its line.
Try this. ① At the start (20% real = 10 tests, d = 1), no correction finds 11. It found all 10 real ones, but 1 false discovery is mixed in. ② Bonferroni finds 4 and Holm finds 5. No false discoveries, but they miss 6 and 5 real ones. ③ BH finds 10: 9 real and 1 false. This time the false discovery share is 10.0%, above q = 5%, but the average over 2,000 repeats (the FDR) is 4.0%. That equals the share of tests with no effect, 80%, times 5%. ④ In the repeat table, the FWER of Bonferroni and Holm is 4.2% and 4.5%, under 5%, with power 44.8% and 45.9%. BH has a high FWER of 27.3% but power of 68.0%. No correction has FWER 87.7% and FDR 17.3%. ⑤ Set the real share to 0: with no real effects, the FDR and the FWER become the same (92.5% for no correction, 5.1% for the other three). ⑥ From the start, raise only the effect size to 1.5: all four methods find all 10 real ones. Large effects pass even strict thresholds.
5. Work it out by hand: five p-values
Say a group taking a made-up drug was compared with a group taking a fake pill, on five outcomes. The p-values came out as below (made-up numbers). For which of the five can we say there is an effect? m = 5, α = q = 0.05.
| Rank i | Outcome | p | Bonferroni threshold 0.05 ÷ 5 | Holm threshold 0.05 ÷ (5 − i + 1) | BH threshold (i ÷ 5) × 0.05 |
|---|---|---|---|---|---|
| 1 | Blood pressure | 0.004 | 0.01: found | 0.01: found | 0.01: under |
| 2 | Cholesterol | 0.011 | 0.01: left alone | 0.0125: found | 0.02: under |
| 3 | Body weight | 0.02 | 0.01: left alone | 0.0167: over, stop | 0.03: under |
| 4 | Hours of sleep | 0.045 | 0.01: left alone | (not checked) | 0.04: over |
| 5 | Headaches | 0.3 | 0.01: left alone | (not checked) | 0.05: over |
- No correction. Below 0.05 are 0.004, 0.011, 0.02 and 0.045: 4.
- Bonferroni. Threshold 0.05 ÷ 5 = 0.01. Only 0.004 is under it: 1. 0.011 just misses.
- Holm. Rank 1: 0.004 ≤ 0.05 ÷ 5 = 0.01, found. Rank 2: 0.011 ≤ 0.05 ÷ 4 = 0.0125, found. Rank 3: 0.02 > 0.05 ÷ 3 ≈ 0.0167, stop. 2. It found the 0.011 that Bonferroni left alone.
- BH. The thresholds are 0.01, 0.02, 0.03, 0.04, 0.05. Ranks 1, 2 and 3 have p ≤ threshold, and the largest is k = 3 (rank 4: 0.045 > 0.04). Ranks 1 to 3, so 3 discoveries.
The same working, written as formulas:
You can reach the same answer with adjusted p-values: an adjusted p of 0.05 or less is a discovery.
| p | Bonferroni: 5 × p (cap at 1) | Holm: (5 − i + 1) × p, running maximum from the front | BH: 5 × p ÷ i, running minimum from the back |
|---|---|---|---|
| 0.004 | 0.02 | 5 × 0.004 = 0.02 | 5 × 0.004 ÷ 1 = 0.02 |
| 0.011 | 0.055 | 4 × 0.011 = 0.044 | 5 × 0.011 ÷ 2 = 0.0275 |
| 0.02 | 0.1 | 3 × 0.02 = 0.06 | 5 × 0.02 ÷ 3 ≈ 0.0333 |
| 0.045 | 0.225 | 2 × 0.045 = 0.09 | 5 × 0.045 ÷ 4 = 0.05625 |
| 0.3 | 1 (1.5) | 1 × 0.3 = 0.3 | 5 × 0.3 ÷ 5 = 0.3 |
In this example the values are already in order, so the running maximum and minimum change nothing. With data where the order flips, the running step makes sure a later rank never gets a smaller adjusted p. The bold ones are 0.05 or less: 1 for Bonferroni, 2 for Holm, 3 for BH, the same as above. In Python, statsmodels does the same calculation.
from statsmodels.stats.multitest import multipletests
p = [0.004, 0.011, 0.02, 0.045, 0.3]
for method in ["bonferroni", "holm", "fdr_bh"]:
reject, adjusted, _, _ = multipletests(p, alpha=0.05, method=method)
print(method, reject.sum(), adjusted)
# discoveries: bonferroni 1, holm 2, fdr_bh 3. adjusted holds the adjusted p-values in the table above
6. The BH procedure, one step at a time
The confusing part of BH is that it does not just take "the dots under the line". It takes "everything up to the last dot under the line". Follow the procedure line by line with p-values from a made-up cell culture experiment that tested 10 candidate compounds. You can edit the p-values.
| Rank i | p | Threshold (i ÷ m) × q | p ≤ threshold? | Result |
|---|
Write 2 to 20 p-values separated by commas. They take effect when you leave the box. Only numbers between 0 and 1 are accepted. q stays at 0.05. In the table, the orange underline marks rank k and the green background marks discoveries.
Try this. ① With the first 10 values, press "Next" four times: step ④ shows k = 4 (p = 0.018 ≤ 0.02). ② Press once more: ranks 1 to 4 are discoveries. But rank 3, 0.016, is above its own threshold of 0.015. It is found anyway because rank 4, after it, is under its threshold. With the same values, Bonferroni (threshold 0.005) and Holm find only 1, and no correction finds 5 (up to 0.041). ③ In the box, change 0.018 to 0.021: rank 4 goes over its threshold, k becomes 2, and the discoveries drop from 4 to 2. One value near the line changes the result a lot. ④ Press "The 5 from section 5" to see the calculation from section 5. k = 3.
7. Hidden multiple comparisons
People often run many tests without noticing. All of the cases below are the same problem. Because they amount to "trying other paths until something is significant", this is also called p-hacking.
- Many outcomes. Measure blood pressure, cholesterol, body weight, hours of sleep and headaches, and say "it works if any one is significant". Even with no effect at all, the chance of saying so is 1 − 0.95^5 = 22.6% (if the outcomes are independent).
- Splitting into subgroups. When there is no difference overall, split by sex, age group and region into 10 subgroups and test each one. The chance that one of them is significant is 40.1%. "It only worked for women in their fifties" comes out this way easily.
- Choosing the analysis. Deciding whether to drop outliers, which test to use, or what to adjust for while looking at the results is the same as running the test several times.
- Peeking while collecting data and stopping. Collect people a few at a time, test each time, and stop once it is significant. The experiment below shows this.
This runs a made-up experiment 2,000 times in which the drug and the fake pill are exactly alike. At each look, 10 more people are added to each group, and the test uses all the data collected so far. When z goes outside the orange dashed lines (±1.96), p < 0.05. The rule is "stop as soon as it is significant", so the orange line ends there. Only the first 40 experiments are drawn.
Try this. ① At the start (10 looks), 20.0% of the 2,000 runs end with "it works". Testing the same data once at the end gives 5.5%. Of the 40 lines drawn, 8 stopped. ② Set the number of looks to 1 for 5.1%, 2 for 8.8%, 3 for 11.6%, 5 for 14.9% and 20 for 25.8%. Every look is one more chance to cross the edge by luck. But the looks share most of their data, so they are linked, and the rate does not climb as high as 20 independent tests would (64.2%).
That does not mean you must never look early. Clinical trials often run interim analyses for safety. In that case, the number and timing of looks are fixed in advance, and the threshold is split strictly across the looks so the overall false alarm rate stays at α (boundaries such as Pocock or O'Brien-Fleming). See Clinical trial design for more.
8. When to correct, and with what
One main outcome chosen in advance needs no correction
If, before the experiment starts, you choose one main outcome (the primary endpoint), such as "does this drug lower blood pressure after 8 weeks", and you claim an effect only from that, you have one test. There is nothing to correct. To make that promise believable, you publish the main outcome and the analysis plan before starting. This is preregistration. Anyone can then check whether the main outcome was changed after the results came in. The other outcomes (secondary outcomes) are either corrected or reported as "exploratory" and checked again in a later study.
Confirming: FWER. Exploring: FDR
- Confirming studies. Where one wrong claim has big consequences, such as several main outcomes in a clinical trial, or several doses compared with a control group, control the FWER (Bonferroni, Holm). Another approach orders the hypotheses by importance and tests the next one only if the one before it was significant.
- Scanning studies. When you search thousands of genes for ones linked to a disease, or scan hundreds of proteins, the FWER is so strict that you find almost nothing. Control the FDR instead (BH), then check the list again in the next experiment.
- The 5×10⁻⁸ of genome-wide studies. Studies that scan common variants across the whole human genome treat it as about a million independent tests and, like Bonferroni, use 0.05 ÷ 1,000,000 = 5×10⁻⁸ as the threshold.
The price of correcting: less power
A lower threshold means fewer false alarms but more missed real effects. Power (the chance of finding a real effect) goes down. With the starting settings of the section 4 experiment (d = 1, 20 people per group), one test at 0.05 has power of about 89%. Correct 50 tests with Bonferroni, and the threshold becomes 0.05 ÷ 50 = 0.001, which cuts power to about 45%, half as much (88.5% and 44.8% in the repeat table). To keep the same 89%, you need 41 people per group instead of 20. If you plan several tests, use the corrected threshold from the start when you work out the sample size. Running fewer tests, meaning one main outcome, is the cheapest fix.
Post hoc comparisons after ANOVA
Comparing the averages of three or more groups with analysis of variance only tells you "something differs". Testing each pair to see which one is multiple comparisons again. With 4 groups there are 4 × 3 ÷ 2 = 6 pairs. There are methods made for this.
- Tukey (Tukey HSD). For comparing every pair. If you only compare pairs, it is less strict than Bonferroni.
- Dunnett. For comparing several groups with one control group only (three doses against a fake pill).
- Scheffé. For mixed comparisons chosen after looking at the data, such as "the average of two doses against the fake pill", not just pairs. For pairs alone it is stricter than Tukey.
Bonferroni and Holm can be used here too.
9. Key properties
| Property | In plain words |
|---|---|
| More tests, more chances for a false alarm | For m independent tests, 1 − (1 − α)^m. However they are linked, at most m × α |
| Bonferroni ⊆ Holm ⊆ BH ⊆ no correction | With the same α = q, the list of discoveries always grows in this order. So does the chance of a false one slipping in |
| With m = 1 they are all the same | With one test, Bonferroni, Holm and BH are all just "p ≤ α" |
| Correcting lowers power | A strict threshold misses real effects along with false alarms. You need more people to make up for it |
| Decide the "family" in advance | The correction depends on m. Changing which tests count after seeing the results is also a kind of choosing |
Where it is used
- Clinical trials. When there are several main outcomes, when several doses or groups are compared with a control, and for interim analyses.
- Genomics and gene expression. Thousands to millions of genes or variants are tested at once. Exploration uses the FDR, and the final call in genome-wide studies uses strict thresholds such as 5×10⁻⁸.
- Brain imaging. The brain is split into tens of thousands of small boxes with a test in each, so results are corrected with the FWER or the FDR.
- A/B tests on web services. Watching many metrics, running many variants at once, or checking results every day and stopping once it is significant all cause the same problem. Fix one main metric and the test length in advance.
- Choosing a machine learning model. Try many models or settings and pick the best on the same test data, and that score leans toward lucky results. That is why you measure again on data that was not used for choosing (overfitting).
Frequently asked questions
What is the multiple comparisons problem?
When you run many tests, the chance that at least one comes out "significant" by luck grows, even if nothing has an effect. One test has a 5% chance of a false alarm, but with 20 independent tests the chance of at least one significant result is about 64%.
How do you do a Bonferroni correction?
Lower the threshold to α ÷ m. With 20 tests and α = 0.05, only results with p ≤ 0.0025 count as significant. The same thing from the p-value side: multiply each p-value by m (cap it at 1) and compare it with 0.05.
What is the difference between FWER and FDR?
The FWER (family-wise error rate) is the chance of at least one false discovery. The FDR (false discovery rate) is the average share of false discoveries among everything you call a discovery. Use the FWER for confirming studies where not a single claim may be wrong, and the FDR for exploring, where you find many candidates and check them again later.
Do I always have to correct when I run more than one test?
No. If you test one main outcome that you chose in advance, that is one test, so there is nothing to correct. Correct when you pick comparisons after seeing the data, or when you plan to say "it works" if any one of several outcomes is significant.
Is Holm always better than Bonferroni?
It keeps the same promise (FWER at most α), always finds everything Bonferroni finds, and sometimes finds more. So wherever you would use Bonferroni, you lose nothing by using Holm. It just takes a little more explaining, because each rank gets a different threshold.
Words
| Plain words used here | Textbook term |
|---|---|
| Running many tests | Multiple comparisons, multiple testing |
| False alarm, false discovery | Type I error, false positive |
| Missed | Type II error, false negative |
| The threshold α | Significance level |
| The group of tests run together | Family of tests |
| Chance of at least one false discovery | Family-wise error rate (FWER) |
| Average share of false discoveries | False discovery rate (FDR) |
| False share in the one list you got | False discovery proportion (FDP) |
| p recalculated for the stricter threshold | Adjusted p-value |
| At most m × α | Union bound, Boole's inequality |
| Bonferroni / Holm / BH | Bonferroni correction / Holm's step-down procedure / Benjamini-Hochberg procedure |
| Start at the front and stop / search from the back | Step-down / step-up |
| Chance of finding a real effect | Power |
| Effect size d | Cohen's d, standardized mean difference |
| Main outcome chosen in advance | Primary endpoint, primary outcome |
| Publishing the plan in advance | Preregistration |
| Trying other paths until something is significant | p-hacking |
| Looking early | Interim analysis, peeking |
| Pair comparisons after ANOVA | Post hoc comparisons |
| Confirming study / scanning study | Confirmatory / exploratory study |
Sources
- Yoav Benjamini, Yosef Hochberg, Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing, Journal of the Royal Statistical Society, Series B (1995). The definition of the FDR and the BH procedure.
- Sture Holm, A Simple Sequentially Rejective Multiple Test Procedure, Scandinavian Journal of Statistics (1979). Holm's method.
- NIST/SEMATECH e-Handbook of Statistical Methods, 7.4.7 How can we make multiple comparisons? Tukey, Scheffé, Bonferroni.
- statsmodels documentation: multipletests.
- Abramowitz, Stegun, Handbook of Mathematical Functions, formula 7.1.26 (the error function approximation used for the p-values in the experiments). The definition of erf is in NIST DLMF §7.2.