The solution

You understand the problem and know the answer (switch doors), but why is that the answer?

Simply put, it's because Monty gives you a big hint when he opens one of the doors. You see, Monty knows where the car is, and that's key. When he opens a door he knows it will hide a goat. He'll never open a door with a car behind it. And he'll never open your door. In essence, what he's done is collapsed the probability of the car being behind the two doors you didn't choose to the one unopened door you didn't choose. So this new information improves your odds to a 2-in-3 chance of winning that sweet, sweet set of wheels, IF you switch.

Follow the 2/3 chance

Door 1 is your choice. Doors 2 and 3 share the other 2/3.

100 doors

Still not convinced? A hypothetical reframing can help make this clearer. Suppose there are 100 doors and the game operates in the same way. You pick one door. Monty opens all but one other of the unchosen doors, in each case revealing a goat. Now, do you switch or stick with your original door?

Try it with 100 doors

Pick a door.

On its face, you are now presented with the same dilemma: there are still two closed doors, one containing a goat and one containing the car. But do you still think your original choice has a 50/50 chance? In the 100-door example, your first choice gave you a 1-in-100 chance of winning the car and a 99% chance of picking a goat. Do you really think the car is behind your first selection after Monty's opened 98 other doors with goats? Sure, it’s possible, but it’s pretty unlikely (a 1% chance, to be precise).

A simple solution

This problem was made famous in 1990 in a column by Marilyn vos Savant in Parade Magazine. Her solution showed a simple table of possible outcomes to illustrate the solution and I think it's still a nice compact way of demonstrating why you should switch (though the uproar around her column suggests others didn't find it as convincing as I did)

Assume for the moment you pick door 1. The first three columns of her table showed the various possible permutations of the game: the car can be behind either door 1, door 2, or door 3. Now we either stay with our first door (column 4) or switch doors (column 5). If we stay with our original door, we've got two ways to win the goat and one way to win the car (a 1/3 chance). If we switch? You guessed it: two ways to win the car and one way to win the goat.

What happens if you stay or switch after Monty reveals a goat?
Behind door 1Behind door 2Behind door 3Result if staying at door #1Result if switching to the door offered
GoatGoatCarWins goatWins car
GoatCarGoatWins goatWins car
CarGoatGoatWins carWins goat

But that doesn't include all the options

But a lot of people didn't find that convincing, perhaps because it doesn't illustrate the key point: where Monty opens a door with a goat. So let's draw out ALL the ways the game can actually play out with a probability tree. This is actually relatively straightforward. The car can be behind 3 doors, you can choose 1 of 3 doors, and then Monty can open 1 of 2 remaining doors. So 3 x 3 x 2 = 18 branches to examine. Let's draw them all out. We start with the car location. The car can be behind any of the three doors, giving us three possible starting points (and we assume the car location is randomly determined giving each door a 1/3 probability).

Where is the car?

Next, you choose a door. For this tree, suppose you pick a door at random, independently of where the car is. Each pick thus has probability 1/3 for each car location. Three car locations times three picks gives nine scenarios.

Car location and first pick

Now, Monty has two unchosen doors from which Monty must open one. That gives 18 branches to examine. But note that there is not equal probability of Monty opening either of the two doors at this point. In the case where you choose a car to start, Monty has a choice between two doors with goats so he has a 1/2 chance of opening either. BUT, in a case where you start by choosing a goat, Monty is faced with a door with a car behind it (which he will never reveal, thus the probability of opening that door is 0%) and a single door with a goat behind it (which he must reveal and thus his probability of opening that door is 100%).

Which door does Monty open?

Now we just need to do some multiplication and addition. To find the chance of a whole path, multiply its branch probabilities. Then add the paths that win by staying and the paths that win by switching.

Winning strategy and probability of each path

When you exclude the impossible paths (the ones that can't happen because it would mean Monty revealed a car), there are indeed an equal number of paths that result in you winning if you switch and winning if you don't. But those paths aren't equally likely. You have to sum the probabilities of each of those paths. The six stay-winning paths each have probability 1/3 × 1/3 × 1/2 = 1/18. Together they give 6 × 1/18 = 1/3. The six switch-winning paths each have probability 1/3 × 1/3 × 1 = 1/9. Together they give 6 × 1/9 = 2/3. The remaining six impossible paths contribute zero.

Show it to me as math

Still not convinced? Prefer fancy formulas over pretty drawings? Well we can prove that switching is the right strategy with perhaps the most famous formula in all of probability theory: Bayes’ theorem.

P(H∣E) = P(E∣H)×P(H)P(E)

Bayes’ theorem explains how to update a probability given new information, exactly the situation we face when Monty opens a door. Here H is a hypothesis and E is the evidence. The letter P means probability, and the vertical bar means “given.”

  • P(H) is the prior, or our starting point, the probability of the hypothesis before you see the evidence.
  • P(E | H) is the likelihood. If the hypothesis is true, how often would you see this evidence?
  • P(E) is the overall probability of seeing the evidence across all possible cases.
  • P(H | E) is the posterior, or our end point, the updated probability of the hypothesis once you see the evidence.

Plug in the Monty Hall probabilities

Again, assume you pick door 1 (it could be any door). Assume Monty opens door 3 (it could be either door) and shows you a goat. That specific reveal is your evidence, E. Let H₁ mean “the car is behind door 1” and H₂ mean “the car is behind door 2.” Staying wins if H₁ is true. Switching wins if H₂ is true.

Monty’s choices after you pick door 1
Car locationChance Monty opens door 3Why?
Door 11/2Both other doors hide goats. Monty chooses between them at random.
Door 21Door 3 is the only goat door Monty can open.
Door 30Monty must keep the car hidden.

Find the denominator P(E). Remember we are assuming Monty opens door 3 and we want to know the probability that he opens door 3 P(E). If the car is behind door 1, then goats are behind door 2 and 3 and thus there is a 1/2 chance he will open door 3. If the car is behind door 2, then Monty must open door 3 so there is a 100% chance he will open that door. And if the car is behind door 3, then Monty can't open that door and there is a 0% chance of opening it. Now weight each of those probabilities by the 1/3 chance of that car location and add them together and we have our denominator.

P(E) = (1/3 × 1/2) + (1/3 × 1) + (1/3 × 0) = 1/2.

Stay with door 1. Now we're ready to solve the equation. In the case where we stay we need to know the probability P(E | H₁), that is the probability of the evidence given that our hypothesis (the car is behind door 1) is true. The first row gives P(E | H₁) = 1/2; if the car is indeed behind door 1, there is a 50-50 chance Monty will open door 3. Multiply by the prior P(H₁) = 1/3 and divide by the reveal probability.

P(H1∣E) = 12×1312 = 1612 = 13

Switch to door 2. Since probabilities must add to 100%, we could just subtract our answer above from 1 and be done. But we can solve the equation for switching too. The second row gives P(E | H₂) = 1 because Monty must open door 3. The prior P(H₂) is again 1/3, and we observed the same reveal.

P(H2∣E) = 1×1312 = 1312 = 23

Opening door 3 was twice as likely if the car was behind door 2 as it was if the car was behind door 1. That’s why this reveal—or any reveal—favors switching.

But I'm still not convinced.

In that case, perhaps you'd like to run a couple hundred (or thousands) of simulations to show empirically that switching is the better strategy. In that case, head over to the play page and try it out.