Skip to content
tezvyn:
Menu

Bonferroni Correction: Raising the Bar for Significance

Source: Wikipedia: Bonferroni correctionHardHow cards are made

The Bonferroni correction prevents finding false positives when running many tests by making your significance threshold stricter for each one. It's used in A/B tests with multiple variants.

Why it exists

The multiple comparisons problem is a statistical trap. A 5% chance of a false positive (a p-value < 0.05) might be acceptable for a single experiment. But if you run 20 tests, your chance of getting at least one false positive by pure random luck balloons to over 64%. You start seeing significant results everywhere, even in random noise. The Bonferroni correction was created to prevent this.

The mental model

Think of it as an anti-lottery ticket. The more tests you run, the higher your chance of hitting a "false positive jackpot." The Bonferroni correction makes the price of each ticket (the significance threshold) much higher. If you want to run 10 tests, you have to be 10 times as certain about any single result before you can declare it a winner. This reduces the chance of being fooled by randomness.

How it works

The math is simple division. Take your desired significance level, called alpha (usually 0.05), and divide it by the number of tests you are running, 'n'. The result, alpha / n, becomes your new, much stricter p-value threshold. For any single test to be considered significant, its p-value must be below this new corrected value.

When to use it

Use it for a small number of pre-planned statistical tests where you need to strictly control the family-wise error rate—the probability of making even one false positive. Its simplicity makes it easy to apply and explain, which is a benefit when communicating results to non-statisticians.

When not to use it

Avoid it for a large number of comparisons. It becomes so conservative that it dramatically increases your chance of a false negative (missing a real effect). If you test 1,000 variants, the correction makes it nearly impossible to find a significant result. In these cases, methods that control the False Discovery Rate (FDR), like the Benjamini-Hochberg procedure, are more powerful and appropriate.

One canonical example

You are A/B/C/D testing four new button colors against the original. This means you are running four comparisons (New A vs. Control, New B vs. Control, etc.). Your team's standard for significance is p < 0.05. Applying a Bonferroni correction, your new significance threshold becomes 0.05 / 4 = 0.0125. A variant that shows a p-value of 0.03, which might have seemed promising, is now correctly identified as not statistically significant under this stricter regime.

Interview question

What is a primary drawback of applying the Bonferroni correction, especially with many comparisons?

  • a.It becomes excessively conservative, making it harder to detect real effects.Correct
  • b.It only works for comparisons involving exactly two groups.
  • c.It increases the chance of incorrectly rejecting a true null hypothesis.
  • d.It complicates the calculation of p-values for each test.
Why?

The correct answer is C because the card states that with many comparisons, the Bonferroni correction 'becomes so conservative that it dramatically increases your chance of a false negative (missing a real effect).' Option C is incorrect because the Bonferroni correction's purpose is to reduce the chance of a Type I error (incorrectly rejecting a true null hypothesis), not increase it.

Just read this? Test yourself on what you have been reading.

Read the original → en.wikipedia.org

Put your scrolling time to good use

Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.

The iPhone app is on the way

We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.

Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.

Get it on Google PlayiPhone app coming soon

We are hiring for this. Open roles that interview on statistics — each one lists the topics its interview covers.

See open roles