Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Evidence and experimental design

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.

Synthetic decision model

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

Synthetic one campaign can ask enough questions to manufacture a surprise plot: Chance of at least one false alert versus Number of independent tests.
Synthetic baseline case. Horizontal axis: Number of independent tests. Vertical axis: Chance of at least one false alert. Curves show Model. These are computed teaching examples, not measured hardware results.

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
  1. All 20 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.01)^20.
  2. Subtract from one: the campaign alert probability is 0.182093, even though each test uses 0.01.
  3. 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.
Baseline regime · synthetic calculated results
Calculated quantitySynthetic result
Expected false alerts0.2
Chance of one or more false alerts0.182093062403
Bonferroni per-test cutoff0.0025
Bonferroni family upper bound0.05
Independent-test family probability after correction0.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
  1. All 120 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.01)^120.
  2. Subtract from one: the campaign alert probability is 0.70062, even though each test uses 0.01.
  3. 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.
Comparison regime · synthetic calculated results
Calculated quantitySynthetic result
Expected false alerts1.2
Chance of one or more false alerts0.700619608688
Bonferroni per-test cutoff0.000416666666667
Bonferroni family upper bound0.05
Independent-test family probability after correction0.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
  1. All 240 null hypotheses are assumed true. Independence gives the probability of no alert as (1 - 0.012)^240.
  2. Subtract from one: the campaign alert probability is 0.944835, even though each test uses 0.012.
  3. 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.
Extended regime · synthetic calculated results
Calculated quantitySynthetic result
Expected false alerts2.88
Chance of one or more false alerts0.944834608959
Bonferroni per-test cutoff0.000208333333333
Bonferroni family upper bound0.05
Independent-test family probability after correction0.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?

Back to this lab in the catalog