{
  "aliases": [
    "bayesian-statistics",
    "bayesian-updating"
  ],
  "backlinks": null,
  "body": "\n## Summary\n\nBayesian inference is a method of statistical inference that treats an unknown parameter $\\theta$ as a random variable. It uses [[Bayes' theorem|0NM6E9VW04]] to update a probability distribution for $\\theta$ when data arrive.\nOne starts from a [[prior distribution|00NBBSXRQS]] with density $\\pi(\\theta)$ and a model with [[likelihood|05FSTXM92W]] $L(\\theta \\mid x) = f(x \\mid \\theta)$. The [[posterior distribution|0KJ7ZS8AJA]] has the density\n$$\\pi(\\theta \\mid x) = \\frac{f(x \\mid \\theta)\\, \\pi(\\theta)}{\\int_\\Theta f(x \\mid \\theta')\\, \\pi(\\theta')\\, d\\theta'}.$$\n\n## Remarks\n\nIn short, the posterior is proportional to the likelihood times the prior.\nExample: with a $\\operatorname{Beta}(a, b)$ prior for the success probability $p$, and $k$ successes in $n$ Bernoulli($p$) trials, the posterior is $\\operatorname{Beta}(a + k, b + n - k)$ (see [[beta distribution|0PP5ZAJPP7]]). The prior is conjugate.\nThe posterior gives point estimates, such as the posterior mean, and credible intervals.\nFor new observations, the posterior predictive distribution is $f(\\tilde{x} \\mid x) = \\int_\\Theta f(\\tilde{x} \\mid \\theta)\\, \\pi(\\theta \\mid x)\\, d\\theta$, if $\\tilde{x}$ and $x$ are conditionally independent given $\\theta$.\n\n## Explanations\n\n### L1 human\n\nBayesian inference starts with a belief about an unknown quantity, written as a probability distribution.\nEach new piece of data updates this belief with Bayes' theorem. The result, the posterior, combines the prior belief with the evidence.\n",
  "commit": "545acf83a9b75c8ddc375ef8b23d2ae101a4d7e4",
  "front": {
    "aliases": [
      "bayesian-statistics",
      "bayesian-updating"
    ],
    "kind": "concept",
    "msc": [
      "62F15"
    ],
    "name": "Bayesian inference",
    "same_as": {
      "wikidata": "Q812535",
      "wikipedia": "Bayesian inference"
    },
    "sources": [
      {
        "locator": "Formal description",
        "url": "https://en.wikipedia.org/wiki/Bayesian_inference"
      },
      {
        "locator": "Conjugate priors",
        "url": "https://en.wikipedia.org/wiki/Bayesian_inference"
      }
    ],
    "tag": "0JWRJX2RMP",
    "uses": [
      "0NM6E9VW04",
      "00NBBSXRQS",
      "0KJ7ZS8AJA",
      "05FSTXM92W",
      "0PP5ZAJPP7"
    ]
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/0JWRJX2RMP/",
  "links": [
    {
      "field": "uses",
      "target": "0NM6E9VW04"
    },
    {
      "field": "uses",
      "target": "00NBBSXRQS"
    },
    {
      "field": "uses",
      "target": "0KJ7ZS8AJA"
    },
    {
      "field": "uses",
      "target": "05FSTXM92W"
    },
    {
      "field": "uses",
      "target": "0PP5ZAJPP7"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0JWRJX2RMP.md",
  "msc": [
    "62F15"
  ],
  "name": "Bayesian inference",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0JW/0JWRJX2RMP.md",
  "status": null,
  "tag": "0JWRJX2RMP",
  "uri": "m2://0JWRJX2RMP",
  "url": "https://math2.tamnd.com/wiki/bayesian-inference/",
  "writing": {
    "tag": "0JWRJX2RMP",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
