{
 "license": "CC BY 4.0 — https://creativecommons.org/licenses/by/4.0/",
 "attribution": "Wheel Cue (wheelcue.com)",
 "source": "https://wheelcue.com/research/monty-hall-with-a-wheel/",
 "slug": "monty-hall-with-a-wheel",
 "generatedAt": "2026-10-24T13:35:15.062Z",
 "node": "v24.21.0",
 "randomJsSha256": "946e82a3c426d698779d3246c37c732f771db3873c93239ef3952aea39be1e2d",
 "totalSpins": 91928035,
 "rawDraws": 91928035,
 "checksTotal": 18,
 "checksPassed": 18,
 "runtimeSeconds": 125.1,
 "params": {
  "doors": 3,
  "gamesPerStudent": [
   10,
   20,
   30
  ],
  "classStayers": 12,
  "classSwitchers": 12,
  "moreDoors": [
   3,
   4,
   5,
   10
  ],
  "simGames": 3000000,
  "simIgnorant": 3000000,
  "simMoreDoors": 600000,
  "simPairs": 200000
 },
 "results": {
  "classic": {
   "games": 3000000,
   "stayShare": 0.33247,
   "switchShare": 0.66753,
   "condGames": 500153,
   "condCarBehind2": 0.66821
  },
  "ignorant": {
   "games": 3000000,
   "table": {
    "goatShown": {
     "stayWins": 1000219,
     "switchWins": 1000256
    },
    "carShown": {
     "stayWins": 0,
     "switchWins": 0
    }
   },
   "goatGames": 2000475,
   "carGames": 999525,
   "switchGivenGoat": 0.50001,
   "stayGivenGoat": 0.49999
  },
  "doors": [
   {
    "doors": 3,
    "games": 600000,
    "stay": 0.33329,
    "switchAllButOne": 0.66671,
    "switchOneOpened": 0.66656
   },
   {
    "doors": 4,
    "games": 600000,
    "stay": 0.24984,
    "switchAllButOne": 0.75016,
    "switchOneOpened": 0.37512
   },
   {
    "doors": 5,
    "games": 600000,
    "stay": 0.1998,
    "switchAllButOne": 0.8002,
    "switchOneOpened": 0.2666
   },
   {
    "doors": 10,
    "games": 600000,
    "stay": 0.0994,
    "switchAllButOne": 0.9006,
    "switchOneOpened": 0.11222
   }
  ],
  "students": [
   {
    "games": 10,
    "pairs": 200000,
    "switcherAhead": 0.90995,
    "tie": 0.05321,
    "stayerHalfOrMore": 0.21207,
    "switcherUnderHalf": 0.07681
   },
   {
    "games": 20,
    "pairs": 200000,
    "switcherAhead": 0.97842,
    "tie": 0.01192,
    "stayerHalfOrMore": 0.09301,
    "switcherUnderHalf": 0.03738
   },
   {
    "games": 30,
    "pairs": 200000,
    "switcherAhead": 0.99463,
    "tie": 0.00276,
    "stayerHalfOrMore": 0.04388,
    "switcherUnderHalf": 0.01871
   }
  ]
 },
 "theory": {
  "notes": [
   "Knowing host: he always opens a door with a goat that the player did not pick, at random when he has two to choose from. Staying wins when the first pick was the car, 1/3; switching wins otherwise, 2/3.",
   "Random host: he opens one of the two doors the player did not pick at random. He shows the car 1/3 of the time; when he shows a goat, staying and switching each win 1/2.",
   "n doors, host opens all but one other door: switching wins (n-1)/n. Host opens one goat door and the player switches to one of the other n-2 closed doors at random: switching wins (n-1)/(n(n-2)), against 1/n for staying.",
   "Students: a stayer wins Binomial(N, 1/3) games, a switcher Binomial(N, 2/3); the two are independent."
  ],
  "classic": {
   "stay": 0.3333333333333333,
   "switch": 0.6666666666666666
  },
  "ignorant": {
   "pCarShown": 0.3333333333333333,
   "stayGivenGoat": 0.5,
   "switchGivenGoat": 0.5,
   "pStayWinsAndGoat": 0.3333333333333333,
   "pSwitchWinsAndGoat": 0.3333333333333333
  },
  "doors": [
   {
    "doors": 3,
    "stay": 0.333333,
    "switchAllButOne": 0.666667,
    "switchOneOpened": 0.666667
   },
   {
    "doors": 4,
    "stay": 0.25,
    "switchAllButOne": 0.75,
    "switchOneOpened": 0.375
   },
   {
    "doors": 5,
    "stay": 0.2,
    "switchAllButOne": 0.8,
    "switchOneOpened": 0.266667
   },
   {
    "doors": 10,
    "stay": 0.1,
    "switchAllButOne": 0.9,
    "switchOneOpened": 0.1125
   }
  ],
  "students": [
   {
    "games": 10,
    "stayerHalfOrMore": 0.213128,
    "switcherUnderHalf": 0.076564,
    "switcherAhead": 0.908104,
    "tie": 0.054259,
    "stayerAhead": 0.037637,
    "display": {
     "stayerHalfOrMore": "21.3%",
     "switcherUnderHalf": "7.7%",
     "switcherAhead": "90.8%",
     "tie": "5.4%",
     "stayerAhead": "3.8%"
    }
   },
   {
    "games": 20,
    "stayerHalfOrMore": 0.091896,
    "switcherUnderHalf": 0.037637,
    "switcherAhead": 0.978559,
    "tie": 0.011889,
    "stayerAhead": 0.009552,
    "display": {
     "stayerHalfOrMore": "9.2%",
     "switcherUnderHalf": "3.8%",
     "switcherAhead": "97.9%",
     "tie": "1.2%",
     "stayerAhead": "1.0%"
    }
   },
   {
    "games": 30,
    "stayerHalfOrMore": 0.043482,
    "switcherUnderHalf": 0.018795,
    "switcherAhead": 0.994447,
    "tie": 0.002996,
    "stayerAhead": 0.002557,
    "display": {
     "stayerHalfOrMore": "4.3%",
     "switcherUnderHalf": "1.9%",
     "switcherAhead": "99.4%",
     "tie": "0.3%",
     "stayerAhead": "0.3%"
    }
   }
  ],
  "classView": {
   "stayers": 12,
   "switchers": 12,
   "games": 10,
   "expectedStayersHalfOrMore": 2.5575,
   "expectedSwitchersUnderHalf": 0.9188,
   "pSomeStayerHalfOrMore": 0.943656,
   "pooledStayGames": 120,
   "pooledSwitchGames": 120,
   "pPooledSwitchAhead": 0.99999993,
   "display": {
    "pSomeStayerHalfOrMore": "94.4%",
    "pPooledSwitchAhead": ">99.99%"
   }
  }
 },
 "checks": [
  {
   "name": "classic: staying wins",
   "kind": "simulated vs exact",
   "simulated": 0.33247,
   "exact": 0.33333,
   "se": 0.000272,
   "z": -3.19,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "classic: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.66753,
   "exact": 0.66667,
   "se": 0.000272,
   "z": 3.19,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "classic: host's choice when the player picked the car (lower door)",
   "kind": "simulated vs exact",
   "simulated": 0.49988,
   "exact": 0.5,
   "se": 0.000501,
   "z": -0.25,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "classic: car behind door 2, given pick 1 and door 3 opened",
   "kind": "simulated vs exact",
   "simulated": 0.66821,
   "exact": 0.66667,
   "se": 0.000667,
   "z": 2.32,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "random host: shows the car",
   "kind": "simulated vs exact",
   "simulated": 0.33317,
   "exact": 0.33333,
   "se": 0.000272,
   "z": -0.58,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "random host: switching wins, given a goat was shown",
   "kind": "simulated vs exact",
   "simulated": 0.50001,
   "exact": 0.5,
   "se": 0.000354,
   "z": 0.03,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "4 doors, host opens all but one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.75016,
   "exact": 0.75,
   "se": 0.000559,
   "z": 0.29,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "4 doors, host opens one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.37512,
   "exact": 0.375,
   "se": 0.000625,
   "z": 0.19,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "5 doors, host opens all but one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.8002,
   "exact": 0.8,
   "se": 0.000516,
   "z": 0.39,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "5 doors, host opens one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.2666,
   "exact": 0.26667,
   "se": 0.000571,
   "z": -0.12,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "10 doors, host opens all but one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.9006,
   "exact": 0.9,
   "se": 0.000387,
   "z": 1.55,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "10 doors, host opens one: switching wins",
   "kind": "simulated vs exact",
   "simulated": 0.11222,
   "exact": 0.1125,
   "se": 0.000408,
   "z": -0.68,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "10 games each: switcher ahead of stayer",
   "kind": "simulated vs exact",
   "simulated": 0.90995,
   "exact": 0.9081,
   "se": 0.000646,
   "z": 2.86,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "10 games: stayer wins half or more",
   "kind": "simulated vs exact",
   "simulated": 0.21207,
   "exact": 0.21313,
   "se": 0.000916,
   "z": -1.16,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "20 games each: switcher ahead of stayer",
   "kind": "simulated vs exact",
   "simulated": 0.97842,
   "exact": 0.97856,
   "se": 0.000324,
   "z": -0.41,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "20 games: stayer wins half or more",
   "kind": "simulated vs exact",
   "simulated": 0.09301,
   "exact": 0.0919,
   "se": 0.000646,
   "z": 1.72,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "30 games each: switcher ahead of stayer",
   "kind": "simulated vs exact",
   "simulated": 0.99463,
   "exact": 0.99445,
   "se": 0.000166,
   "z": 1.1,
   "tolerance": "4 standard errors",
   "pass": true
  },
  {
   "name": "30 games: stayer wins half or more",
   "kind": "simulated vs exact",
   "simulated": 0.04388,
   "exact": 0.04348,
   "se": 0.000456,
   "z": 0.87,
   "tolerance": "4 standard errors",
   "pass": true
  }
 ],
 "notes": [
  "All games are simulated with Wheel Cue's random.js; none come from people using the site.",
  "Each game draws the car's door, the player's door and the host's choice, as a teacher with a wheel would; totalSpins counts every draw."
 ]
}
