Monty Hall problem: play it and simulate it
Switching wins 2 times out of 3. If that sounds wrong, you're in good company: play a few rounds, then run a hundred thousand in the simulator.
Why switching wins
Forget the host for a moment. When you first pick, you have a 1 in 3 chance of the car and a 2 in 3 chance that it's behind one of the other two doors. The host then opens one of those two, and always a goat, because he knows where the car is. He hasn't told you anything about your door; he has just shown you which of the other two to take if you want that 2 in 3.
A run of 100,000 simulated games, done when this page was built: staying won 33.3%, switching won 66.7%.
All the cases
| Car is behind | You pick | Host opens | Stay gets | Switch gets |
|---|---|---|---|---|
| Door 1 | Door 1 | Door 2 or 3 | Car | Goat |
| Door 1 | Door 2 | Door 3 | Goat | Car |
| Door 1 | Door 3 | Door 2 | Goat | Car |
The same pattern holds wherever the car is: staying wins in 1 of the 3 equally likely first picks, switching in 2.
Common questions
What is the Monty Hall problem?
You pick one of three doors; one hides a car, two hide goats. The host, who knows where the car is, opens a different door with a goat behind it and offers you a switch. Switching wins 2 times out of 3.
Why is switching better?
Your first pick is right 1 time in 3, and the host's reveal doesn't change that, because he can always open a goat door. So the other closed door holds the car the remaining 2 times in 3. Try it with 10 doors in the simulator: after you pick and the host opens 8 goat doors, switching wins 9 times in 10.
Why is it called the Monty Hall problem?
After Monty Hall, host of the TV game show Let's Make a Deal. Statistician Steve Selvin posed it in 1975, and it became famous in 1990 when Marilyn vos Savant answered it in Parade magazine and received thousands of letters, many from readers with PhDs, insisting she was wrong. She wasn't.
Does it matter that the host knows where the car is?
Yes. If the host opens a door at random and it just happens to show a goat, staying and switching each win half the time. The 2-in-3 answer depends on the host always choosing a goat door on purpose.
More games
- Daily nonogramA picture logic puzzle: fill the grid from the number clues.
- Daily code breakerCrack a 4-peg color code in 10 guesses or fewer.
- Prisoner's dilemmaTen rounds against a mystery strategy. Cooperate or betray?
- Rock paper scissorsPlay a bot that learns your habits as you go.
- NimTake sticks, take the last one, beat a bot that knows the math.