# A Monty Hall Probability Simulation

There are three doors. And hidden behind them are two goats and a car. Your objective is to win the car. Hereâ€™s what you do:

- Pick a door.
- The host opens one of the doors you didnâ€™t pick that has a goat behind it.
- Now there are just two doors to choose from.
- Do you stay with your original choice or switch to the other door?

- Whatâ€™s the probability you get the car if you stay?
- Whatâ€™s the probability you get the car if you switch?

Itâ€™s not a 50/50 choice. I wonâ€™t digress into the math behind it, but instead let you play with the simulator below. The game will tally up how many times you win and lose based on your choice.

Whatâ€™s going on here? Marilyn vos Savant wrote the solution to this game in 1990. You can read vos Savantâ€™s explanations and some of the ignorant responses. But in short, because the door thatâ€™s opened is not opened randomly, the host gives you additional information about the set of doors you didnâ€™t choose. Effectively, if you switch, you are select all the other doors. If you choose to stay, you are select just one door.

In her answer, she suggests:

Hereâ€™s a good way to visualize what happened. Suppose there are a million doors, and you pick door #1. Then the host, who knows whatâ€™s behind the doors and will always avoid the one with the prize, opens them all except door #777,777. Youâ€™d switch to that door pretty fast, wouldnâ€™t you?

To illustrate that in the simulation, you can increase number of number of doors in the simulator. It becomes pretty clear that switch is the correct choice.

Finally, hereâ€™s some Kevin Spacey: