Critically the host always removes a goat.
If the person presenting the problem just says “the host opens one of the doors”, but doesn’t specify he’s always revealing a bad door then it’s not clear why that matters.
The many door example makes it easy to intuit as well.
I think when I was first told it the person said “takes a door away” which is even less clear.
<?php
$wins = 0;
for ($i = 0; $i < 1000; $i ++)
{
$car = mt_rand(0, 2);
$choose = mt_rand(0, 2);
if ($choose == $car) $wins ++;
}
echo "stay: " . ($wins / 1000 * 100) . "%<br />";
// switch
$wins = 0;
for ($i = 0; $i < 1000; $i ++)
{
$car = mt_rand(0, 2);
$choose = mt_rand(0, 2);
if ($choose != $car) $wins ++;
}
echo "switch: " . ($wins / 1000 * 100) . "%";In the case where the host revealing the car means you restart, there are three equally likely situations after the host opens a door: - You picked the car, and the host revealed a goat - You picked a goat, and the host revealed the other goat - You picked a goat, and the host reveals the car (restart)
Of the two terminal cases, one gets you the car if you switch, and one gets you the car if you don't switch. In the non-terminal case, it doesn't matter what policy you have because you don't even get a chance to apply it.
Assuming, WLOG, that we choose door 1, that leaves us with 6 equally likely cases just before that final correction (or lack thereof):
A) Car 1, Monty 2
B) Car 1, Monty 3
C) Car 2, Monty 2
D) Car 2, Monty 3
E) Car 3, Monty 2
F) Car 3, Monty 3
If Monty doesn't correct in cases C and F, then when he shows us a goat behind (say) 2 then we learn we are in either A or E - it's 50/50. If Monty does correct himself, then we might have been in A or E or F.P(you chose goat | host didn’t choose car) = P(you chose goat, host didn’t choose car) / P(host didn’t choose car).
The numerator is 2/3 * 1/2, and the denominator is 2/3, so the ratio is indeed 1/2.
(A rejection sampling loop, where you repeatedly simulate a process until a condition holds, has the same distribution over final outcomes as the conditional distribution—so repeatedly restarting the game if the host chooses the car induces the same distribution on final results as simply conditioning on the host not choosing the car.)
Let's say you pick door 1. Let's go through all the possibilities: the states of the 3 doors, which one monty reveals, and what do we do, and what is the result?
1 | 2 | 3 || Monty Reveals | You switch | Result
---------------------------------------------------
G | G | C || 2 | Yes | Win
G | G | C || 2 | No | Lose
G | G | C || 3 | N/A | Start Over
G | C | G || 2 | N/A | Start Over
G | C | G || 3 | Yes | Win
G | C | G || 3 | No | Lose
C | G | G || 2 | Yes | Lose
C | G | G || 2 | No | Win
C | G | G || 3 | Yes | Lose
C | G | G || 3 | No | Win
Count 'em up: When you switch, 2 wins and 2 losses. When you don't, 2 wins and 2 losses. Of course, the situation is symmetrical for any starting guess you make.I know the result is right, but I don't think this table illustrates the reason.
Doesn’t change the result though.
If the host is opening random doors, then: * If you chose a door with a goat, in 98/99 cases we would start the game over because the host opened the door with the car. * If you chose the door with the car, the game cannot start over because the host can only open doors with goats.
This means that when you choose a goat, the randomness gives you another chance to choose the correct door.
No. It could be behind the one you chose, surely.
I understand the explanations, or at least some of them; but I still don't get it. I thought I was intelligent and numerate, and this is making me sad.
I don't see why, after Monty reveals a goat and invites you to switch, you can't re-assess the probabilities from scratch. There are two closed doors, car behind one, goat behind the other, and you have no evidence which is which; therefore 50:50.