{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $X_1, \\dots, X_n$ be [[independent|0XCE070V8B]] real random variables with $a_i \\le X_i \\le b_i$ almost surely, where $a_i \u003c b_i$ are reals. Let $S_n = X_1 + \\dots + X_n$.\nThen for each $t \u003e 0$,\n$$P\\left(S_n - E[S_n] \\ge t\\right) \\le \\exp\\left(-\\frac{2t^2}{\\sum_{i=1}^n (b_i - a_i)^2}\\right).$$\n\n## Remarks\n\nThe same bound holds for $P(S_n - E[S_n] \\le -t)$. So $P(|S_n - E[S_n]| \\ge t) \\le 2 \\exp\\left(-2t^2 / \\sum_i (b_i - a_i)^2\\right)$.\nThe proof uses the [[Chernoff bound|014PEBGDYF]] together with Hoeffding's lemma: $E[e^{s(X - E[X])}] \\le e^{s^2 (b - a)^2 / 8}$ if $a \\le X \\le b$.\nFor $n$ independent tosses of a coin with $P(\\text{heads}) = p$, the fraction $H$ of heads satisfies $P(|H - p| \\ge \\varepsilon) \\le 2 e^{-2n\\varepsilon^2}$.\n\n## History\n\nThe inequality is named after Wassily Hoeffding.\n\n## Explanations\n\n### L1 human\n\nA sum of many independent bounded terms is very unlikely to be far from its mean.\nThe probability of a large deviation decreases like $e^{-c t^2}$. This is why polls with a few thousand people give reliable results.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "60E15"
    ],
    "name": "Hoeffding's inequality",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q1622794",
      "wikipedia": "Hoeffding's inequality"
    },
    "sources": [
      {
        "locator": "Statement",
        "url": "https://en.wikipedia.org/wiki/Hoeffding's_inequality"
      }
    ],
    "tag": "0WPDNXGSSN",
    "uses": [
      "0XCE070V8B",
      "0DCT0QZVQ1",
      "014PEBGDYF"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/0WPDNXGSSN/",
  "links": [
    {
      "field": "uses",
      "target": "0XCE070V8B"
    },
    {
      "field": "uses",
      "target": "0DCT0QZVQ1"
    },
    {
      "field": "uses",
      "target": "014PEBGDYF"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0WPDNXGSSN.md",
  "msc": [
    "60E15"
  ],
  "name": "Hoeffding's inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0WP/0WPDNXGSSN.md",
  "status": null,
  "tag": "0WPDNXGSSN",
  "uri": "m2://0WPDNXGSSN",
  "url": "https://math2.tamnd.com/wiki/hoeffdings-inequality/",
  "writing": {
    "tag": "0WPDNXGSSN",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
