{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "A02K3MKQ3Q"
    },
    {
      "field": "defines",
      "target": "MECCMT61DV"
    },
    {
      "field": "specializes",
      "target": "MKHF449E22"
    }
  ],
  "body": "\n## Summary\n\nMarkov chain Monte Carlo (MCMC) is a family of methods to sample from a probability distribution $\\pi$.\nThey run a [[Markov chain|0G48PYM96Q]] whose [[stationary distribution|0KRH5157WP]] is $\\pi$.\nAverages of a function along the path of the chain then estimate the expectation of that function under $\\pi$.\nMCMC works even when $\\pi$ is known only up to a normalising constant, which makes it a basic tool of Bayesian statistics and statistical physics.\nThe [[Metropolis–Hastings algorithm|MKHF449E22]] and the Gibbs sampler are the main examples.\n\n## Explanations\n\n### L1 human\n\nSome distributions are too complicated to sample from directly, for example the law of all configurations of a large magnet.\nMCMC instead designs a random walk on the configurations that, in the long run, visits each one with the right frequency.\nOne lets the walk run, records what it sees, and averages.\nThe price is that successive samples are dependent, so more of them are needed than with independent draws.\n",
  "commit": "5fc425f97f1f6b11da5892c2948ef8c5d8805665",
  "front": {
    "kind": "concept",
    "msc": [
      "65C05",
      "60J22",
      "65C40"
    ],
    "name": "Markov chain Monte Carlo",
    "same_as": {
      "wikidata": "Q1191869",
      "wikipedia": "Markov chain Monte Carlo"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Markov_chain_Monte_Carlo"
      }
    ],
    "tag": "ZGNBR2SPZ0"
  },
  "kind": "concept",
  "link": "https://math2.tamnd.com/node/ZGNBR2SPZ0/",
  "links": null,
  "markdown": "https://math2.tamnd.com/node/ZGNBR2SPZ0.md",
  "msc": [
    "65C05",
    "60J22",
    "65C40"
  ],
  "name": "Markov chain Monte Carlo",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/ZGN/ZGNBR2SPZ0.md",
  "status": null,
  "tag": "ZGNBR2SPZ0",
  "uri": "m2://ZGNBR2SPZ0",
  "url": "https://math2.tamnd.com/wiki/markov-chain-monte-carlo/",
  "writing": {
    "tag": "ZGNBR2SPZ0",
    "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
      }
    ]
  }
}
