The Monty Hall problem is a famous probability puzzle based on a game show scenario:
The question is: Should you switch doors or stay with your original choice?
This simulation demonstrates that switching doors gives you a 2/3 (66.7%) chance of winning, while staying with your original choice gives only a 1/3 (33.3%) chance. The left column shows what happens when you always switch doors, and the right column shows what happens when you always stay with your original choice. Run the simulation with different sample sizes to see how the probabilities converge to their theoretical values.
Total runs: 0