{
  "aliases": null,
  "backlinks": [
    {
      "field": "defines",
      "target": "S99HFQ9WPH"
    }
  ],
  "body": "\n## Summary\n\nA conjugate prior for a likelihood is a [[prior distribution|00NBBSXRQS]] from a family that the update by Bayes' theorem maps into itself.\nThe [[posterior distribution|0KJ7ZS8AJA]] then lies in the same family, and only its parameters change.\nThis gives closed-form posteriors, which made conjugate priors central in [[Bayesian inference|0JWRJX2RMP]] before simulation methods became common.\n\n## Explanations\n\n### L1 human\n\nA Bayesian update multiplies the prior by the likelihood.\nFor a well-chosen family of priors the product has the same shape as the prior, with new parameters.\nFor a coin with unknown chance $p$, a beta prior $\\mathrm{Beta}(a, b)$ plus $k$ heads and $m$ tails gives the posterior $\\mathrm{Beta}(a + k, b + m)$.\nSo the prior acts like $a$ earlier heads and $b$ earlier tails, and the data just add to these counts.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "62F15"
    ],
    "name": "Conjugate prior",
    "same_as": {
      "wikidata": "Q3711784",
      "wikipedia": "Conjugate prior"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Conjugate_prior"
      }
    ],
    "specializes": [
      "00NBBSXRQS"
    ],
    "tag": "EHY450Q5CW"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/EHY450Q5CW/",
  "links": [
    {
      "field": "specializes",
      "target": "00NBBSXRQS"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/EHY450Q5CW.md",
  "msc": [
    "62F15"
  ],
  "name": "Conjugate prior",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/EHY/EHY450Q5CW.md",
  "status": null,
  "tag": "EHY450Q5CW",
  "uri": "m2://EHY450Q5CW",
  "url": "https://tamnd.github.io/math2/wiki/conjugate-prior/",
  "writing": {
    "tag": "EHY450Q5CW",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
