{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Problem\n\nLet $X_1, \\dots, X_m$ be i.i.d. [[normal|07RXBVTVZB]] $\\mathcal{N}(\\mu_1, \\sigma_1^2)$ and let $Y_1, \\dots, Y_n$ be i.i.d. $\\mathcal{N}(\\mu_2, \\sigma_2^2)$, independent of the $X_i$.\nAll four parameters are unknown, and $\\sigma_1^2 = \\sigma_2^2$ is not assumed.\nThe problem asks for a [[test|087P03NEND]] of $H_0 \\colon \\mu_1 = \\mu_2$ whose type I error probability is exactly $\\alpha$ for all values of $\\sigma_1^2$ and $\\sigma_2^2$.\nEquivalently, it asks for a [[confidence interval|0K4NMMJBG2]] for $\\mu_1 - \\mu_2$ with exact coverage $1 - \\alpha$ for all values of the variances.\n\n## Remarks\n\nThe natural statistic is $(\\bar X - \\bar Y)/\\sqrt{S_1^2/m + S_2^2/n}$, where $S_1^2$ and $S_2^2$ are the sample variances.\nIts law under $H_0$ depends on the unknown ratio $\\sigma_1^2/\\sigma_2^2$, which is the source of the difficulty.\nIf the ratio $\\sigma_1^2/\\sigma_2^2$ is known, a two-sample [[Student's t-test|0HYP606RYF]] solves the problem exactly.\nWelch's test compares the statistic with a t-distribution whose degrees of freedom are estimated from the data; its level is close to $\\alpha$ but not exactly $\\alpha$ in general.\nFisher proposed a fiducial solution, and its level as a frequentist test is not exactly $\\alpha$ either.\n\n## Explanations\n\n### L1 human\n\nTwo groups are measured, and one wants to know whether their true means differ.\nWhen both groups have the same spread, the classical t-test gives an exact answer.\nWhen the spreads may differ and are unknown, the exact answer becomes surprisingly hard, and this is the Behrens–Fisher problem.\nIn practice, people use Welch's approximate test, which works well for most sample sizes.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "087P03NEND"
    ],
    "history": {
      "first_stated": "1929",
      "posed_by": "Walter-Ulrich Behrens"
    },
    "kind": "problem",
    "msc": [
      "62F03",
      "62F25"
    ],
    "name": "Behrens–Fisher problem",
    "same_as": {
      "wikidata": "Q814556",
      "wikipedia": "Behrens–Fisher problem"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Behrens%E2%80%93Fisher_problem"
      }
    ],
    "tag": "EJ3W3836VZ",
    "uses": [
      "087P03NEND",
      "07RXBVTVZB",
      "0K4NMMJBG2"
    ]
  },
  "kind": "problem",
  "link": "https://tamnd.github.io/math2/node/EJ3W3836VZ/",
  "links": [
    {
      "field": "about",
      "target": "087P03NEND"
    },
    {
      "field": "uses",
      "target": "087P03NEND"
    },
    {
      "field": "uses",
      "target": "07RXBVTVZB"
    },
    {
      "field": "uses",
      "target": "0K4NMMJBG2"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/EJ3W3836VZ.md",
  "msc": [
    "62F03",
    "62F25"
  ],
  "name": "Behrens–Fisher problem",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/EJ3/EJ3W3836VZ.md",
  "status": null,
  "tag": "EJ3W3836VZ",
  "uri": "m2://EJ3W3836VZ",
  "url": "https://tamnd.github.io/math2/wiki/behrens-fisher-problem/",
  "writing": {
    "tag": "EJ3W3836VZ",
    "kind": "problem",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
