Inferensys

Glossary

Bonferroni Correction

A conservative statistical adjustment applied when testing multiple hypotheses simultaneously to control the family-wise error rate and reduce the probability of obtaining false-positive results.
Cinematic overhead of a WeWork creative suite room with multiple curved monitors showing AI decision dashboards, executives in casual attire reviewing data, dramatic pendant lighting.
MULTIPLE HYPOTHESIS TESTING

What is Bonferroni Correction?

A conservative statistical adjustment applied when testing multiple hypotheses simultaneously to control the family-wise error rate and reduce the probability of obtaining false-positive results.

The Bonferroni Correction is a statistical adjustment method that controls the family-wise error rate (FWER) by dividing the desired significance level (alpha) by the number of independent hypotheses tested simultaneously. This conservative technique directly counteracts the multiple comparisons problem, where the probability of encountering at least one false positive increases exponentially with each additional test conducted on the same dataset.

In A/B testing infrastructure for AI personalization, the correction is applied by setting a stricter p-value threshold (e.g., alpha/n) to validate model variants against a control. While highly effective at eliminating Type I errors, its stringency can inflate Type II errors, making it less suitable for high-dimensional experimentation where the False Discovery Rate (FDR) control offers a more practical balance between discovery and statistical rigor.

MECHANISM

Key Characteristics

The Bonferroni correction is a foundational, conservative method for controlling the family-wise error rate (FWER) when multiple statistical tests are performed simultaneously.

01

Core Mathematical Mechanism

The correction adjusts the significance threshold by dividing the desired overall alpha level (α) by the number of independent hypotheses (m) being tested.

  • Adjusted Alpha: α_new = α / m
  • Example: For 20 variants tested against a control with a desired α of 0.05, each individual test must achieve a p-value < 0.0025 to reject the null hypothesis.
  • Direct P-Value Adjustment: Alternatively, multiply each raw p-value by m, capping the result at 1.0, and compare against the original α.
02

Family-Wise Error Rate Control

The primary objective is to strictly limit the probability of making one or more Type I errors (false positives) across the entire family of comparisons.

  • Strong Control: Guarantees FWER ≤ α for any configuration of true and false null hypotheses.
  • Contrast with FDR: Unlike the False Discovery Rate, which controls the proportion of false positives, Bonferroni controls the occurrence of any false positive, making it suitable for high-stakes confirmatory trials.
03

Conservative Nature and Power Trade-off

The correction is known for being highly conservative, especially as the number of tests increases, which directly reduces statistical power.

  • Increased Type II Errors: By making it harder to reject the null hypothesis, the probability of missing a true effect (false negative) increases.
  • Independence Assumption: The correction is exact for independent tests but becomes overly conservative when test statistics are positively correlated, a common scenario in A/B testing where metrics are related.
04

Application in A/B Testing Infrastructure

In online controlled experiments, Bonferroni is applied when evaluating multiple goal metrics or treatment arms against a single control to avoid the peeking problem across metrics.

  • Multiple Variants: If an A/B/n test has one control and four treatments, m=4 comparisons are made.
  • Multiple Metrics: When monitoring a North Star Metric alongside several guardrail metrics, a correction ensures the overall chance of a false positive across all monitored metrics remains controlled.
05

Alternatives and Successors

Due to its conservatism, several less stringent alternatives are often preferred in large-scale experimentation platforms.

  • Holm-Bonferroni Method: A step-down procedure that uniformly provides more power than the simple Bonferroni correction while still controlling FWER.
  • Benjamini-Hochberg Procedure: Controls the False Discovery Rate (FDR) instead of FWER, offering a better balance between discovery and false positive control for exploratory analysis with thousands of metrics.
06

Practical Implementation Example

Consider a personalization model test evaluating click-through rate (CTR), conversion rate, and average order value (AOV) against a control.

  • Scenario: 3 primary metrics are tested simultaneously.
  • Calculation: α_new = 0.05 / 3 ≈ 0.0167.
  • Interpretation: A raw p-value of 0.03 for the CTR lift would be considered statistically significant under standard rules but is not significant after the Bonferroni correction, preventing a premature conclusion.
BONFERRONI CORRECTION

Frequently Asked Questions

Explore the mechanics, applications, and critical limitations of the Bonferroni Correction, the foundational method for controlling false positives in multivariate A/B testing and personalization experiments.

The Bonferroni Correction is a conservative statistical adjustment applied during multiple hypothesis testing to control the family-wise error rate (FWER). It works by dividing the desired overall significance level (alpha, typically 0.05) by the number of independent tests performed. If you are testing 10 variants against a control, the new threshold for statistical significance becomes 0.005. This directly reduces the probability of committing a Type I Error (false positive) across the entire family of comparisons. While highly effective at eliminating spurious results, the method is known to be stringent, often increasing the likelihood of Type II Errors (false negatives) by requiring extremely low p-values to declare significance.

MULTIPLE COMPARISON CORRECTION METHODS

Bonferroni vs. Other Multiplicity Corrections

Comparison of statistical adjustment techniques for controlling error rates when testing multiple hypotheses simultaneously in A/B testing platforms.

FeatureBonferroni CorrectionHolm-Bonferroni MethodBenjamini-Hochberg Procedure

Error Rate Controlled

Family-Wise Error Rate (FWER)

Family-Wise Error Rate (FWER)

False Discovery Rate (FDR)

Statistical Power

Lowest (most conservative)

Higher than Bonferroni

Highest (least conservative)

False Positive Control

Strictest

Strict

Moderate

Adjustment Mechanism

Divides alpha by number of tests (α/m)

Step-down sequential rejection

Step-up sequential ranking of p-values

Assumption of Independence

None required

None required

Positive dependency required

Suitable for Confirmatory Trials

Suitable for Exploratory Analysis

Computational Complexity

O(1)

O(m log m)

O(m log m)

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.