{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0EE19CFEEF"
    },
    {
      "field": "uses",
      "target": "0FREPFKNS7"
    },
    {
      "field": "uses",
      "target": "0JWRJX2RMP"
    }
  ],
  "body": "\n## Definition\n\nLet $\\Theta$ be a set of parameters. For each $\\theta \\in \\Theta$, let $f(\\cdot \\mid \\theta)$ be a [[probability mass function|0WF4EJP91W]] or a [[density|04YG690N5V]] on $\\mathbb{R}^n$. It gives the law of the data $X = (X_1, \\dots, X_n)$ when $\\theta$ is the true parameter.\nFor observed data $x \\in \\mathbb{R}^n$, the likelihood function is the function $L \\colon \\Theta \\to [0, \\infty)$ with\n$$L(\\theta \\mid x) = f(x \\mid \\theta).$$\nThe log-likelihood is $\\ell(\\theta \\mid x) = \\ln L(\\theta \\mid x)$.\n\n## Remarks\n\nFor an [[i.i.d.|0AJN7WHBJZ]] sample with mass function or density $f_1(\\cdot \\mid \\theta)$ for each observation, $L(\\theta \\mid x) = \\prod_{i=1}^{n} f_1(x_i \\mid \\theta)$ and $\\ell(\\theta \\mid x) = \\sum_{i=1}^{n} \\ln f_1(x_i \\mid \\theta)$.\nThe likelihood is not a probability distribution on $\\Theta$. In general, its integral over $\\theta$ is not $1$.\nExample: for $k$ successes in $n$ Bernoulli($p$) trials, $L(p \\mid x) = p^k (1 - p)^{n - k}$ for $p \\in [0, 1]$.\nOnly ratios $L(\\theta_1 \\mid x) / L(\\theta_2 \\mid x)$ matter for inference. These ratios compare how well two parameter values explain the data.\n\n## Explanations\n\n### L1 human\n\nThe likelihood answers the question: \"If the parameter were $\\theta$, how probable would my data be?\"\nParameter values with a high likelihood explain the observed data well.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "defines": "0VW9E4QXR6",
    "kind": "definition",
    "msc": [
      "62F10"
    ],
    "name": "Likelihood function",
    "sources": [
      {
        "locator": "Definition",
        "url": "https://en.wikipedia.org/wiki/Likelihood_function"
      }
    ],
    "tag": "05FSTXM92W",
    "uses": [
      "0WF4EJP91W",
      "04YG690N5V",
      "0AJN7WHBJZ"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/05FSTXM92W/",
  "links": [
    {
      "field": "defines",
      "target": "0VW9E4QXR6"
    },
    {
      "field": "uses",
      "target": "0WF4EJP91W"
    },
    {
      "field": "uses",
      "target": "04YG690N5V"
    },
    {
      "field": "uses",
      "target": "0AJN7WHBJZ"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/05FSTXM92W.md",
  "msc": [
    "62F10"
  ],
  "name": "Likelihood function",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/05F/05FSTXM92W.md",
  "status": null,
  "tag": "05FSTXM92W",
  "uri": "m2://05FSTXM92W",
  "url": "https://math2.tamnd.com/wiki/likelihood-function-definition/",
  "writing": {
    "tag": "05FSTXM92W",
    "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
      }
    ]
  }
}
