Monty Hall Problem

There’s one old very nice mind crashing puzzle that I really like: Monty Hall Problem. It is amazing because of how counterintuitive the answer is. You won’t just believe it’s true until you triple-check it, read the proof and even after that you will likely keep thinking that there should be a catch somewhere. So here is the problem as quoted from Wikipedia:

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, who knows what’s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, “Do you want to pick door No. 2?” Is it to your advantage to switch your choice?

So is it better to switch your choice, to stick with your first one or it doesn’t matter? If you are like me and majority of other people the most intuitive answer will be: switching a door won’t make a difference and the chance of winning is still the same. Right?

The truth is switching will give you 2/3 chance of winning while sticking with your choice is only 1/3 chance. Why? When you are picking one of 3 doors your chance to get a car is 1/3, while your chance to get a goat is 2/3. The chance that a car behind one of the 2 doors you didn’t chose is also 2/3. When one of the 2 doors is opened for you and you know there’s a goat so you won’t pick it, the chance that the car is behind the last door is still 2/3. Still doesn’t sounds right? Let’s run a programming experiment and generate 1000 choices for every scenario.

Yup. Switching is winning. Isn’t it amazing?