{
  "id": "bonferroni-correction",
  "title": "Bonferroni Correction",
  "lang": "en",
  "source_lang": "en",
  "summary": "A multiple-testing procedure that controls the probability of at least one false rejection by dividing the overall significance level among tests.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Bonferroni adjustment",
    "Bonferroni method"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/bonferroni-correction/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/bonferroni-correction/",
      "json": "https://aiwiki.page/zh/bonferroni-correction.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Bonferroni correction is a method in statistics for controlling false positives when several hypothesis tests are considered together. For a family of \\(m\\) tests and an overall significance level \\(\\alpha\\), it tests each hypothesis at level \\(\\alpha/m\\). Equivalently, each p-value is multiplied by \\(m\\), with the result capped at 1. The procedure controls the family-wise error rate: the probability of rejecting at least one true null hypothesis. Its validity does not require independence among the tests. (stat.ethz.ch)"
    },
    {
      "heading": "Multiple testing and the decision rule",
      "text": "In multiple testing, a collection of individually valid tests can produce an appreciable probability of at least one Type I error. If all \\(m\\) null hypotheses are true and the tests have independent rejection events, each with probability \\(\\alpha\\), the unadjusted family-wise error rate is\n\n\\[1-(1-\\alpha)^m.\\]\n\nFor example, 20 independent tests conducted at level 0.05 have an approximately 0.642 probability of at least one false rejection. This is a calculation under the stated assumptions, not a universal error rate for every collection of 20 tests. (stat.ethz.ch)\n\nBonferroni replaces the individual threshold with\n\n\\[\\alpha_{\\mathrm{individual}}=\\frac{\\alpha}{m}.\\]\n\nFor hypothesis \\(H_i\\), the decision rule is to reject when \\(p_i\\leq\\alpha/m\\). The equivalent adjusted p-value is\n\n\\[p_i^{\\mathrm{adj}}=\\min(1,mp_i),\\]\n\nwhich is compared with the original \\(\\alpha\\). These are alternative expressions of the same correction; applying both would impose an additional, unnecessary adjustment. (stat.ethz.ch)\n\nAs an illustrative calculation, suppose five tests yield p-values \\(0.003,\\ 0.012,\\ 0.021,\\ 0.040,\\ 0.300\\). At overall level 0.05, the threshold is 0.01, so only the first hypothesis is rejected. The adjusted values are \\(0.015,\\ 0.060,\\ 0.105,\\ 0.200,\\ 1.000\\), giving the same decision."
    },
    {
      "heading": "Mathematical basis",
      "text": "The correction follows from the union bound, also called Boole’s inequality. For events \\(A_1,\\ldots,A_k\\),\n\n\\[\\Pr\\!\\left(\\bigcup_{i=1}^{k}A_i\\right) \\leq\\sum_{i=1}^{k}\\Pr(A_i).\\]\n\nThis inequality places no requirement on statistical independence or on the events’ dependence structure. (webhome.auburn.edu)\n\nLet \\(I_0\\) denote the indices of the true null hypotheses. A valid null p-value satisfies \\(\\Pr(p_i\\leq t)\\leq t\\) for every \\(t\\in[0,1]\\). Applying the union bound to the false-rejection events gives\n\n\\[\\begin{aligned} \\mathrm{FWER} &=\\Pr\\!\\left(\\bigcup_{i\\in I_0} \\{p_i\\leq\\alpha/m\\}\\right)\\\\ &\\leq\\sum_{i\\in I_0}\\Pr(p_i\\leq\\alpha/m)\\\\ &\\leq |I_0|\\alpha/m \\leq\\alpha. \\end{aligned}\\]\n\nThis derivation explains strong control: the bound holds regardless of which hypotheses are true, rather than only when every null hypothesis is true. It also shows why an invalid individual test is not repaired merely by adjusting its p-value. (arxiv.org)"
    },
    {
      "heading": "Simultaneous confidence intervals",
      "text": "The same probability argument applies to confidence intervals. If each of \\(m\\) intervals has coverage at least \\(1-\\alpha/m\\), the probability that all intervals simultaneously cover their respective parameters is at least \\(1-\\alpha\\). Thus, ten intervals intended to provide 95% simultaneous coverage can each be constructed with 99.5% individual coverage. (itl.nist.gov)\n\nFor a two-sided interval based on Student’s t-distribution, a common form is\n\n\\[\\widehat{\\theta}_i \\pm t_{1-\\alpha/(2m),\\,\\nu_i} \\,\\mathrm{SE}(\\widehat{\\theta}_i),\\]\n\nwhere \\(\\widehat{\\theta}_i\\) is an estimate, \\(\\mathrm{SE}\\) its standard error, and \\(\\nu_i\\) the relevant degrees of freedom. The factor 2 allocates the individual error probability between the two tails. Bonferroni intervals are therefore wider than corresponding unadjusted intervals. (itl.nist.gov)"
    },
    {
      "heading": "Defining the family",
      "text": "The number \\(m\\) refers to the hypotheses covered by the joint error-control claim, not automatically to the number of observations or groups. In a study comparing all pairs among \\(k\\) group means, there are \\(k(k-1)/2\\) comparisons; comparing each noncontrol group with a single control involves only \\(k-1\\). The research question and experimental design determine which comparisons belong together. (itl.nist.gov)\n\nBonferroni is applicable to a preselected collection of contrasts in analysis of variance, rather than being restricted to all pairwise comparisons. A guarantee for one such collection does not automatically extend to additional comparisons outside it. This follows from the proof: the error bound covers only the rejection events included in the union. (itl.nist.gov)"
    },
    {
      "heading": "Conservatism and alternatives",
      "text": "Bonferroni controls an upper bound, so the actual family-wise error rate may be below \\(\\alpha\\). Its conservatism can reduce statistical power—the ability to reject a false null in favor of an alternative hypothesis—especially when the family contains many tests. The computational simplicity and straightforward simultaneous intervals are nevertheless useful properties. (stat.ethz.ch)\n\nThe Holm–Bonferroni method orders the p-values and successively compares them with \\(\\alpha/m,\\alpha/(m-1),\\ldots\\), stopping at the first nonrejection. It also provides strong family-wise error control under arbitrary dependence and rejects every hypothesis rejected by ordinary Bonferroni, sometimes more. (stat.ethz.ch)\n\nProcedures controlling the false discovery rate, including the Benjamini–Hochberg procedure, address a different criterion: the expected proportion of false rejections among all rejections, with that proportion defined as zero when none occur. They do not generally provide the same probability bound on making any false rejection. (stat.ethz.ch)\n\nA weighted extension assigns predetermined nonnegative weights \\(w_i\\) summing to 1 and uses thresholds \\(\\alpha w_i\\). The union-bound argument still gives family-wise error control for valid individual tests. Equal weights \\(w_i=1/m\\) recover the ordinary correction. (pmc.ncbi.nlm.nih.gov)"
    }
  ],
  "links": [
    "statistics",
    "statistical-hypothesis-testing",
    "significance-level",
    "p-value",
    "null-hypothesis",
    "multiple-testing",
    "type-i-and-type-ii-errors",
    "event-probability",
    "statistical-independence",
    "probability",
    "confidence-interval",
    "students-t-distribution",
    "standard-error",
    "degrees-of-freedom",
    "experimental-design",
    "analysis-of-variance",
    "statistical-power",
    "alternative-hypothesis",
    "false-discovery-rate"
  ],
  "sources": [
    {
      "title": "stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/p.adjust.html"
    },
    {
      "title": "stat.ethz.ch/education/semesters/ss2012/ams/slides/v8.2.pdf",
      "url": "https://stat.ethz.ch/education/semesters/ss2012/ams/slides/v8.2.pdf"
    },
    {
      "title": "webhome.auburn.edu/~zinnebe/S7000Spring2021/pairwise_comparisons/pairwiseCompar…",
      "url": "https://webhome.auburn.edu/~zinnebe/S7000Spring2021/pairwise_comparisons/pairwiseComparison.html"
    },
    {
      "title": "arxiv.org/abs/0908.1767",
      "url": "https://arxiv.org/abs/0908.1767"
    },
    {
      "title": "itl.nist.gov/div898/handbook/prc/section4/prc463.htm",
      "url": "https://www.itl.nist.gov/div898/handbook/prc/section4/prc463.htm"
    },
    {
      "title": "itl.nist.gov/div898/handbook/prc/section4/prc47.htm",
      "url": "https://www.itl.nist.gov/div898/handbook/prc/section4/prc47.htm"
    },
    {
      "title": "pmc.ncbi.nlm.nih.gov/articles/PMC2703613/",
      "url": "https://pmc.ncbi.nlm.nih.gov/articles/PMC2703613/"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}