{
  "aliases": [
    "neyman-pearson-lemma"
  ],
  "backlinks": null,
  "body": "\n## Statement\n\nConsider a [[hypothesis test|087P03NEND]] of the simple null hypothesis $H_0 \\colon \\theta = \\theta_0$ against the simple alternative $H_1 \\colon \\theta = \\theta_1$. Let $L(\\theta \\mid x)$ be the [[likelihood|05FSTXM92W]] of the data $x$.\nFor $\\eta \u003e 0$, let the test reject $H_0$ when\n$$\\Lambda(x) = \\frac{L(\\theta_0 \\mid x)}{L(\\theta_1 \\mid x)} \\le \\eta,$$\nand let $\\alpha = P_{\\theta_0}(\\Lambda(X) \\le \\eta)$ be its size.\nThen this likelihood-ratio test is a most powerful test of size $\\alpha$. Each other test with size at most $\\alpha$ has at most the same power at $\\theta_1$.\n\n## Remarks\n\nConsider all tests with a probability of a [[type I error|0R41PVFA39]] at most $\\alpha$. Among them, the likelihood-ratio test has the smallest probability of a type II error.\nFor a discrete law, an exact size $\\alpha$ can need a randomized test on the boundary $\\Lambda(x) = \\eta$.\nExample: for an i.i.d. $\\mathcal{N}(\\mu, 1)$ sample and $\\mu_1 \u003e \\mu_0$, the test rejects $H_0$ when $\\bar{x}$ is large.\n\n## History\n\nJerzy Neyman and Egon Pearson introduced the lemma in a paper in 1933.\n\n## Explanations\n\n### L1 human\n\nTo choose between two exact hypotheses, the best test compares how well each hypothesis explains the data.\nIf the alternative explains the data much better than the null hypothesis, reject the null hypothesis. No other test with the same false-alarm rate finds more true effects.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "aliases": [
      "neyman-pearson-lemma"
    ],
    "kind": "statement",
    "msc": [
      "62F03"
    ],
    "name": "Neyman–Pearson lemma",
    "role": "lemma",
    "same_as": {
      "wikidata": "Q1375989",
      "wikipedia": "Neyman–Pearson lemma"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Neyman–Pearson_lemma"
      }
    ],
    "tag": "0EE19CFEEF",
    "uses": [
      "087P03NEND",
      "05FSTXM92W",
      "0R41PVFA39"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0EE19CFEEF/",
  "links": [
    {
      "field": "uses",
      "target": "087P03NEND"
    },
    {
      "field": "uses",
      "target": "05FSTXM92W"
    },
    {
      "field": "uses",
      "target": "0R41PVFA39"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0EE19CFEEF.md",
  "msc": [
    "62F03"
  ],
  "name": "Neyman–Pearson lemma",
  "prov": null,
  "role": "lemma",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0EE/0EE19CFEEF.md",
  "status": null,
  "tag": "0EE19CFEEF",
  "uri": "m2://0EE19CFEEF",
  "url": "https://math2.tamnd.com/wiki/neyman-pearson-lemma/",
  "writing": {
    "tag": "0EE19CFEEF",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
