{
  "id": "type-i-and-type-ii-errors",
  "title": "Type I and Type II Errors",
  "lang": "en",
  "source_lang": "en",
  "summary": "Type I and Type II errors are the two ways a statistical hypothesis test can reach an incorrect decision about a null hypothesis.",
  "category": "mathematics",
  "subcategory": "probability-statistics",
  "type": "concept",
  "aliases": [
    "Errors of the first and second kinds",
    "False positive and false negative errors in hypothesis testing"
  ],
  "generated_at": "2026-10-04",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/type-i-and-type-ii-errors/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/type-i-and-type-ii-errors/",
      "json": "https://aiwiki.page/zh/type-i-and-type-ii-errors.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "Type I and Type II errors are the two possible incorrect decisions in statistical hypothesis testing. A Type I error occurs when a true null hypothesis is rejected; a Type II error occurs when a false null hypothesis is not rejected. These categories distinguish false alarms from missed detections and provide a framework in statistics for evaluating testing procedures under repeated sampling. Their probabilities describe a procedure’s behavior under specified conditions, not whether a particular observed conclusion is wrong. (itl.nist.gov)"
    },
    {
      "heading": "Decisions and underlying truth",
      "text": "A test contrasts a null hypothesis, \\(H_0\\), with an alternative hypothesis, \\(H_1\\). Data are reduced to a test statistic, and a decision rule specifies which values lead to rejection. The underlying hypothesis may be true or false independently of the decision, producing four possibilities: (itl.nist.gov)\n\nUnderlying situation | Reject \\(H_0\\) | Do not reject \\(H_0\\)\n\\(H_0\\) is true | Type I error | Correct non-rejection\n\\(H_0\\) is false | Correct rejection | Type II error\n\n“Do not reject” is generally preferable to “accept”: insufficient evidence against a hypothesis does not establish its truth. For example, if \\(H_0\\) states that a manufacturing process has its target mean, rejecting it when the mean is on target is a Type I error; failing to detect an actual departure is a Type II error. The error labels depend on how the null hypothesis is formulated. (itl.nist.gov)"
    },
    {
      "heading": "Error probabilities and statistical power",
      "text": "For a simple null hypothesis, the Type I error probability is commonly written\n\n\\[\\alpha=P(\\text{reject }H_0\\mid H_0\\text{ true}).\\]\n\nThis is a conditional probability evaluated under the null model. A test’s significance level is a specified upper bound on this probability. For a composite null hypothesis, containing several possible parameter values, a level-\\(\\alpha\\) test must satisfy that bound at every null value. Its actual maximum error probability may be below the nominal level. (stat210a.berkeley.edu)\n\nAt a particular alternative parameter value \\(\\theta\\), the Type II error probability is\n\n\\[\\beta(\\theta)=P_\\theta(\\text{do not reject }H_0).\\]\n\nThe corresponding statistical power is\n\n\\[\\pi(\\theta)=1-\\beta(\\theta).\\]\n\nPower is therefore the probability of detecting a specified departure from the null. There is usually no single Type II error probability for an entire composite alternative: different true effect sizes give different detection probabilities. A power curve records this dependence across parameter values. (itl.nist.gov)\n\nNeither \\(\\alpha\\) nor \\(\\beta\\) is generally the probability that a hypothesis is true after observing the data. That reverses the conditioning. Probabilities assigned to hypotheses belong to a different framework, such as Bayesian inference, involving additional model specifications. (amstat.org)"
    },
    {
      "heading": "Trade-offs and study design",
      "text": "With the data model, sample size, and test statistic fixed, making rejection harder typically reduces Type I errors while increasing Type II errors. Lowering a significance threshold from 0.05 to 0.01, for example, shrinks the rejection region and reduces power against the same alternative. The two error probabilities are not complements: they are calculated under different underlying situations. (itl.nist.gov)\n\nIncreasing sample size can reduce Type II error while maintaining a fixed significance level. Power also depends on variability, effect magnitude, and whether the test is one-sided or two-sided. In experimental design, sample-size calculations specify an alternative of interest together with an acceptable Type I error bound and desired power. Larger effects and lower variance generally make detection easier. (online.stat.psu.edu)"
    },
    {
      "heading": "A normal-mean example",
      "text": "Suppose \\(X_1,\\ldots,X_n\\) are independent observations from a normal distribution with mean \\(\\mu\\) and known standard deviation \\(\\sigma\\). Consider \\(H_0:\\mu=\\mu_0\\) against \\(H_1:\\mu>\\mu_0\\). Using the sample mean \\(\\bar X\\), define\n\n\\[Z=\\frac{\\bar X-\\mu_0}{\\sigma/\\sqrt n}.\\]\n\nThe denominator is the standard error of the mean. Under \\(H_0\\), the statistic’s sampling distribution is standard normal, so rejecting when \\(Z>z_{1-\\alpha}\\) gives Type I error probability \\(\\alpha\\). (online.stat.psu.edu)\n\nAt a true mean \\(\\mu_1>\\mu_0\\),\n\n\\[\\beta(\\mu_1)= \\Phi\\!\\left( z_{1-\\alpha}-\\frac{\\sqrt n(\\mu_1-\\mu_0)}{\\sigma} \\right),\\]\n\nwhere \\(\\Phi\\) is the standard normal cumulative distribution function. This formula shows how increasing \\(n\\), increasing the mean difference, or decreasing \\(\\sigma\\) reduces missed detections. With \\(\\alpha=0.05\\) and a mean difference equal to three standard errors, the calculated Type II error probability is approximately 0.088, giving power approximately 0.912. (online.stat.psu.edu)"
    },
    {
      "heading": "Interpretation and multiple testing",
      "text": "A p-value describes how incompatible the observed statistic is with a specified null model. It is not the probability that the result is a Type I error. Likewise, non-significance does not establish absence of an effect. A confidence interval can indicate which effect magnitudes remain compatible with the data; for matching procedures, exclusion of a hypothesized value corresponds to rejection by the associated test. Statistical significance alone does not measure practical importance. (amstat.org)\n\nIn multiple testing, controlling each test separately does not necessarily control the probability of at least one false rejection across the collection. The Bonferroni correction addresses this family-wise error probability by testing each of \\(m\\) hypotheses at level \\(\\alpha/m\\). This stricter threshold can reduce power for individual alternatives, illustrating the same false-alarm–missed-detection trade-off at a broader scale. (online.stat.psu.edu)"
    }
  ],
  "links": [
    "statistical-hypothesis-testing",
    "null-hypothesis",
    "statistics",
    "alternative-hypothesis",
    "test-statistic",
    "conditional-probability",
    "significance-level",
    "statistical-power",
    "probability",
    "effect-size",
    "bayesian-inference",
    "experimental-design",
    "variance",
    "normal-distribution",
    "standard-deviation",
    "sample-mean",
    "standard-error",
    "sampling-distribution",
    "cumulative-distribution-function",
    "p-value",
    "confidence-interval",
    "multiple-testing",
    "bonferroni-correction"
  ],
  "sources": [
    {
      "title": "itl.nist.gov/div898/handbook/eda/section3/eda35.htm",
      "url": "https://www.itl.nist.gov/div898/handbook/eda/section3/eda35.htm"
    },
    {
      "title": "stat210a.berkeley.edu/fall-2024/reader/hypothesis-testing.html",
      "url": "https://stat210a.berkeley.edu/fall-2024/reader/hypothesis-testing.html"
    },
    {
      "title": "itl.nist.gov/div898/handbook/prc/section1/prc13.htm",
      "url": "https://www.itl.nist.gov/div898/handbook/prc/section1/prc13.htm"
    },
    {
      "title": "amstat.org/asa/files/pdfs/P-ValueStatement.pdf",
      "url": "https://www.amstat.org/asa/files/pdfs/P-ValueStatement.pdf?trk=public_post_comment-text"
    },
    {
      "title": "online.stat.psu.edu/stat507/Lesson10",
      "url": "https://online.stat.psu.edu/stat507/Lesson10"
    },
    {
      "title": "online.stat.psu.edu/statprogram/reviews/statistical-concepts/power-analysis",
      "url": "https://online.stat.psu.edu/statprogram/reviews/statistical-concepts/power-analysis"
    },
    {
      "title": "online.stat.psu.edu/stat555/node/58/",
      "url": "https://online.stat.psu.edu/stat555/node/58/"
    }
  ],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}