{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $X_1, X_2, \\dots$ be [[independent and identically distributed|00MRN0FARV]] observations with density $f$, and test $H_0 \\colon f = f_0$ against $H_1 \\colon f = f_1$, where $f_0$ and $f_1$ are distinct densities.\nLet $S$ be the [[sequential probability ratio test|SXR93CAP1R]] with boundaries $0 \u003c A \u003c 1 \u003c B$.\nLet $N$ be its sample size, and let $\\alpha = P_0(S \\text{ rejects } H_0)$ and $\\beta = P_1(S \\text{ accepts } H_0)$ be its [[error probabilities|03N8C8ZR4B]].\nLet $S'$ be any [[sequential procedure|9CWYNB9003]] for the same hypotheses with sample size $N'$ and error probabilities $\\alpha' \\le \\alpha$ and $\\beta' \\le \\beta$.\nThen\n$$E_0[N] \\le E_0[N'] \\quad \\text{and} \\quad E_1[N] \\le E_1[N'],$$\nwhere $E_i$ is the [[expectation|0WQNRCNY3M]] when $f = f_i$.\n\n## Remarks\n\nThe proof is Bayesian.\nFix a prior probability of $H_1$, a cost per observation and losses for wrong decisions.\nThe Bayes sequential procedure is then an optimal stopping rule, and it has the form of an SPRT on the posterior odds.\nOne shows that every SPRT with $A \u003c 1 \u003c B$ is Bayes for suitable priors and costs.\nComparing the Bayes risks of $S$ and $S'$ over a range of priors and costs for which $S$ is Bayes then gives both inequalities.\nThe theorem was proved by Wald and Wolfowitz in 1948.\nThe optimality holds only at the two simple hypotheses.\nFor a composite family of distributions, the expected sample size of an SPRT can be large at parameter values between $f_0$ and $f_1$.\n\n## Explanations\n\n### L1 human\n\nThe SPRT stops as soon as the evidence is clear enough.\nThis theorem says that no other method with the same or smaller chances of error can do better on average, whichever of the two hypotheses is true.\nSo the SPRT is the most economical test for choosing between two fully specified explanations of the data.\n\n### L2 human\n\nFixed-sample tests, such as those from the [[Neyman–Pearson lemma|0EE19CFEEF]], optimize power for a given sample size.\nThe SPRT optimizes the opposite quantity: the expected [[stopping time|WND87FBAKC]] for given error probabilities.\nIn practice the SPRT often needs far fewer observations on average than the best fixed-sample test with the same error rates.\nThe theorem is the starting point of optimal stopping methods in sequential statistics.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "SXR93CAP1R"
    ],
    "kind": "statement",
    "msc": [
      "62L10",
      "62L15"
    ],
    "name": "Wald–Wolfowitz optimality of the sequential probability ratio test",
    "role": "theorem",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Sequential_probability_ratio_test"
      }
    ],
    "tag": "4F0N5J5QT2",
    "uses": [
      "SXR93CAP1R",
      "9CWYNB9003",
      "00MRN0FARV",
      "WND87FBAKC",
      "03N8C8ZR4B",
      "0WQNRCNY3M",
      "0EE19CFEEF"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/4F0N5J5QT2/",
  "links": [
    {
      "field": "about",
      "target": "SXR93CAP1R"
    },
    {
      "field": "uses",
      "target": "SXR93CAP1R"
    },
    {
      "field": "uses",
      "target": "9CWYNB9003"
    },
    {
      "field": "uses",
      "target": "00MRN0FARV"
    },
    {
      "field": "uses",
      "target": "WND87FBAKC"
    },
    {
      "field": "uses",
      "target": "03N8C8ZR4B"
    },
    {
      "field": "uses",
      "target": "0WQNRCNY3M"
    },
    {
      "field": "uses",
      "target": "0EE19CFEEF"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/4F0N5J5QT2.md",
  "msc": [
    "62L10",
    "62L15"
  ],
  "name": "Wald–Wolfowitz optimality of the sequential probability ratio test",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/4F0/4F0N5J5QT2.md",
  "status": null,
  "tag": "4F0N5J5QT2",
  "uri": "m2://4F0N5J5QT2",
  "url": "https://tamnd.github.io/math2/wiki/wald-wolfowitz-optimality-of-the-sequential-probability-ratio-test/",
  "writing": {
    "tag": "4F0N5J5QT2",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
