{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $N$, $K$ and $n$ be integers with $N \\ge 1$, $0 \\le K \\le N$ and $0 \\le n \\le N$.\nThe hypergeometric distribution with parameters $N$, $K$ and $n$ has the [[probability mass function|0WF4EJP91W]]\n$$p(k) = \\frac{\\binom{K}{k} \\binom{N - K}{n - k}}{\\binom{N}{n}} \\quad \\text{for } \\max(0, n + K - N) \\le k \\le \\min(n, K).$$\n\n## Remarks\n\nA population has $N$ objects, and $K$ of them are successes. Draw $n$ objects without replacement, each subset of size $n$ equally likely. Then the number of successes in the sample has this distribution.\nThe mean is $nK/N$. The variance is $n \\frac{K}{N} \\frac{N - K}{N} \\frac{N - n}{N - 1}$ for $N \\ge 2$.\nWhen $N$ is large compared with $n$, the distribution is close to the [[binomial distribution|0VRWZDWW6B]] with parameters $n$ and $K/N$.\nThe probability of exactly $2$ aces in a hand of $5$ cards is $\\binom{4}{2} \\binom{48}{3} / \\binom{52}{5}$.\n\n## Explanations\n\n### L1 human\n\nAn urn has red and blue balls. Draw a few balls without putting them back, and count the red ones.\nThe count has the hypergeometric distribution. Each draw changes the urn, so the draws are not independent.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "0X3Y0ZSKNF",
    "kind": "definition",
    "msc": [
      "60E05"
    ],
    "name": "Hypergeometric distribution",
    "sources": [
      {
        "locator": "Probability mass function",
        "url": "https://en.wikipedia.org/wiki/Hypergeometric_distribution"
      }
    ],
    "tag": "0SPBPW3K61",
    "uses": [
      "0WF4EJP91W",
      "092GEF38YD",
      "0AKNPYQ04R"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0SPBPW3K61/",
  "links": [
    {
      "field": "defines",
      "target": "0X3Y0ZSKNF"
    },
    {
      "field": "uses",
      "target": "0WF4EJP91W"
    },
    {
      "field": "uses",
      "target": "092GEF38YD"
    },
    {
      "field": "uses",
      "target": "0AKNPYQ04R"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0SPBPW3K61.md",
  "msc": [
    "60E05"
  ],
  "name": "Hypergeometric distribution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0SP/0SPBPW3K61.md",
  "status": null,
  "tag": "0SPBPW3K61",
  "uri": "m2://0SPBPW3K61",
  "url": "https://math2.tamnd.com/wiki/hypergeometric-distribution-definition/",
  "writing": {
    "tag": "0SPBPW3K61",
    "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
      }
    ]
  }
}
