24 points · by lnyan · 4y ago · 116 comments
I was told about this problem and the person telling it didn't say anything about that, just that you pick a door and the host opens another one which doesn't have a prize behind it. So I thought the probabilities don't change at all because the host just picked a random door. Then everyone who heard of the problem before piled against me like I'm a dumbass, but never really explaining why I was wrong.
Yes, I'm still salty about it.
1. You pick a door.
2. The host reveals a different door at random. The host has no knowledge.
3. The door the host revealed is a goat.
Should you switch or stay?
In the example you gave it's just random chance. In the Monty Hall puzzle it works out that statistically you should swap.
The obvious answer is the right one - it's not possible and Monty's knowledge has no effect on the game or the strategy the player should use. Monty knowing where the prize is and opening a bad door is the same as Monty not knowing where the prize is and having randomly opened a bad door. In either case, you should switch, Monty's knowledge doesn't change things.
Another way of thinking about it - how would the participant know if Monty opened a door at random or knowingly opened a goat door? What if they thought Monty knew, but Monty had actually forgotten and just coincidentally opened a goat door? Does any of this matter? No, because Monty's knowledge doesn't effect the game or strategy.
I also wrote a quick simulation in my Javascript console which confirms what I'm claiming here.
The "pick and stay" strategy wins about a third of the time while "pick and switch" wins about two thirds - same as the original problem. Writing the code emphasizes that it is basically the same thing - Monty coincidentally reveals a goat versus knowingly reveals.
But given they do open a door with a goat, the probability is the same as the regular Monty Hall problem. So the parent's point stands: it's not the host's knowledge that makes the game "work". He's leaking information by not opening your door, thus "concentrating" the 2/3 chance it wasn't behind your door into the one remaining door.
(def doors {0 :goat 1 :goat 2 :prize})
(def choose (rand-nth 3))
(defn game []
(let [choice (choose)
remaining (dissoc doors choice)
monty (rand-nth (vec (keys remaining)))]
{:choice (when (= (get doors monty) :goat) (get doors choice))
:monty (get doors monty)
:switch (when (= (get doors monty) :goat) (first (vals (dissoc remaining monty))))}))
So Monty is choosing a random door that you have not picked. When he picks the prize, the game is over and you lose. (def ten-thousand-games (repeatedly 10000 game))
(frequencies (map :choice ten-thousand-games))
;; {:goat 3309, :prize 3307, nil 3384}
(frequencies (map :switch ten-thousand-games))
;; {:goat 3307, :prize 3309, nil 3384}If you picked the prize P(A = 1/3), then the random open is going to be Goat P(1). if you didnt pick the prize P(B = 2/3) then the random open is going to be Goat P(1/2) or Prize P(1/2)
P(Goat reveal) happens (1/3)(1) + (2/3)(1/2) = 2/3 times
P(Prize reveal) happens (1/3)(0) + (2/3)(1/2) = 1/3 times
P(you picked prize, given goat reveal) = (1/3)(1) / (2/3) = (1/2)
Why would the game show host want me to win? or want me to lose? What's his motivation behind giving me the option to switch? What knowledge does he have?
It was just "you pick a door, host opens a door without prize". That doesn't imply that there's never a prize behind the door that the host opens.
The entire activity is meaningless if the host opens the door with the prize—any questions about switching or not are pointless, since obviously both closed doors are worthless. So that can’t be the interpretation of the puzzle.
When you hear about the problem the first time, they just tell you "and then the moderator opens a door with a goat behind it". So you assume that the moderator usually opens a door - where in your case just happens to be a goat behind. You don't know about the show, so you assume it could've been the car, but just wasn't. So, with this assumption, it doesn't matter whether you switch. And then they tell you that the moderator always shows you a goat, but the damage is already done, your mind has made the decision that it doesn't matter.
Also, if the host opened the door with the prize, what would happen then?
Edit: I should have checked before I posted, obviously it's 2-in-3 when you switch. But it's same idea, you have better odds when you switch because then it's like you are entering a new game with only 2 doors.
Still hard to believe that Erdos wouldn't believe this. He spent his life couch surfing at other mathematicians but not could convince him until he saw a monte-carlo simulation, apparently.
You have 100 doors, select one blindly, and have a 1% chance of being correct.
The host removes all but one other door. Do you stay with the door you chose, a random guess of 100, or the one remaining after the host has removed all others? A door that is now statistically much more likely to be the correct choice?
You need to read up on it more as it's clear you haven't truly understood the puzzle.
The host knows what's behind the doors so he'll always eliminate a wrong answer.
In the opening, you pick one door. That's a 1 in 3 chance of being right.
So there's a 2 in 3 chance it's in either of the two remaining doors. He simply eliminates a wrong answer.
Thus, 2 out of 3 times you win by switching. You win 1 in 3 times by staying with your original choice.
1. The linked Wikipedia article is very extensive, and already covers usually all the points and insights that forum posters bring up. And a lot more.
2. Few people will probably bother to read the entire (or even most of the) Wikipedia article, because it's so extensive.
3. I'll copy and highlight the IMO most crucial part the article here:
The most famous formulation, a column in Parade magazine in 1990, went thus:
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?
In this formulation the solution is ambiguous. Switching is *not necesarily* the optimal strategy (it depends on the precise strategy/behavior of the host, which is not well formulated).
Under the unambigous "standard assumptions":
- The host must always open a door that was not picked by the contestant.
- The host must always open a door to reveal a goat and never the car.
- The host must always offer the chance to switch between the originally chosen door and the remaining closed door.
switching is the better strategy. But in this formulation the reason is also a lot more obvious.
If your initial pick is correct, then switching loses 100% of the time.
If your initial pick is incorrect, then switching wins 100% of the time (because you picked wrong, and host will reveal the other incorrect door, leaving only the correct door to switch to).
So switching always inverts your initial guess. Well what are the odds of picking incorrectly on your initial guess? 2/3. Switching wins 2/3 times.
"Is it to your advantage to switch your choice?"
Well that depends on where the prize is. If the prize is behind the other door, then yes it's to your advantage to switch. Otherwise, it isn't. How can there be any more to it than that? You're not going to be given the opportunity to play the game 100 times. This is your one shot and the location of the prize is already fixed.
If the host opens all the doors that contain the booby prizes bar one (in this case 98 goats) and leaves one door remaining, plus your original guess, it's pretty obvious you are unlikely to have guessed correctly on your first try.
Scale it down to 3 doors and the host always revealing a goat and you have the same situation except there's a 1 in 3 chance you'll win by sticking with your first guess and a 2 in 3 chance if you swap.
Expected value is the thing to consider.
It's not obvious to me that this is true. Why do we update the chance of the "new" door but not the one we already selected? Intuitively, I would expect the odds of both doors to increase to 50% as the other 98 doors are opened.
I know that you're correct, I just don't find this to be an intuitive explanation.
If your original door was wrong—99% chance—then it’s in one of the 99 other doors. But the host opens 98 of them, so if it was one of the 99 other doors—again, 99% chance—then the only option left is the last door.
I think your confusion is because if there are 100 doors then the rule is self-evident. But when there are only 3 doors, the rule of "open all doors except the door that was guessed plus one other" is indistinguishable from "open just one door".
The key is knowing that the rule is the "open all..." rule.
with 3 doors, there are only so many the host can chose to open. with a 100, there is up to 98. sure, it can be 1 or 2... or 98.
The better way of thinking about it is that he is leaving one door closed
Regardless of the number of doors, the space collapses to two options when the host reveals the rest. That new option is the set of all doors the player never picked.
The player’s initial option, 1/3 (33%) for 3 doors or 1% for 100 doors… versus the other option that is the rest of the set. 2 doors or 66% for 3 doors up to 99% of the doors for the 100 case.
That other option being the rest of the set must have better probability for any door count greater than two.
To make the problem much more obviously intuitive, simply imagine a thousand or a million doors instead of 3.. and after you make your pick - the host reveals all doors except one to be "failures". Your choice was very obviously 1 in a million, and because the reveal procedure that followed is conditional - if the "success" was behind ANY of the doors you did not pick then it WILL be the only door left in front of you.
It is only a 50-50 IF the revealed doors were opened randomly. In this case, sometimes the "success" would be revealed by accident - and so IF you do happen to find yourself in a position of only having 2 doors left THEN it was more likely to happen if you had actually chosen the "success". So arriving at that situation at all is the conditional information that alters the probability of your original choice - but in this case from 1/3 to 1/2 instead of 2/3. (this is how the probabilities in "deal or no deal" work btw)
Even knowing the solution, it is a good reminder about the power of information derived from systemic processes. the information leveraged in the processes that lead to circumstances is just as important as the circumstances themselves.
The key general point that bypasses most peoples intuition the first time they hear the problem is that the revealed box (or door, etc) is not chosen at random but by a conditional process. The condition is that the host reveals a "failure". In order to pick a failure, he must leverage knowledge about where the "success" is, else he risks revealing it by mistake. Because knowledge of the "success" is embedded into the decision process, more information about the "success" is revealed to the observer which allows them to improve their position.
The entire trick of the game is that Monty opens 1 (or 98) of the remaining doors. That is because it is completely irrelevant to the odds, but has big impact on the contestants perception.
It is not obvious, but Monty actually does two separate and unrelated things:
First, a step that basically goes unnoticed, is to propose a new game to the contestant in which the contestant opens either 1 door or 2 (99) doors chosen by Monty, rather than the original game which was to select 1 door out of 3 (100). Obviously, the new game gives them the chance to make a choice that has 2/3 odds (99/100) versus the original game whose odds were 1/3 (1/100).
His second step, which is typically the only step noticed and which very effectively misleads the contestant, is to open 1 (98) of the doors he selected.
The result is that clearly the 2nd game gives the contestant a definitively better choice, but this is obscured by the fact the contestant only sees two closed doors, so they believe they are comparing 1 door to another, and thus only have 50-50 odds.
You pick door A. The hosts says you can either keep that door, or instead pick both doors B & C. If either one of them has the prize you get to keep it.
You opt to switch. The host opens B, which turns out to be a goat, and then opens C.
Regardless of what C contains, it's obvious that switching was the better option.
I have 52 playing cards. I know which one is the Ace of Spades. Point to one of the cards and leave your finger on it.
Okay, without telling you whether you are right or not, I'm going to remove every card, leaving only yours and one other on the table, that is the right card if the one you picked is not, or an indifferent card if your choice was right.
Do you wish to choose the card I left on the table, or do you still think your 1/52 choice was correct?
Notice that I followed the exact rules of the game, but changed the wording and used a lot more "doors." There was a 1/52 chance you would pick the right card, and even after I remove all but one of the remaining cards, it is still a 1/52 chance you originally picked the right card, and a 51/52 chance that the one I left behind is the right card.
Now just make it 3 cards, and use the traditional script, performing the exact same steps, and you'll understand why you should always change from your original choice.
An equivalent offer would be if you had the chance to either: - keep your door OR - choose both of the other doors (since you know at least one of the other doors is a goat/non-prize)
If I'm playing this game in real life, my intuition isn't going to be calculating the correct mathematical odds, but rather thinking "this guy is trying to screw me".
So a 1/3 chance that you can be sure of is better than a 2/3 one which is based on trusting your opponent.
It was like - my fingers knew how to type the correct solution, and once my brain saw my fingers type it, my brain finally caught up.
By removing one door which does not have the car, Monty has narrowed your best choice to one of the other two.
"I have randomly picked a number between 0 and 1 million, and I want you to guess my choice."
"Lets go with 408,235."
"I will narrow it down for you. Lets eliminate 999,998 incorrect guesses, leaving either 174,999 or your guess of 408,235. Would you like to change your guess?"