{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "065X9S8CM3"
    },
    {
      "field": "uses",
      "target": "0PVCTCKD3C"
    },
    {
      "field": "uses",
      "target": "0XKTZRWTXX"
    }
  ],
  "body": "\n## Definition\n\nLet $n \\ge 0$ be an integer and let $p \\in [0, 1]$.\nThe binomial distribution with parameters $n$ and $p$ is the distribution on $\\{0, 1, \\dots, n\\}$ with the [[probability mass function|0WF4EJP91W]]\n$$p(k) = \\binom{n}{k} p^k (1 - p)^{n-k} \\quad \\text{for } k = 0, 1, \\dots, n.$$\nHere $\\binom{n}{k}$ is the [[binomial coefficient|092GEF38YD]]. One writes $X \\sim \\operatorname{B}(n, p)$ or $X \\sim \\operatorname{Bin}(n, p)$.\n\n## Remarks\n\nThe values add up to $1$ by the [[binomial theorem|0EHWPWGHB2]]: $\\sum_{k} \\binom{n}{k} p^k (1 - p)^{n-k} = (p + 1 - p)^n = 1$.\nThe number of successes in $n$ independent [[Bernoulli trials|0PHC9FE2V5]] with success probability $p$ has this distribution. The factor $\\binom{n}{k}$ counts the positions of the $k$ successes.\nThe mean is $np$ and the variance is $np(1 - p)$.\nThe probability of exactly $2$ heads in $4$ tosses of a fair coin is $\\binom{4}{2} / 2^4 = 6/16$.\n\n## Explanations\n\n### L1 human\n\nRepeat a yes-or-no experiment $n$ times, independently, and count the yes answers.\nThe count has the binomial distribution. Each sequence with $k$ yes answers has probability $p^k (1 - p)^{n-k}$, and there are $\\binom{n}{k}$ such sequences.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0WCWA1KT3M",
    "kind": "definition",
    "msc": [
      "60E05"
    ],
    "name": "Binomial distribution",
    "sources": [
      {
        "locator": "Probability mass function",
        "url": "https://en.wikipedia.org/wiki/Binomial_distribution"
      }
    ],
    "tag": "0VRWZDWW6B",
    "uses": [
      "0WF4EJP91W",
      "092GEF38YD",
      "0PHC9FE2V5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0VRWZDWW6B/",
  "links": [
    {
      "field": "defines",
      "target": "0WCWA1KT3M"
    },
    {
      "field": "uses",
      "target": "0WF4EJP91W"
    },
    {
      "field": "uses",
      "target": "092GEF38YD"
    },
    {
      "field": "uses",
      "target": "0PHC9FE2V5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0VRWZDWW6B.md",
  "msc": [
    "60E05"
  ],
  "name": "Binomial distribution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0VR/0VRWZDWW6B.md",
  "status": null,
  "tag": "0VRWZDWW6B",
  "uri": "m2://0VRWZDWW6B",
  "url": "https://math2.tamnd.com/wiki/binomial-distribution-definition/",
  "writing": {
    "tag": "0VRWZDWW6B",
    "kind": "definition",
    "level": "W1",
    "next": [
      {
        "what": "edge instance_of in",
        "note": "one example",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge not_instance_of in",
        "note": "one non-example that fails one clause",
        "have": 0,
        "want": 1
      }
    ]
  }
}
