You pick door 1 out of three, one of which hides a car. The host, who knows where the car is, always opens a different door that has a goat and offers you a switch. He opens door 3. Using Bayes' rule, what is the probability that the car is behind door 2, and why is the host's knowledge important?
Probability and statistics, Conditional probability
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can set up the likelihood correctly and apply Bayes' rule, rather than guessing '50–50'.
Key idea
The host's action is evidence whose probability depends on where the car is: , , .
Steps
- Let be 'car is behind door ', with prior . Let be 'host opens door 3'. You hold door 1.
- Find the likelihoods. If the car is at 1, the host may open 2 or 3 with equal chance, so . If the car is at 2, he must open 3, so . If the car is at 3 he cannot open 3, so .
- Total probability: .
- Bayes' rule: . Also .
- Conclusion: switching wins with probability and staying wins with . The posteriors sum to 1, as they should.
- Why the host's knowledge matters: if he opened a random door and it happened to show a goat, then , and the posterior would be each. The conclusion depends on the host's rule, not only on what was observed.
Common mistakes
- Saying 'two doors left, so 50–50'. That treats the host's choice as uninformative, which it is not.
- Using instead of . When you hold the car's door, the host has two goat doors to choose from.
- Forgetting to normalise by , which makes the posteriors sum to less than 1.
How long your answer should be
Half a page; 3 minutes.
Last checked on 4 December 2026.
Read this
Previous in Probability and statistics: A classifier wrongly flags a transaction with probability , independently, and it scores transactions. How do you approximate the probability of at most 2 false flags, and why does the approximation work?
Next in Probability and statistics: What is the difference between MLE and MAP estimation, and how can you show that L2-regularised linear regression is MAP with a Gaussian prior?