01 / 20

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.

AP Statistics 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

\(0\)
\(0.2\)
\(0.4\)
\(0.6\)
\(0.8\)
\(1.0\)
\(p\)-value
Frequency
Signal Null (uniform) BH threshold

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\):

1
Sort the p-values in ascending order: \(p_{(1)} \le p_{(2)} \le \cdots \le p_{(m)}\).
2
Compute thresholds: for each rank \(k\), calculate \(\frac{k}{m} \cdot q\).
3
Find the cutoff: let \(k^*\) be the largest \(k\) such that \(p_{(k)} \le \frac{k}{m} \cdot q\).
4
Reject all hypotheses with \(p_{(k)} \le p_{(k^*)}\): i.e., reject ranks \(1, 2, \ldots, k^*\).

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

\(0\)
\(0.04\)
\(0.08\)
\(0.12\)
\(0.16\)
\(p\)-value
Rank (\(k\))
BH line
\(1\)
\(2\)
\(3\)
\(4\)
\(5\)
\(6\)
\(7\)
\(8\)
\(9\)
\(10\)
Rejected Not rejected

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?
10.0010.005✓
20.0040.010✓
30.0080.015✓
40.0150.020✓
50.0220.025✓
60.0600.030✕
70.0900.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\):

BH Procedure
Rejects 5 hypotheses (ranks 1-5). More discoveries, FDR \(\le 0.05\).
Bonferroni
Rejects only 2 hypotheses (ranks 1-2 with \(p \le 0.005\)). Fewer discoveries, FWER \(\le 0.05\).

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:

1
The BH threshold for rank \(k\) is \(\frac{k}{1000} \times 0.10\). At rank 47: threshold \(= 0.0047\).
2
\(p_{(47)} = 0.0044 \le 0.0047\) ✓, but \(p_{(48)} = 0.0052 > 0.0048\) ✕.
3
So \(k^* = 47\): we reject 47 genes. We expect that, on average, at most 10% of these discoveries (about 4.7) are false.

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

Use FDR when:
You have many tests and want maximum power while tolerating a small proportion of false discoveries. Genomics, fMRI, A/B testing.
Use FWER when:
Each false positive is costly and you must avoid any false claim. Clinical trials, regulatory submissions, confirmatory studies.

Common Mistakes

✕ Confusing FDR with FWER
FDR controls the proportion of false rejections, not the probability of making any false rejection. They are conceptually different quantities.
✕ Using the wrong \(k^*\)
BH is a "step-up" procedure. You must find the largest rank \(k\) that satisfies the inequality. Stopping at the first p-value that fails the test is incorrect and a common misunderstanding of the procedure.
✕ Ignoring dependence
BH assumes independence or PRDS. Under strong negative correlations, the FDR may exceed \(q\). Use Benjamini-Yekutieli for arbitrary dependence.

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?