{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0RFMMBHFTV"
    }
  ],
  "body": "\n## Definition\n\nLet $\\alpha \u003e 0$ and $\\beta \u003e 0$.\nThe gamma distribution with shape $\\alpha$ and rate $\\beta$ is the distribution on $\\mathbb{R}$ with the [[probability density function|04YG690N5V]]\n$$f(x) = \\begin{cases} \\dfrac{\\beta^\\alpha}{\\Gamma(\\alpha)} x^{\\alpha - 1} e^{-\\beta x} \u0026 \\text{if } x \u003e 0, \\\\ 0 \u0026 \\text{if } x \\le 0, \\end{cases}$$\nwith the gamma function $\\Gamma(\\alpha) = \\int_0^\\infty t^{\\alpha - 1} e^{-t} \\, dt$. One writes $X \\sim \\operatorname{Gamma}(\\alpha, \\beta)$.\n\n## Remarks\n\nThe mean is $\\alpha / \\beta$ and the variance is $\\alpha / \\beta^2$. Another common form uses the scale $\\theta = 1/\\beta$.\n$\\operatorname{Gamma}(1, \\beta)$ is the [[exponential distribution|028Z8WC5Y9]] with rate $\\beta$. For an integer $n \\ge 1$, $\\operatorname{Gamma}(n, \\beta)$ is the law of a sum of $n$ independent $\\operatorname{Exp}(\\beta)$ random variables. It is the Erlang distribution.\nIf $X \\sim \\operatorname{Gamma}(\\alpha_1, \\beta)$ and $Y \\sim \\operatorname{Gamma}(\\alpha_2, \\beta)$ are independent, then $X + Y \\sim \\operatorname{Gamma}(\\alpha_1 + \\alpha_2, \\beta)$.\nThe chi-squared distribution with $k$ degrees of freedom is $\\operatorname{Gamma}(k/2, 1/2)$.\n\n## Explanations\n\n### L1 human\n\nThe gamma distribution with an integer shape $n$ is the waiting time for the $n$-th event of a Poisson process.\nFor example, it can model the time until the third customer arrives.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "0B80PAQD3C",
    "kind": "definition",
    "msc": [
      "60E05"
    ],
    "name": "Gamma distribution",
    "sources": [
      {
        "locator": "Definitions",
        "url": "https://en.wikipedia.org/wiki/Gamma_distribution"
      }
    ],
    "tag": "06395GBNWD",
    "uses": [
      "04YG690N5V",
      "028Z8WC5Y9"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/06395GBNWD/",
  "links": [
    {
      "field": "defines",
      "target": "0B80PAQD3C"
    },
    {
      "field": "uses",
      "target": "04YG690N5V"
    },
    {
      "field": "uses",
      "target": "028Z8WC5Y9"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/06395GBNWD.md",
  "msc": [
    "60E05"
  ],
  "name": "Gamma distribution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/063/06395GBNWD.md",
  "status": null,
  "tag": "06395GBNWD",
  "uri": "m2://06395GBNWD",
  "url": "https://math2.tamnd.com/wiki/gamma-distribution-definition/",
  "writing": {
    "tag": "06395GBNWD",
    "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
      }
    ]
  }
}
