How does searching many comparisons change the chance of a false alert?
One campaign can ask enough questions to manufacture a surprise
Source research checked . Teaching calculations are ideal models.
A benchmark campaign may compare dozens of circuits, calibrations, devices and parameter choices. Even if every individual statistical test has a small false-positive probability, the chance of at least one apparent surprise can become large. Selecting the most flattering comparison after the search conceals the size of that campaign.
This lab assumes all tested null hypotheses are true and computes the exact independent-test probability of at least one false alert. It then introduces a simple family-wide bound by dividing the desired total error allowance among the tests. The exact probability uses independence. The union-bound guarantee does not, provided each individual false-positive bound is valid. Keeping those two claims separate is the main mathematical lesson.
A correction is not a complete scientific analysis. It can reduce the power to detect a real effect, and it does not repair data leakage, a biased estimator or an inappropriate null model. The number of comparisons therefore belongs in the experiment plan. Predeclared endpoints and a fresh validation set can make the campaign easier to interpret than a long list of selected p-values.
Start with the assumptions
- Every null hypothesis is true in this scenario.
- Exact family probabilities use independent tests.
- Each individual cutoff is a valid false-positive probability bound.
P(at least one false alert) = 1-(1-alpha)^m under independence
Expected number of false alerts = m alpha
Bonferroni per-test cutoff = desired_family_bound/m
Compare the input regimes
Each case uses invented inputs. The results follow from this model and do not describe measured hardware.
Baseline regime
Complete inputs
- Tests in campaign
- 20
- Per-test false-positive probability
- 0.01
- Desired family upper bound
- 0.05
- All 20 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.01)^20.
- Subtract from one: the campaign alert probability is 0.182093, even though each test uses 0.01.
- Dividing the desired family bound 0.05 by 20 gives 0.0025. The union bound does not require independent tests; the displayed exact corrected probability does.
| Calculated quantity | Synthetic result |
|---|---|
| Expected false alerts | 0.2 |
| Chance of one or more false alerts | 0.182093062403 |
| Bonferroni per-test cutoff | 0.0025 |
| Bonferroni family upper bound | 0.05 |
| Independent-test family probability after correction | 0.0488301247468 |
At least one false alert occurs with probability 18.209306% under the independent all-null scenario. The correction is a declared campaign rule, not a substitute for replication or a complete analysis of statistical power. A laboratory must count the comparisons actually searched, including hidden tuning decisions.
Comparison regime
Complete inputs
- Tests in campaign
- 120
- Per-test false-positive probability
- 0.01
- Desired family upper bound
- 0.05
- All 120 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.01)^120.
- Subtract from one: the campaign alert probability is 0.70062, even though each test uses 0.01.
- Dividing the desired family bound 0.05 by 120 gives 0.000417. The union bound does not require independent tests; the displayed exact corrected probability does.
| Calculated quantity | Synthetic result |
|---|---|
| Expected false alerts | 1.2 |
| Chance of one or more false alerts | 0.700619608688 |
| Bonferroni per-test cutoff | 0.000416666666667 |
| Bonferroni family upper bound | 0.05 |
| Independent-test family probability after correction | 0.0487804868407 |
At least one false alert occurs with probability 70.061961% under the independent all-null scenario. The correction is a declared campaign rule, not a substitute for replication or a complete analysis of statistical power. A laboratory must count the comparisons actually searched, including hidden tuning decisions.
Extended regime
Complete inputs
- Tests in campaign
- 240
- Per-test false-positive probability
- 0.012
- Desired family upper bound
- 0.05
- All 240 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.012)^240.
- Subtract from one: the campaign alert probability is 0.944835, even though each test uses 0.012.
- Dividing the desired family bound 0.05 by 240 gives 0.000208. The union bound does not require independent tests; the displayed exact corrected probability does.
| Calculated quantity | Synthetic result |
|---|---|
| Expected false alerts | 2.88 |
| Chance of one or more false alerts | 0.944834608959 |
| Bonferroni per-test cutoff | 0.000208333333333 |
| Bonferroni family upper bound | 0.05 |
| Independent-test family probability after correction | 0.0487755304945 |
At least one false alert occurs with probability 94.483461% under the independent all-null scenario. The correction is a declared campaign rule, not a substitute for replication or a complete analysis of statistical power. A laboratory must count the comparisons actually searched, including hidden tuning decisions.
Try the reasoning: Which comparisons would a complete campaign register need to count, including tuning choices that never became a published test?