Monty Hall

Suppose you’re on a game show, and you’re given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, Monty Hall, who knows what’s behind the doors, opens another door, say No. 3, and reveals a goat. He then says to you, “Do you want to pick door No. 2?” Is it to your advantage to switch your choice?

The Monty Hall problem is described in more detail on wikipedia

The task you have is to write a simulation to demonstrate which strategy is best - should you switch your choice of door, or retaining your original door choice? Simulate 1000 games with each strategy and show which one is most likely to see you drive home in a new car.

Referenced in these Learning Hours: