The Monty Hall problem comes from a TV game show, “Lets’ Make A Deal,” hosted by Monty Hall. A contestant is shown three doors, and will win whatever is behind the door the contestant chooses. Behind one door is a car, behind the other two doors are goats. The contestant chooses a door. Monty Hall then opens another door, which he knows is hiding a goat. The contestant then has the option of staying with his original choice, or switching to the one remaining unopen door. Should the contestant switch? Our assignment is to create a simulator for the Monty Hall problem.
The program should:
* Repeat 1000 times:
*Repeat the above 1000 times again, but this time have the contestant switch to the remaining door.
* Present your results. Should the contestant switch?
Note: The answer is counterintuitive. For an explanation and analysis, you can check here: http://montyhallproblem.com/