# Monty Hall Problem with Five Doors

My math class went over the original Monty Hall problem a few days ago, then looked at a related question where the number of doors was increased to five. There was a struggle to figure out what the answer to the problem is, and after coming back to it a few more times we're still a bit unclear.

In this extended problem, let's say you pick door A out of doors A, B, C, D and E. The host then opens one of the other doors to show it's empty and gives you the choice to stay or switch to one of the other remaining doors. a) If you always stay with the door you picked, what is the probability of winning? b) If you always switch to another door, what is the probability of winning?

Note that the host will open only one door. All the extended Monty Hall problems I found online had the host open all but one, so they weren't really helpful with this particular problem my class is working on.

I calculated that the chances are 1/4 regardless of whether you switch or not since the host opening only one empty door is not enough to truly affect the difference in win rates between staying and switching. Is that right?

EDIT: Sorry about the confusion for me not being clear enough. The problem I bring is indeed ising the same basic principles as the original: the host will always open a door after you choose one to show it is empty, and then you are given the choice. The reason why I got to 1/4 is because I was looking at the situation by figuring out how many ways can you win/lose depending on where the prize is after the host opens an empty door as well as which door you switched to, which gave me 3/12 for every switch or 1/4 (or by putting it all together i got 12/48). We didn't get far enough into the lessons to learn more about calculating probability with conditions so I apologize if that was what led to me a false calculation. Thanks for the answers, everyone!

• In principle, it cannot be right. As in the original problem, the host is constrained in their choice; opening a door does give information. So the probability of winning with a change must be higher. Nov 21, 2014 at 17:13
• And how did you get $1/4$? Shouldn't it be $1/5$ if you don't change? Nov 21, 2014 at 17:15
• "not enough to truly affect the difference" - why not? It seems like you're arguing that the amount of information you receive is small enough that you can neglect it in your analysis, but we're not working with any sort of measurement error or approximation here. Also, the amount of information the door-opening gives you is actually quite substantial. Nov 21, 2014 at 17:19
• "The host then opens one of the other doors to show it's empty and gives you the choice" When stating the Monty Hall problem, please always say that the host is always obliged to do this, no matter what you picked. The problem is very often given in a way which allows me to interpret that the host has the choice not to allow you to switch (turning this into a simple game theory problem if you assume the host hates you). Yes, this is a pet peeve of mine, and I will remove this comment if the community decides I'm insane.
– JiK
Nov 21, 2014 at 22:51
• There is already an accepted answer, but I couldn't resist adding this tidbit. There is a strategy of play in the game of contract bridge that depends on the "principle of restricted choice", applied in certain situations. The principle of restricted choice is like the Monty Hall problem with up to 13 doors. 13 is the number of cards dealt out to each hand. Nov 22, 2014 at 13:04

You have five doors, and you choose one. You already know you had $\frac{1}{5}$ chance of being right. Now the presenter must open one of the other doors that he/she knows is empty. That means the probability that the one of the three doors left is a winner is $\frac{4}{5}$, while the probability that the door you've chosen is correct is still $\frac{1}{5}$.

So if you stick with your first choice, you have a $\frac{1}{5}$ chance of winning. Now, if you decide to change to one of the other three doors, you know that you'll have a $\frac{4}{5}$ chance of winning (meaning if you were allowed to say "I choose this group of three doors" but not specify any single one, you would win $4$ out of $5$ times).

But you still only get to pick ONE door, and you have $3$ to choose from, so if you are going to choose to pick from the remaining $3$ doors, which together have $\frac{4}{5}$ chance of winning, you'll have a $\frac{1}{3}$ chance of being right from the selection of these three (since it is equally likely that you'll choose any of these three).

But put all together, that means you have a $\frac{4}{5} \cdot \frac{1}{3} = \frac{4}{15}$ chance of winning by switching to ONE door from the remaining $3$.

Here is a picture:

The computation is straightforward, though it is easy to get tangled up.

The chance of having chosen the correct door was one fifth when you chose it. The host's action would have been possible whether or not you have chosen the correct one. The probablity remains one fifth if you stick.

The probability that the prize is behind one of the other doors is therefore four fifths. There are three indistinguishable possibilities, each of which is correct with probability four fifteenths. The probability if you change is four fifteenths.

I assume there is only one prize behind the doors. The probability that your originally picked door ($A$, say) is the winner is $\frac15$ and this does not change because the host really does not give you any informationm about that door. He does give you information about the other doors, though. If he open $B$, clearly the probability of $B$ being the winner door is $0$. And (unless there is some known bias in the host's choices) the remaining doors $C,D,E$ have equal winning probabilities $p$. From $\frac15+0+p+p+p=1$, you can compute $p=\frac4{15}>\frac15$.

You mentioned,

All the extended Monty Hall problems I found online had the host open all but one, so they weren't really helpful with this particular problem my class is working on.

The reason all the online Monty Hall problems have the host opening all but one is to convince you that, indeed, you get new information about where the prize is based on the host's door. If you have a hundred doors to choose from, you pick one, and then the host opens 98 of the others, do you now have a 50% chance? No, you have a 1% chance, and 99% the prize is behind the other door. Always change the door.

What if the host only opens 97 of the others? Do you now have a 1/3 chance? No, you still have a 1% chance. 99% of the time, the prize is still behind one of the other two doors, so now each of the other doors has something like a 49% chance of having the prize. You switch.

The fewer doors the host opens, the lesser the chances of getting the prize when you switch, but they're always higher than the chance of getting the prize when you don't switch. Even if the host only opens one door, that still elevates the chances of the other doors. You should always switch.

• I like this explanation. +1 Nov 22, 2014 at 7:36

$1/4$ can't be right, because if you arrive at the game with a fixed determination never to switch, you will win exactly when the door you picked first has the prize, which (assuming the prize is randomly placed in the first place) happens with probability $1/5$.

It would be absurd if it increased your chances of winning simply that the game host opens another door first and gives you an option that you don't take. If that actually changed your chances of success, then how if the host opened another door and didn't give you an option to switch? Since you wouldn't switch either way, whether you're given the chance or not should not change the success probability.

The chance of pointing to the correct door was $1/5$ before the opening of a different door, and must still be $1/5$ afterwards. The chance of the prize being behind one of the other doors is the complement of this, that is, $4/5$, and by symmetry it must be a third of this per door, so $4/15$.

• I don't believe this argument is right, since it seems to suggest that nothing Monty could ever do involving the other doors could possibly give you information about whether your initial guess was right. What if Monty opened the door with the prize and then asked if you wanted to switch? Or if he opened all of the other doors revealing no prize? In neither case would the probability of winning by sticking remain 1/5. The point of the Monty Hall problem is that if Monty always opens one of the unchosen doors not containing the prize at random, ... Nov 22, 2014 at 11:24
• ... then you do not get any information about your original selection. But there are small modification of Monty's behavior such that you do gain information. Here's one: suppose that Monty always opens the leftmost unchosen door not containing the prize. Say the doors are labelled A, B, C, D, E from left to right and you pick door A. If Monty responds by opening door B, then your chances of winning by sticking with your original door have increased from 1/5 to 1/4. Nov 22, 2014 at 11:25
• @WillOrrick: The analysis assumes that the rules state that the host must open exactly one door which does not have the prize, and then give an option to switch. If this is not a fixed rule, the entire analysis breaks down, and the probabilities can be just about anything depending on the host's motives and strategy. Nov 22, 2014 at 14:25
• Comments are not for extended discussion; this conversation has been moved to chat. Nov 26, 2014 at 12:41

I think that the problem is ill-defined as it stands. The answer to the second question (i.e., the probability of winning upon switching) depends on (1) what door-opening policy the host uses; and (2) what switching policy the player uses.

If one implicitly assumes that the player selects randomly with equal probability of $1/3$ from the three other unopened doors upon considering switching, then the probability of winning is $4/15$, indeed, as other answerers pointed out. This can be seen to be true irrespective of how the host selects which door to open.

However, consider the following scenario. Without loss of generality, suppose that the player chooses door $A$. The host uses the following door-opening policy:

• If the prize is in $B$, open door $C$.
• If the prize is in $A$, $C$, $D$, or $E$, open door $B$.

The player uses the following switching policy:

• If $B$ is opened by the host, switch from $A$ to $C$;
• If any other door is opened by the host, switch from $A$ to $B$.

Given the host's door-opening policy, there are five relevant states of the world, each occurring with probability $1/5$:

• The prize is in $A$, the host opened $B$.
• The prize is in $B$, the host opened $C$.
• The prize is in $C$, the host opened $B$.
• The prize is in $D$, the host opened $B$.
• The prize is in $E$, the host opened $B$.

Upon using the switching policy specified above, the player wins the prize upon switching in the second and the third of the five states. Hence, the probability of winning upon switching is $2/5>4/15$.

Therefore, the answer depends on how the host chooses which door to open and how the player selects which unopened door to switch to! This is because the player can infer some extra information from the particular door-opening policy the host uses. In the example above, if the player knows the policy the host uses, then she can be sure that the prize is behind door $B$ upon observing door $C$ having been opened! This extra information improves the player's chance of winning the prize upon switching.

Note that this complication does not arise in the basic Monty Hall problem with only three doors. If the player selects $A$ (again, with no loss of generality), then the host has a choice of which door to open only if the prize is in $A$. This is immaterial, though, since in this case the player surely loses upon switching. Hence, if the prize is in $A$ (probability $1/3$), then the player loses if she switches (irrespective of which other door the host opens) and if the prize is in either $B$ or $C$ (probability $2/3$), then the player surely wins if she switches (since the host is constrained to leave the winning door unopened).

Accordingly, any extra information that may be contained in the host's door-opening policy is useless for the player considering which door to switch to (conditional on having decided on switching). If the prize is behind $A$, then she won't win anyway upon switching, and no extra information can help this. If the prize is behind $B$ or $C$, on the other hand, then she will win even if the host's door-opening policy doesn't surreptitiously reveal any extra information.

With five doors, however, the specific details of how non-winning doors are opened by the host and how unopened doors are selected by the player do matter!

In fact, if the host really likes the player, he can make sure she wins with probability $4/5$ upon switching! To see this, suppose the host uses the following policy (again, wlog, assume that the player has chosen $A$):

• If the prize is in $A$ or $B$, open $C$.
• If the prize is in $C$, open $D$.
• If the prize is in $D$, open $E$.
• If the prize is in $E$, open $B$.

You can easily check that the player will win with probability $4/5$ if she uses the following policy:

• If $B$ is opened, switch to $E$.
• If $C$ is opened, switch to $B$.
• If $D$ is opened, switch to $C$.
• If $E$ is opened, switch to $D$.

This is because if the player knows the host's policy, then the host is basically “telling” the player where the prize is, as long as it is not in $A$.

• This was exactly my problem when I tried to write down a formal solution. I could do it when I assumed everything is random, but it broke down when I dropped the assumptions! +1 Nov 22, 2014 at 10:49
• @user2345215 I'm glad I'm not alone with my concern. The Monty Hall problem is notorious for making people insist on a wrong answer and vehemently defend it even against the correct answer. I've been worried that my answer may fall into the former category... Nov 22, 2014 at 11:02
• It is true that the usual analysis assumes that the host chooses between the available doors randomly (and uniformly), or at least that the player has no knowledge of his strategy. If the host colludes with the player to convey information in his choices the usual conclusion doesn't hold. Nov 22, 2014 at 14:29
• @triple: Suppose, with three doors, we know that the host always opens the lowest-numbered door the standard rules allow him to. Then, if the player chooses door 1 and the host opens door 3, the probabilities will be 0% for staying and 100% for switching. But if the player chooses door 1 and the host opens door 2, the chances will be 50-50. Nov 23, 2014 at 1:23
• @HenningMakholm That's correct, but doesn't contradict that the ex-ante probability of winning upon switching is $2/3$. In your example, (1) if the prize is in $A$ or $C$, the host opens $B$; (2) if the prize is in $B$, then the host opens $C$. Let $oX$ denote the event that the host opens door $X$ and let $S$ denote the event that the player wins upon switching. You correctly claim that $\mathbb P(S|oB)=1/2$ and $\mathbb P(S|oC)=1$. Then, $\mathbb P(S)=\mathbb P(S|oB)\mathbb P(oB)+\mathbb P(S|oC)\mathbb P(oC)=1/2\times2/3+1\times1/3=2/3$. Nov 23, 2014 at 6:26

The standard assumptions are:

1. the prize is equally likely to be behind any door;
2. Monte never opens the door you chose;
3. Monte never opens the door with the prize;
4. Monte chooses randomly among the remaining available doors.

Let's say that you chose door A and Monte opens door B. We wish to compute $$\Pr[\text{prize behind door A}\mid\text{Monty opens door B}].$$ Using the assumptions, we solve using a probability tree. Stage 1 of the tree will represent the actual position of the prize, with three options: door A, door B, or one of doors C, D, E.

Stage 2 of the tree will represent Monte's action, with two options: Monty opens door B or Monty opens one of Doors C, D, E. If the prize is behind A, Monty opens door B with probability 1/4 and one of C, D, E with probability 3/4. If the prize is behind door B, Monty opens door B with probability 0 and one of C, D, E with probability 1. If the prize is behind one of C, D, E, Monty opens door B with probability 1/3 and one of C, D, E with probability 2/3.

Using Bayes' formula, we obtain $$\Pr[\text{prize behind door A}\mid\text{Monty opens door B}]=\frac{\frac{1}{5}\cdot\frac{1}{4}}{\frac{1}{5}\cdot\frac{1}{4}+\frac{1}{5}\cdot0+\frac{3}{5}\cdot\frac{1}{3}}=\frac{1}{5}.$$

Because there was a complaint about lack of a mathematical treatment, and because this problem comes down to the same mathematical principles that most extended Monty Hall problems do, here's a generalized treatment.

The general setup is, there are $n$ doors, and there is a valuable prize behind exactly one door (the "prize door"), whose identity is not known to you. Initially, you choose one door. With some non-zero probability $p$ (which is independent of whether you chose the door with the prize initially), the host will then open $m$ doors, $m \leq n - 2,$ where neither your initially chosen door nor the prize door (if it is different) can be one of the $m$ doors.

For standard Monty Hall, $n=3,$ $p=1,$ and $m=1.$ For your variant, $n=5,$ $p=1,$ and $m=1.$

The key point to remember is that the host's action is independent of whether you initially chose the prize door. That is, if $A$ is the event that your first choice is the prize door, and $B$ is the event that the host then opens $m$ doors (not including yours, and not including the prize door), then $$P(B|A) = P(B|A^\complement) = P(B) = p.$$

Now let's say you are playing the game and the host has just opened the $m$ doors, that is, you have just observed event $B.$ We ask, what is now the probability of $A$ (that is, the probability that the car is behind the door you initially chose), given that we have observed $B$? That is, what is $P(A|B)$? By applying Bayes' Theorem, we find that $$P(A|B) = \frac{P(B|A)P(A)}{P(B)} = P(A),$$ since $\frac{P(B|A)}{P(B)} = 1.$ That is, the probability that you have already chosen the prize door is exactly the same after the host's action as before the host's action.

In other words, every one else who told you something equivalent to that last sentence was telling you the truth.

In standard Monty Hall that leaves a $\frac 13$ probability that your first guess was correct; in your extension the probability is $\frac 15,$ leaving a $\frac 45$ probability that the prize is behind one of the other three unopened doors.

• With the probability $p$, $m$ doors are always opened, so do you mean that $P(B)=p$? If not, what is $B$ really? Nov 21, 2014 at 19:04
• I wouldn't say "always with probability $p$," but yes, $P(B)=p.$ There are variants where $p < 1,$ although yours is not one of them. Nov 22, 2014 at 2:45
• I'm wondering where have you seen the version with the $p$ parameter? I've never heard of it. Nov 22, 2014 at 10:44
• @user2345215: I think I've seen the $p < 1$ variation used as an illustration of how critically the usual Monty Hall problem depends on its rules. For example, if Monty randomly opens any door you did not choose, then $p =\frac{n-2}{n-1}< 1,$ but also $P(B|A)\neq P(B),$ and either switching or staying is equally good in the cases where Monty opens a non-prize door. Nov 25, 2014 at 2:20

There are two limiting cases: the first (1) in which at each "event," Monte Hall opens the door with the least probability, and the second (2) in which at each "event" Monte Hall opens the door with the greatest probability. This excludes whichever door the participant has "selected," so the probability distribution over that particular door does not change at each "event." Just like the classic Monte Hall problem with three doors, it is logical to switch doors after each door-opening "event." I have illustrated the first limiting case, which I will call "Scenario 1."

Notice that after each "event," the sum over the partitions of the probability distribution function is unity, ie. At first, 1/5 + 1/5 + 1/5 + 1/5 + 1/5 = 1. And after the third door-opening event, 0 + 0 + 6/15 + 0 + 9/15 = 1.

I recently wrote some code that simulates the Monty Hall Problem with n number of doors and any probability distribution for each stage of the scenario. For example, the probabilities of which door the player picks, which door the prize is placed at and the door that Monty opens can all be changed. Running the code with equal probabilities at all stages and with five doors I can confirm that the probability of winning when switching doors is 4/15 while the probability of winning when sticking with your original choice is 1/5.