All labs

Testing Many Things at Once

Run 200 tests where nothing is real and still publish a finding — then watch Bonferroni and Benjamini–Hochberg trade power for error control.

Ch 2 2.9
Simulator
Foundations & Data Quality
18 mindifficulty 3/5

Controls

200
10

The rest are exactly null.

3

Mean of the z-statistic under the alternative.

0.050
Multiplicity procedure
200

Long-run error rates are averaged over this many independent studies.

Random seed

Every result on this page is a deterministic function of the seed and the controls.

One study, sorted p-values

Bonferroni is a flat line; Benjamini–Hochberg is a ramp — the largest crossing wins.

00.050.100.150.20050100150200rank of p-valuep-value
true discoveryfalse discoveryα (uncorrected)α/m (Bonferroni)αk/m (BH ramp)

Null p-values are uniform

Only the truly null tests, this study.

00.5011.50200.200.400.600.801[0, 0.05) n=12[0.05, 0.10) n=5[0.10, 0.15) n=11[0.15, 0.20) n=15[0.20, 0.25) n=16[0.25, 0.30) n=7[0.30, 0.35) n=16[0.35, 0.40) n=8[0.40, 0.45) n=14[0.45, 0.50) n=11[0.50, 0.55) n=6[0.55, 0.60) n=9[0.60, 0.65) n=7[0.65, 0.70) n=12[0.70, 0.75) n=8[0.75, 0.80) n=4[0.80, 0.85) n=4[0.85, 0.90) n=8[0.90, 0.95) n=10[0.95, 1) n=7uniformp-valuedensity

False discoveries per study

Across 200 replicate studies under No correction.

0102030405060051015[0, 1.13) n=1[1.13, 2.25) n=0[2.25, 3.38) n=3[3.38, 4.50) n=4[4.50, 5.63) n=6[5.63, 6.75) n=9[6.75, 7.88) n=29[7.88, 9) n=25[9, 10.13) n=56[10.13, 11.25) n=29[11.25, 12.38) n=13[12.38, 13.50) n=12[13.50, 14.63) n=6[14.63, 15.75) n=3[15.75, 16.88) n=3[16.88, 18) n=1false positivesstudies
Family-wise error rate
100.0%
uncorrected theory 100.0%
False discovery rate
51.6%
mean false share of discoveries
Power
84.5%
share of real effects found
False positives / study
9.33
α·m₀ = 9.50
This study: discoveries
20
This study: false share
60.0%
12 false of 20
Read the two rates apart

FWER is the probability of at least one false positive anywhere in the study. FDR is the expected fraction of the discoveries you report that are false. Bonferroni controls the first and is conservative; BH controls the second and keeps far more power.