{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $S$ be a nonempty [[finite set|0BBTH3YSZA]] with $n$ elements.\nThe discrete uniform distribution on $S$ is the distribution with the [[probability mass function|0WF4EJP91W]]\n$$p(s) = \\frac{1}{n} \\quad \\text{for } s \\in S.$$\nA random variable $X$ is uniform on $S$ if $P(X = s) = 1/n$ for each $s \\in S$.\n\n## Remarks\n\nThen $P(X \\in A) = |A| / n$ for each $A \\subseteq S$. This is the [[classical definition of probability|0AKNPYQ04R]].\nFor $S = \\{a, a + 1, \\dots, b\\}$ with integers $a \\le b$ and $n = b - a + 1$, the mean is $(a + b)/2$ and the variance is $(n^2 - 1)/12$.\nThe result of a fair die is uniform on $\\{1, \\dots, 6\\}$, with mean $7/2$.\n\n## Explanations\n\n### L1 human\n\nThe discrete uniform distribution is \"all outcomes equally likely\".\nA fair die, a fair coin and a well-shuffled deck all give uniform distributions.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "defines": "02MY6WZXEQ",
    "kind": "definition",
    "msc": [
      "60E05"
    ],
    "name": "Discrete uniform distribution",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Discrete_uniform_distribution"
      }
    ],
    "tag": "0KYP951QWH",
    "uses": [
      "0WF4EJP91W",
      "0AKNPYQ04R",
      "0BBTH3YSZA"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0KYP951QWH/",
  "links": [
    {
      "field": "defines",
      "target": "02MY6WZXEQ"
    },
    {
      "field": "uses",
      "target": "0WF4EJP91W"
    },
    {
      "field": "uses",
      "target": "0AKNPYQ04R"
    },
    {
      "field": "uses",
      "target": "0BBTH3YSZA"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0KYP951QWH.md",
  "msc": [
    "60E05"
  ],
  "name": "Discrete uniform distribution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0KY/0KYP951QWH.md",
  "status": null,
  "tag": "0KYP951QWH",
  "uri": "m2://0KYP951QWH",
  "url": "https://math2.tamnd.com/wiki/discrete-uniform-distribution-definition/",
  "writing": {
    "tag": "0KYP951QWH",
    "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
      }
    ]
  }
}
