It's this quality of unexpected information exchange that I find most fascinating about this particular puzzle!
It's this quality of unexpected information exchange that I find most fascinating about this particular puzzle!
By opening a door, Monty lets you cover 100% of the "everything else" partition using only one guess.
So now you get to choose between partition 1, which covers 1/3 of the board, and partition 2, which covers 2/3 of the board.
The instinct is strong that "I am right" so "I must have just solved the wrong problem", thus "the problem was confusing".
Rather, I think you will find that most people don't expect the host will ever pick a door with a car until after you tell them that switching is better, and rationalization begins.
Additionally, it's on the solver to realize that a problem is under-constrained, and to ask for more constraints. That means that even if you were earnestly confused by the question, you presented a solution to an under-constrained problem. This is like answering "what is the square-root of four" with "it's negative two".
1. The game goes on, and you can just switch your guess to the door he picked. (WIN)
2. The game resets due to Monty's error and you play again. (REDO)
3. Monty just decides that you lose since he picked the prize. (LOSE, NO CHOICE)
Options 1 and 2 don't deprive you of the car. But option 3 doesn't give you a choice, so there is no dilemma.
So conditional on having a game where no prize has been revealed yet and you get a choice to switch, I think it still pays to always switch.
Another way of putting it: you get to choose between partition 1 covering 1/3 of the board where you get 1 guess, or partition 2 covering 2/3 of the board where you get two guesses. It works even if all of the guesses are random.
This a mistaken conclusion, as actually there is a difference if a goat is revealed by devious Monty (who makes sure he doesn't reveal the car) and dumb Monty (who picks at random), because the rules of the game really are different. The apparent outcome (you pick door, Monty reveals a goat) is the same. But the process is different. In the latter version dumb Monty has all the same information as you, in the former version devious Monty gets more information that you do and changes his behavior based on that information.
In programming terms, devious Monty has an "if" statement in there. (Something like, `if (random_choice == prize_door) { swap_choice(); open_door(); } else { open_door(); }`.)
I'm aware that there is a difference between devious Monty and dumb Monty. The question I was trying to answer is whether this difference affects the actual outcome of the game, or the choice you should make.
I ran a Monte Carlo simulation to test my analysis, and this proved that my previous analysis was in error. If Monty doesn't know to avoid the door with the car, then it makes no difference statistically speaking whether the player switches or not after Monty reveals a goat.
If the rules are such that you win when (dumb) Monty picks the car, then your overall chances are now 2/3 instead of 1/3, since you effectively get two guesses (your guess and Monty's guess). But it makes no difference whether you switch after Monty picks a goat.
On the other hand, if (dumb) Monty choosing the car results in either (1) you losing or (2) a reshuffle and redo, then your overall chances are only 1/3. In this case, it also makes no difference whether you switch after Monty's guess.
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.
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) . "%";https://news.ycombinator.com/item?id=27053941
Having recognised (from crystallized experience) the nature of the problem from the very first hint, I went straight for the jugular at the first opportunity; any residual uncertainty about the diagnosis was extinguished by the wording of the answer prompt, which to my mild disappointment took all the drama out of the reveal.
Sadly, there was no automobile prize on offer. No, not even a goat.
Now I understand that the reason why that worked for me is precisely because it becomes much more clear that it's really about new information, and what tripped me up was trying to maintain a kind of 'narrative', I suppose?
Like of course I would switch and go for the coin toss, but I don't know how to convert that certainty into actually probabilities, tho I'm sure that the odds of my choices are not 1/3 versus 1/2, because there's probably some interplay.
If I think about it more I start to get confused again, along the lines of: does the first choice even matter then? and what if I reverse my first and second choices (as in I pick 1, then switch to 3, but what if I picked 3 then switched to 1), how can I still have better odds by switching, since there's only 1 right answer? But sticking with the coin toss, I feel, "OK this makes sense."
After the host helpfully takes a door out of play, though, you can bet that you were wrong, and the payout doesn’t change. You already knew you were probably wrong, and now you can bet on this. Of course it’s a good deal. A player can probably avoid the cognitive dissonance by thinking of their initial bet as being their best guess at finding a door that doesn’t have a car behind it.
Happy to be wrong though, been a long time since i dabbled in probably.