The ASA statement asks researchers to disclose how many hypotheses they explored. Three corrections cover most cases:
- Bonferroni compares each p with α/m. NIST describes it as a simple method that keeps an overall confidence level across many comparisons.
- Holm goes from the smallest p up, comparing the k-th with α/(m − k + 1), and stops at the first miss. It controls the same error, and rejects at least as much.
- Benjamini-Hochberg controls the false discovery rate, the expected share of rejections that are false. It rejects the k smallest, where k is the largest rank with p at most k/m × q. Its authors showed the gain in power is substantial.
Here are the 64% and the dashboard's ten p-values under two of the corrections:
print(f"20 metrics, no real change: {1 - 0.95 ** 20:.0%} chance of at least one p below 0.05")
ps = [0.001, 0.004, 0.012, 0.019, 0.03, 0.041, 0.09, 0.2, 0.35, 0.6]
print("Bonferroni keeps:", [i for i, p in enumerate(ps) if p <= 0.05 / len(ps)])
print("Benjamini-Hochberg keeps:", benjamini_hochberg(ps, 0.05))
20 metrics, no real change: 64% chance of at least one p below 0.05
Bonferroni keeps: [0, 1]
Benjamini-Hochberg keeps: [0, 1, 2, 3]