Game Show Problem (1990)
marilynvossavant.com
marilynvossavant.com
function monty_hall(switch::Bool; n=3)
winner, guess = rand(1:n), rand(1:n)
reveal = setdiff(1:n,[winner,guess])[rand(1:end)]
if switch
guess = setdiff(1:n,[guess,reveal])[rand(1:end)]
end
return guess == winner
end
This allows you to simulate the switch and don't switch strategies: julia> mean([ monty_hall(false) for _=1:100000 ])
0.33166
julia> mean([ monty_hall(true) for _=1:100000 ])
0.6676
But more importantly, you can see that in the don't-switch case, the reveal choice is dead code – it has no effect on wether the original guess was right or not. That's the key insight: since the original guess had 1/3 chance of being right before the reveal, it still has a 1/3 change of being right after the reveal. Before the reveal the other two choices also each had a 1/3 chance of being winners, but after the reveal their combined 2/3 chance is concentrated entirely on the door that wasn't revealed, making that the best option.The code also lets us see what happens with a generalized Monty Hall problem for more doors:
julia> mean([ monty_hall(false, n=4) for _=1:100000 ])
0.24862
julia> mean([ monty_hall(true, n=4) for _=1:100000 ])
0.37462
julia> mean([ monty_hall(false, n=5) for _=1:100000 ])
0.19763
julia> mean([ monty_hall(true, n=5) for _=1:100000 ])
0.2666
Even for higher numbers of doors, it's better to switch."Since you seem to enjoy coming straight to the point, I’ll do the same. You blew it! Let me explain. If one door is shown to be a loser, that information changes the probability of either remaining choice, neither of which has any reason to be more likely, to 1/2. As a professional mathematician, I’m very concerned with the general public’s lack of mathematical skills. Please help by confessing your error and in the future being more careful. -- Robert Sachs, Ph.D."
Doctor Sachs was entirely wrong, as were about ten thousand other academics who ganged up on Vos Savant in the months following the appearance of this column.
The real outcome is that, if the contestant doesn't change doors, his probability of winning is 1/3, but if he does change doors, his chance goes up to 2/3. Details:
I also like how she suggested that people just run the experiment themselves.
Suppose you have a million doors, you pick one, and the host opens the other 999,998 doors. Should you switch or not?
Clearly, clearly the prize is behind the unopened door, merely because the other door you picked had a one-in-a-million chance. Now it becomes a "so, do you think the prize is behind the door you picked, or the one I have conspicuously left unopened?".
You pick one door, the probability of winning is 1/N. The probability of losing is (N-1)/N, which stays fixed no matter how many doors the host opens. If you switch, the probability of winning is (1/(N-2))-(1/(1/N)).
If he opens all doors except two, and you switch, the probability of either of the two having the car is 50% minus the original 10^-6/2. Each door decreases the probability by one in a million, not one in a trillion. If that were the case, it would be highly unlikely that you won even if you switched after all but one of the doors were opened.
Even after she explained it she still received so many replies saying she was wrong, I just am wondering what's going on here that's causing this. That's just so bizarre.
It's actually a really big cognitive leap to get from there to the idea that, because the gameshow host knows the answer, that the visible answer differs from the mental shortcut.
I've got a good friend who speaks at a lot of risk management seminars, and a good deal of people who deal with financial risk every day get this question wrong. He's got a really good blog at http://behavioralrisk.net/
Yes. The difficulty with the Monty Hall problem has to do with grasping all the probabilities represented by all the outcomes at once. I personally didn't fully understand it until I wrote a list of all the possible outcomes and summed the probabilities.
I found her matrix rather messy & convinced myself with the following:
| chosen | revealed | hidden |
| car __ | empty __ | goat__ |
| empty_ | goat ___ | car __ |
| goat _ | empty __ | car __ |
You know from the start that one out of three doors has a car behind it, and his opening one of the remaining doors doesn't change it. He just shows you what you already know.
When you select your door, you know there is a 1/3 chance that your door has a car behind it, and a 2/3 chance that it doesn't. The host opens another door, and there is still a 2/3 chance your door has no car. It has only been proven that the door the host opened has no car behind it.
EDIT: To clarify, I'll rephrase. When you select your door, you know it has a 1 in 3 chance of hiding the car, and importantly, you know that there is a 2 in 3 chance that the car is not behind your door.
When the host opens his door, you still know there is a 2 in 3 chance that your door doesn't have a car behind it, but are now guaranteed that, if you chose the wrong door in the first place, you will now choose the right door.
It's not that the host's door is eliminated from the possibilities, it's that you can either open your door or effectively open all the rest of the doors to find the car. Which would you choose?
(1) If the host reveals an empty door at random, your odds are 1/3 and you should switch.
(2) If the host reveals a door at random that happens to be empty, your odds are 1/2 and it doesn't matter.
The reason that so many people get confused is that they read the words and their minds automatically jump to scenario 2.
I also like the answers later in the HN comments where someone mentions the host opening a bunch of empty doors, leaving one closed, then asking if you'd like to switch to the door he or she conveniently left closed.