False Discovery Rate
FDR & the BH Procedure
Learn how to control the expected proportion of false positives among all rejected hypotheses, and master the Benjamini-Hochberg procedure for multiple testing.
The Multiple Testing Problem
When you test many hypotheses at once, each at significance level \(\alpha = 0.05\), the chance of at least one false positive grows rapidly. With \(m\) independent tests:
Genomics, neuroimaging, and A/B testing routinely involve thousands of simultaneous tests. We need principled methods to handle the flood of false positives.
What Is the False Discovery Rate?
Suppose you reject \(R\) hypotheses. Among those \(R\) rejections, some are true positives and some are false positives (false discoveries). The FDR is:
FDR controls the expected proportion of mistakes among your discoveries, not the probability of any single mistake.
Anatomy of Multiple Testing Outcomes
| Not Rejected | Rejected | Total | |
|---|---|---|---|
| Truly Null (\(H_0\) true) | \(U\) | \(V\) (false discoveries) | \(m_0\) |
| Truly Alternative (\(H_1\) true) | \(T\) (missed) | \(S\) (true discoveries) | \(m_1\) |
| Total | \(m - R\) | \(R = V + S\) | \(m\) |
Visualizing p-values Under Multiple Testing
FDR vs FWER: Key Distinction
| FDR | FWER | |
|---|---|---|
| Controls | Expected proportion of false discoveries | Probability of any false discovery |
| Formula | \(E[V/R]\) | \(P(V \ge 1)\) |
| Strictness | Less conservative | More conservative |
| Power | Higher (more discoveries) | Lower (fewer discoveries) |
| Typical Method | Benjamini-Hochberg | Bonferroni / Holm |
| Best When | Many tests, tolerating some errors | Few tests, strict error control |
The Benjamini-Hochberg Procedure
Given \(m\) hypothesis tests with p-values \(p_1, p_2, \ldots, p_m\) and a target FDR level \(q\):
The BH Guarantee
Since \(m_0 \le m\), the ratio \(\frac{m_0}{m} \le 1\), so the BH procedure is actually slightly conservative: the true FDR is at most \(q\), and often less.
BH Step-Up Visualized
Worked Example: Gene Expression
A biologist tests \(m = 10\) genes for differential expression and obtains these p-values (already sorted):
| Rank \(k\) | \(p_{(k)}\) | BH threshold \(\frac{k}{10} \cdot 0.05\) | Reject? |
|---|---|---|---|
| 1 | 0.001 | 0.005 | ✓ |
| 2 | 0.004 | 0.010 | ✓ |
| 3 | 0.008 | 0.015 | ✓ |
| 4 | 0.015 | 0.020 | ✓ |
| 5 | 0.022 | 0.025 | ✓ |
| 6 | 0.060 | 0.030 | ✕ |
| 7 | 0.090 | 0.035 | ✕ |
BH vs Bonferroni: Same Data
Using the same 10 p-values, Bonferroni rejects when \(p_{(k)} \le \frac{\alpha}{m} = \frac{0.05}{10} = 0.005\):
Scaling Up: \(m = 1000\) Tests
A genomics study tests \(m = 1000\) genes at \(q = 0.10\). After sorting all 1000 p-values, the researcher finds:
Adjusted p-values (q-values)
Software often reports BH-adjusted p-values (sometimes called q-values). These let you reject whenever the adjusted p-value \(\le q\):
Reject all hypotheses where \(\tilde{p}_{(k)} \le q\). This is equivalent to the step-up procedure but gives a per-hypothesis "significance level."
When to Use FDR Control
Common Mistakes
Summary of Methods
| Method | Controls | Threshold | Dependence |
|---|---|---|---|
| Bonferroni | FWER | \(\alpha / m\) | Any |
| Holm | FWER | \(\alpha / (m - k + 1)\) | Any |
| BH | FDR | \(k \cdot q / m\) | Indep. / PRDS |
| BY | FDR | \(k \cdot q / (m \cdot c_m)\) | Any |
Question 1 of 5
The false discovery rate (FDR) is defined as:
Question 2 of 5
In the BH procedure with \(m = 20\) tests and \(q = 0.05\), what is the BH threshold for the hypothesis ranked 4th?
Question 3 of 5
You run BH at \(q = 0.05\) on \(m = 100\) tests and reject 20 hypotheses. Which of the following is the best interpretation?
Question 4 of 5
When applying the BH procedure, a student rejects hypotheses at ranks 1, 2, and 3 because their p-values are below the BH line, but does not reject rank 4 even though \(p_{(4)}\) is also below the BH line, because \(p_{(5)}\) is above it. What error did the student make?
Question 5 of 5
Which statement about the relationship between FDR and FWER is always true?