The simple solutions above show that a player with a strategy of switching wins the car with overall probability , i.e., without taking account of which door was opened by the host. In accordance with this, most sources for the topic of
probability calculate the
conditional probabilities that the car is behind door 1 and door 2 to be and respectively given the contestant initially picks door 1 and the host opens door 3. The solutions in this section consider just those cases in which the player picked door 1 and the host opened door 3. For a solution without explicitly numbering the doors, apply the law of total probability: \begin{aligned} P(\text{Switch and Win}) = & P(\text{Switch and Win} ~|~ \text{First guess correct}) \, P(\text{First guess correct}) \\ & + P(\text{Switch and Win} ~|~ \text{First guess wrong}) \, P(\text{First guess wrong}). \end{aligned} Here, a "correct" first guess means that the initially chosen door conceals the car. Since exactly one of the three doors hides the car, P(\text{First guess correct}) = \tfrac{1}{3}, \quad P(\text{First guess wrong}) = \tfrac{2}{3}. Next, P(\text{Switch and Win} ~|~ \text{First guess correct}) = 0, since switching necessarily moves from the car to a goat. On the other hand, P(\text{Switch and Win} ~|~ \text{First guess wrong}) = 1, because the host reveals a goat among the remaining doors, leaving the only unopened door to conceal the car. Therefore, P(\text{Switch and Win}) = 0 \times \tfrac{1}{3} + 1 \times \tfrac{2}{3} = \tfrac{2}{3}.
Refining the simple solution If we assume that the host opens a door at random, when given a choice, then which door the host opens gives us no information at all as to whether or not the car is behind door 1. In the simple solutions, we have already observed that the probability that the car is behind door 1, the door initially chosen by the player, is initially . Moreover, the host is certainly going to open (different) door, so opening door ( door is unspecified) does not change this. must be the average of: the probability that the car is behind door 1, given that the host picked door 2, and the probability of car behind door 1, given the host picked door 3: this is because these are the only two possibilities. However, these two probabilities are the same. Therefore, they are both equal to . This shows that the chance that the car is behind door 1, given that the player initially chose this door and given that the host opened door 3, is , and it follows that the chance that the car is behind door 2, given that the player initially chose door 1 and the host opened door 3, is . The analysis also shows that the overall success rate of , achieved by , cannot be improved, and underlines what already may well have been intuitively obvious: the choice facing the player is that between the door initially chosen, and the other door left closed by the host, the specific numbers on these doors are irrelevant.
Conditional probability by direct calculation consists of exactly four possible
outcomes. By definition, the
conditional probability of winning by switching given the contestant initially picks door 1 and the host opens door 3 is the probability for the event "car is behind door 2 and host opens door 3" divided by the probability for "host opens door 3". These probabilities can be determined referring to the conditional probability table below, or to an equivalent
decision tree. The conditional probability of winning by switching is , which is . The conditional probability table below shows how 300 cases, in all of which the player initially chooses door 1, would be split up, on average, according to the location of the car and the choice of door to open by the host.
Bayes' theorem Many probability text books and articles in the field of probability theory derive the conditional probability solution through a formal application of
Bayes' theoremamong them books by Gill and Henze. Bayes' theorem states that the conditional probability that the car is behind door 1, given that door 3 was opened, P(\text{car 1}|\text{open 3}), can be calculated as P(\text{car 1}|\text{open 3}) = \frac{P(\text{open 3}|\text{car 1})P(\text{car 1})}{P(\text{open 3})}. On the right-hand side are the
prior probabilities. The prior probability P(\text{car 1}) that the car is behind door 1 is 1/3, since all outcomes are equally likely as priors. The conditional probability P(\text{open 3}|\text{car 1}) that door 3 is open given that the car is in 1 is 1/2 since each of the doors 2 and 3 are equally likely (neither containing the car). To calculate the denominator, one must use the fact that the events car 1, car 2, and car 3
partition the
probability space, which implies P(\text{open 3}) = P(\text{open 3}|\text{car 1})P(\text{car 1}) + P(\text{open 3}|\text{car 2})P(\text{car 2}) + P(\text{open 3}|\text{car 3})P(\text{car 3}). Now, the probability P(\text{open 3}|\text{car 2}) that door 3 is opened given that the car is behind door 2 is 1 (because opening door 2 would have revealed the car, not a goat). Finally, the probability P(\text{open 3}|\text{car 3}) that door 3 is opened given that the car is behind door 3 is 0, for the same reason. With these three conditional probabilities, the denominator is thus: P(\text{open 3}) = \frac12\cdot\frac13 + 1\cdot\frac13 + 0\cdot\frac13 = \frac12. Putting together numerator and denominator, Bayes' theorem then yields: P(\text{car 1}|\text{open 3}) = \frac{\frac12\cdot\frac13}{\frac12} = \frac13. Thus (complementarily) the probability that the car is behind the only remaining door (door 2) is 2/3, and so it is wisest to switch. Some sources advocate the use of the
odds form of Bayes' theorem, claiming that it makes the derivation more transparent. Initially, the car is equally likely to be behind any of the three doors: the odds on car 1, car 2, and car 3 are . This remains the case after the player has chosen door 1. According to
Bayes' rule, the posterior odds on the location of the car, given that the host opens door 3, are equal to the prior odds multiplied by the Bayes factor or likelihood, which is, by definition, the probability of the new piece of information (host opens door 3) under each of the hypotheses considered (location of the car). Now, since the player initially chose door 1, the chance that the host opens door 3 is 50% if the car is behind door 1, 100% if the car is behind door 2, 0% if the car is behind door 3. Thus the Bayes factor consists of the ratios or equivalently , while the prior odds were . Thus, the posterior odds become equal to the Bayes factor . Given that the host opened door 3, the probability that the car is behind door 3 is zero, and it is twice as likely to be behind door 2 than door 1. Richard Gill analyzes the likelihood for the host to open door 3 as follows. Given that the car is behind door 1, it is equally likely that it is behind door 2 or 3. Therefore, the chance that the host opens door 3 is 50%. Given that the car behind door 1, the chance that the host opens door 3 is also 50%, because, when the host has a choice, either choice is equally likely. Therefore, whether or not the car is behind door 1, the chance that the host opens door 3 is 50%. The information "host opens door 3" contributes a Bayes factor or likelihood ratio of , on whether or not the car is behind door 1. Initially, the odds against door 1 hiding the car were . Therefore, the posterior odds against door 1 hiding the car remain the same as the prior odds, . In words, the information door is opened by the host (door 2 or door 3?) reveals no information at all about whether or not the car is behind door 1, and this is precisely what is alleged to be intuitively obvious by supporters of simple solutions, or using the idioms of mathematical proofs, "obviously true, by symmetry".
Solutions by simulation A simple way to demonstrate that a switching strategy really does win two out of three times with the standard assumptions is to simulate the game with
playing cards. Three cards from an ordinary deck are used to represent the three doors; one 'special' card represents the door with the car and two other cards represent the goat doors. The simulation can be repeated several times to simulate multiple rounds of the game. The player picks one of the three cards, then, looking at the remaining two cards the 'host' discards a goat card. If the card remaining in the host's hand is the car card, this is recorded as a switching win; if the host is holding a goat card, the round is recorded as a staying win. As this experiment is repeated over several rounds, the observed win rate for each strategy is likely to approximate its theoretical win probability, in line with the
law of large numbers. Repeated plays also make it clearer why switching is the better strategy. After the player picks his card, it is whether switching will win the round for the player. If this is not convincing, the simulation can be done with the entire deck. In this variant, the car card goes to the host 51 times out of 52, and stays with the host no matter how many -car cards are discarded. ==Variants==