{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0JWRJX2RMP"
    }
  ],
  "body": "\n## Definition\n\nLet $\\alpha \u003e 0$ and $\\beta \u003e 0$.\nThe beta distribution with parameters $\\alpha$ and $\\beta$ is the distribution on $\\mathbb{R}$ with the [[probability density function|04YG690N5V]]\n$$f(x) = \\begin{cases} \\dfrac{x^{\\alpha - 1} (1 - x)^{\\beta - 1}}{B(\\alpha, \\beta)} \u0026 \\text{if } 0 \u003c x \u003c 1, \\\\ 0 \u0026 \\text{otherwise,} \\end{cases}$$\nwhere $B(\\alpha, \\beta) = \\int_0^1 t^{\\alpha - 1} (1 - t)^{\\beta - 1} \\, dt$ is the beta function.\n\n## Remarks\n\nThe mean is $\\alpha / (\\alpha + \\beta)$ and the variance is $\\dfrac{\\alpha\\beta}{(\\alpha + \\beta)^2 (\\alpha + \\beta + 1)}$.\n$\\operatorname{Beta}(1, 1)$ is the [[uniform distribution|0WGDPYR30Q]] on $[0, 1]$.\nThe beta function satisfies $B(\\alpha, \\beta) = \\Gamma(\\alpha)\\Gamma(\\beta)/\\Gamma(\\alpha + \\beta)$.\nIn Bayesian statistics, the beta distribution is the conjugate prior of the success probability $p$ of binomial data. A $\\operatorname{Beta}(\\alpha, \\beta)$ prior and $k$ successes in $n$ trials give a $\\operatorname{Beta}(\\alpha + k, \\beta + n - k)$ posterior.\n\n## Explanations\n\n### L1 human\n\nThe beta distribution describes a random proportion, a number between $0$ and $1$.\nLarge $\\alpha$ pushes the mass toward $1$, large $\\beta$ pushes it toward $0$, and $\\alpha = \\beta$ gives a shape that is symmetric about $1/2$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0EW824Z7G2",
    "kind": "definition",
    "msc": [
      "60E05"
    ],
    "name": "Beta distribution",
    "sources": [
      {
        "locator": "Probability density function",
        "url": "https://en.wikipedia.org/wiki/Beta_distribution"
      }
    ],
    "tag": "0PP5ZAJPP7",
    "uses": [
      "04YG690N5V",
      "0WGDPYR30Q"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0PP5ZAJPP7/",
  "links": [
    {
      "field": "defines",
      "target": "0EW824Z7G2"
    },
    {
      "field": "uses",
      "target": "04YG690N5V"
    },
    {
      "field": "uses",
      "target": "0WGDPYR30Q"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0PP5ZAJPP7.md",
  "msc": [
    "60E05"
  ],
  "name": "Beta distribution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0PP/0PP5ZAJPP7.md",
  "status": null,
  "tag": "0PP5ZAJPP7",
  "uri": "m2://0PP5ZAJPP7",
  "url": "https://math2.tamnd.com/wiki/beta-distribution-definition/",
  "writing": {
    "tag": "0PP5ZAJPP7",
    "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
      }
    ]
  }
}
