Suppose you're on a game show, and you're given the choice of three doors: , , and . Behind one door is a car; behind the others, goats. You pick a door, say , and the host, who knows what's behind the doors, opens another door, say , which has a goat. He then says to you, "Do you want to pick door ?" Is it to your advantage to switch your choice?
We'll go through three different explanations for the solution. I've found that different explanations will "click" with different people depending on their background and way of thinking. The first two will be mathematically rigorous and the last will be more informal but useful for building an intuition for why the math works out the way that it does.
Explanation #1
Conditional probability
What is the probability that the host would choose that door to open?
- If the car is in box then he could open either or to reveal a goat. The probability is .
- If the car were in box there's no way he would open . The probability is .
- If the car is in box then Monty would definitely open box to reveal a goat. The probability is .
So what's the probability that the prize is in box given that he opened ?
Luckily, we have a way of calculating a probability based on prior knowledge. That is, the probability of an event happening given the fact that another event has already happened:
ℹ️ Bayes' Theorem
But wait, where did that come from?
💡 It can be derived from the conditional probability that tells us in how many cases do both events and happen out of the cases where happens:
Similarly,
which means
and substituting in the expression for conditional probability yields Bayes' Theorem:
So the probability that the car is in box
given that he opened
is:
There are three possibilities for the denominator :
so we'll add them up and plug them into our formula:
giving us a probability that the car is in the other box and therefore you should switch.
Explanation #2
Odds
There is another way to see Bayes' Theorem: As a way to understand two competing hypotheses and . We start by having some prior belief about the odds of those two. After observing some data, what are the new odds of the two hypotheses given the new data? In other words, how do we update our belief based on new evidence?
ℹ️
Let's start by specifying what we mean by odds. We mean how large is one probability relative to the other. Let's put it as a ratio. For example, if prior to seeing any data one hypothesis has probability of being true and the other has :Meaning the odds of to are to .
So how do we incorporate the new data into our belief?
💡 By calculating the new probability of each hypothesis given the new data.
Now we'll use a mathematical trick of multiplying and dividing by the same number to get the same value but expressed in terms of the probability of seeing the observed data given each hypothesis.
So,
And so we have that as a ratio, the posterior odds equal the prior odds times the probabilities of generating the new data.
Now let's apply this to the Monty Hall Problem. Let
Your door has the prize
Your door has a goat
The host reveals a goat
Meaning is twice as likely as given the new data and therefore you should switch. If you want to convert that to probabilities:
This is also a nice way to see that the new data did not change the odds. You had a chance of getting the prize before the reveal and still do after the reveal if you keep your choice.
Explanation #3
An intuition
The explanations above using Bayes' Theorem are not the only way to look at this problem, though. You can arrive at the same result by realizing that the door you chose has a probability of containing the prize. That means there’s a probability that the prize is somewhere else. Then the game’s host makes it easy for you by turning the “somewhere else” into a single door.
In fact, you can generalize it like this: for a game with doors, choosing one gives you a chance of winning. That means chance that the prize is somewhere else. When the host knowingly eliminates doors with goats by opening them, they leave only one door you could switch to with, as we established, a probability of of containing the prize. Do this mental exercise with 100 doors or a billion doors and it'll become clear.
Still not convinced? You could just play the game yourself with 3 doors and keep track of how many times you win by switching. The more you play the closer and closer you'll get to winning of the time when you switch.