Monty Hall Problem Simulator
Compare staying and switching in the classic three-door probability puzzle with clear expected win counts and rates.
About the Monty Hall problem
Monty Hall examples
Expected outcomes demonstrate how the advantage scales with the number of games.
| Trials | Expected wins | Interpretation |
|---|---|---|
| 3 games | Stay 1; switch 2 | The smallest complete group shows the one-third versus two-thirds split. |
| 300 games | Stay 100; switch 200 | Switching produces twice as many expected wins. |
| 1,000 games | Stay 333; switch 667 | Whole-number rounding keeps all 1,000 outcomes assigned. |
| 30,000 games | Stay 10,000; switch 20,000 | Large counts preserve the same theoretical percentages. |
How to use the simulator
- Enter the number of games you want to compare, from one to one million.
- Select Run Simulation to allocate the expected outcomes between the two strategies.
- Compare the win count and win rate shown for staying with your first door.
- Compare those values with switching to the remaining closed door.
- Increase the trial count to see that the theoretical one-third and two-thirds rates remain stable.
Monty Hall FAQ
Why is switching better?
Your initial door is correct only one third of the time. Switching wins in the other two thirds of games because the informed host removes the losing alternative.
After one door opens, are the odds fifty-fifty?
No, because the host deliberately opens a goat door and never chooses randomly among all doors. That informed action preserves the original one-third probability on your door.
Can staying win?
Yes, staying wins whenever the initial selection hides the prize. That occurs about one third of the time, so switching is advantageous but not guaranteed in any single game.
What assumptions does the solution require?
The host knows the prize location, always reveals a goat, never opens your chosen door, and always offers a switch. Changing those rules can change the conditional probabilities.
Why can short runs look different?
Random samples naturally fluctuate around theoretical probabilities. With more independent games, the observed proportions generally settle closer to one third and two thirds.