{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "4PPT08K2M1"
    },
    {
      "field": "uses",
      "target": "B4FA03XDVW"
    },
    {
      "field": "uses",
      "target": "DAR3QJ5H7Y"
    },
    {
      "field": "uses",
      "target": "M2JF5D7DP2"
    },
    {
      "field": "about",
      "target": "B4FA03XDVW"
    },
    {
      "field": "about",
      "target": "DAR3QJ5H7Y"
    },
    {
      "field": "defines",
      "target": "W4MT7K2QTF"
    }
  ],
  "body": "\n## Summary\n\nA Monte Carlo method computes a deterministic quantity approximately by drawing random samples.\nIn its basic form the quantity is the [[expected value|0WQNRCNY3M]] of a [[random variable|0PNRKMRC55]].\nIt is estimated by the average of many independent copies.\nThe [[law of large numbers|0ZVEAYVRC3]] makes the estimate converge.\nThe [[central limit theorem|0EPZC4Z1FC]] shows that the error decreases like $1/\\sqrt{n}$ for $n$ samples, whatever the dimension.\nThis makes Monte Carlo methods the tool of choice for integrals in high dimension and for complex stochastic models.\n\n## Explanations\n\n### L1 human\n\nTo estimate the area of a pond, throw many stones at random into a square field around it and count the fraction that land in the water.\nThat fraction times the area of the field is close to the area of the pond, and closer when more stones are thrown.\nThis is a Monte Carlo method: a number that has nothing random about it is found by repeated random experiments.\nFor example, if $10\\,000$ random points in the unit square give $7\\,850$ points with $x^2 + y^2 \\le 1$, the estimate of $\\pi/4$ is $0.785$, so $\\pi \\approx 3.14$.\nThe price is slow accuracy: to gain one more decimal digit one needs about a hundred times more samples.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "65C05",
      "11K45"
    ],
    "name": "Monte Carlo method",
    "same_as": {
      "wikidata": "Q232207",
      "wikipedia": "Monte Carlo method"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Monte_Carlo_method"
      }
    ],
    "tag": "HWP11G3HTN"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/HWP11G3HTN/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/HWP11G3HTN.md",
  "msc": [
    "65C05",
    "11K45"
  ],
  "name": "Monte Carlo method",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/HWP/HWP11G3HTN.md",
  "status": null,
  "tag": "HWP11G3HTN",
  "uri": "m2://HWP11G3HTN",
  "url": "https://tamnd.github.io/math2/wiki/monte-carlo-method/",
  "writing": {
    "tag": "HWP11G3HTN",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
