196 points · by dyno-might · 6y ago · 268 comments
This is often not explicitly stated when the problem is given. It is even not a 100% clear from the statement above. Monty always chooses a door with a goat. So:
1. You choose a door.
2. Prob that there is a car behind it: 1/3
3. Prob that the car is behind the two other doors: 2/3
4. If the car was behind the two other doors (which, remember, has p=2/3), Monty will choose the door without a car for you, and the door with a car will remain closed. In this case you are guaranteed to have the car if you switched.
So with switching, the overall probability is 2/3. Without, its the original 1/3.
If you did not understand that Monty always chooses a goat door, but the person giving you the problem does, or vice versa, then what usually happens is that both of you try to explain why your intuition is correct. Because most people don't talk formal probabilities, your explanations will be so vague that the other person will not realize your different understanding. You will discuss forever, you will both be right, and you will part ways with the strange feeling that maybe the other person was right, when all along you were talking about different problems. This is why this problem is so notorious.
> This is often not explicitly stated when the problem is given, which imho is the whole reason this problem has the reputation of being hard to understand.
If that were the only difficulty, why have so many people continued to have trouble accepting it even after this misunderstanding has been cleared up, and even after the correct answer has been explained to them? According to Wikipedia, even Paul Erdős remained unconvinced until he was shown a computer simulation.
I recall mention of an analysis of the responses to Vos Savant's Parade article, concluding that a majority disputing the result were aware of this constraint, and I will post a link if I can find it again (though if a majority did not explain their reasoning, it may not be possible to figure out what assumptions they made. Nevertheless, the question in my first paragraph still stands.)
IMO, people are confusing MH with a case where the door is opened randomly before your choice.
Let's say Monty shows you three doors, then knowingly opens a wrong door (B) before you choose. Do you want A or C? It's a coin toss, of course.
But suppose you pick door A first and THEN he knowingly opens a wrong door you didn't choose (B). Now the odds of winning are 2/3rds if you switch. But it feels the same as in the previous case. ("How could choosing a door first affect the odds?! It couldn't possibly change anything!!")
The answer is that your choice of a door constrains Monty.
Suppose you choose a door secretly before Monty opens a door. Suppose you choose A, and Monty opens door A, revealing a goat. Well, uh, you can't pick that any more, now, can you? You're forced to choose between B and C, a toss up.
But if you publicly pick door A then Monty can't/won't open A; he has to open one of the other doors. Since you probably chose the wrong door to begin with, and he always opens a wrong door, the other remaining closed door probably has the car.
I believe that this example makes understanding why people don't get it easier: you are looking for someone with one of your friend. You know they are in one of three rooms. Right before you can open the first one, your friend opens the second one and say: "not there". People assume the Monty Hall problem means that it's more likely your friend is in the third room and not the one you were going to open and think it's silly. And they are right to think that. What they don't get is that the case where your friend opened the correct door is part of the switching choice in the Monty Hall situation.
Personally, IIRC, my first reaction was to assume the second box opening was not random (perhaps only because the question is not phrased as being conditional on this act revealing a goat) but did not see how this gave any useful information.
Here's another possible way of getting it wrong, regardless of the phrasing of the problem: assuming that, after the reveal (and whether one thinks of it as random or not), one is, as it were, starting over, except with a choice between two boxes rather than three, and no other information.
> According to Wikipedia, even Paul Erdős remained unconvinced until he was shown a computer simulation.
Interestingly, coding up my own simulation took me from understanding the problem to grokking it. I'd definitely suggest anyone who has programming ability but doesn't grok the problem to write up a simulation.
Thank you for spelling this out so clearly. If explained in terms of strategies (always switch v. always stick), the probabilities should be crystal clear.
What does the switcher have to do to win? Pick the wrong door first (2/3). What does the sticker have to do to win? Pick the right door first (1/3).
I was always told Monty reveals new info and that changes probabilities. Never made sense. Your 2/3 vs 1/3 explanation makes it obvious.
Then there is the ambiguity as whether the host will always offer you to switch or just when he hasn't revealed the car.
If Monty doesn't know, then sometimes the game will be ruined because he will expose the grand prize and then the game is moot. But if is simply lucky by showing the goat door vs he picked it with foreknowledge doesn't change the odds in any way.
Let "A", "B", and "C" represent the prizes; A is valuable, B and C are goats. They're shuffled behind doors, so the player and Monty choose "1" or "2" or "3", and after the fact we'll map ABC to 123. As such, we can assume without loss of generality that the player always chooses "1" and Monty always chooses "2".
What happens?
123
ABC - player was right at first, so they lose if they switch
ACB - player was right at first, so they lose if they switch
BAC - player was wrong, Monty chooses 2 which is the car, so the game is ruined
BCA - player was wrong, Monty finds a goat, player wins if they switch.
CAB - player was wrong, Monty chooses 2 which is the car, so the game is ruined
CBA - player was wrong, Monty finds a goat, player wins if they switch.
Huh. Of the 4 non-ruined games, half of them are improved by switching, half are worsened.I believed you were wrong, but now I believe you.
You are taking an empty result and replacing it with a strict win.
1/3: you picked car, switch fails
1/3: you picked goat, monty ruins. Not included
1/3: you picked goat, monty open goat. Switch wins.
Of the two non ruined scenarios, half win
We can also demonstrate by using the 100 door example. Monty opens 98 of the 99 doors you didn’t choose. 98 times out of 99, monty ruins the game.
So random choice dramatically changes things.
Whether Monty knows for sure or is just picking at random only affects whether games are ruined, not the probability that the door the contestant picked is a winner.
If there are N doors and the player picks door 1, there is a 1/N chance he will be correct. If he sticks to that door, there is nothing that will ever change that 1/N odds that it was the winner.
Downthread someone enumerated the cases, but again, they discard the 1/3 of the cases where Monty ruined it. What that does is throw out half of the cases where contestant picked the wrong door and had the wrong strategy. Whether Monty ruined the surprise by showing the winning door or Monty got lucky and exposed a goat, that original door always has a 1/3 probability of being the right one.
So I'm not getting the point you're making, unless you're saying that would be a more grokable way to state the problem?
Imagine you have two identical looking bags of marbles, one contains two red marbles, and one contains one red and one black. You reach into a random one and draw a marble. It is red. If you picked the marble randomly, you now know you're more likely to be holding the bag that contained two red marbles than the mixed bag. The red marble you randomly drew provides bayesian evidence for which bag you're holding.
Marble 1 2
Bag
2R R R
BR B R
Out of the three possible equally likely worlds (given that you know you didn't roll into BR-1), two of them have you holding bag 2R, aka a 2/3rds chance.If, on the other hand, you use a red-marble-picking robot, you get:
Marble 1 2
Bag
2R R R
BR R R
Now you have four possible worlds and are equally likely to be holding either bag, ie 1/2.So, if our friend Monty opens a random door and you only look at simulations where it reveals a goat... There is a 1/3rd chance you initially get the car, but if you do he's guaranteed to reveal a goat. So 1/3rd of games, you have a car. There's a 2/3rd chance you initially get a goat, but then he has only a 50/50 chance of revealing the goat. So half of the 2/3rds of games, the game is discard as invalid, and the other half of 2/3rds (aka 1/3) you have a goat. As such, the potential outcomes are split 1:1:1 between car:goat:invalid. Removing the invalid cases, it's 1:1 car:goat, despite the only 1/3rd chance of you choosing the car initially.
tl;dr: If he's randomly opening doors and you discard any where it's the car, those cases are entirely ones where you didn't initially choose the car, which introduces some bias. If he's opening doors deliberately, no cases are thrown out since it's always possible to reveal a goat, maintaining the original 1:2 probability ratio.
EDIT: formatting.
I wrote a simulation to demonstrate how right I was.
I was wrong and you are too.
It's actually an interesting, possibly general story, that kind of makes me think. Perhaps for certain personality types, misplaced conviction will put you on a higher velocity trajectory toward truth than honest confusion.
Therefore, no games are removed as moot when you have initially selected a car, and 50% of games are removed as moot when you have initially selected a goat.
So it ends in a coin toss whether you switch or not.
The 2/3 to 1/3 split only happens when Monty removes a goat using privileged information.
The overall point is that the host is not picking at random, and is thus affecting the outcome in a statistically reliable way.
The subset of games where they close different doors is smaller than all possible games.
If the host picked a door at random, and it happened to show the prize, then the game would be ruined. That would make some terrible television. Therefore, he can't be picking a door at random.
- the bottom line is Monty will always eliminate one wrong choice
- therefore when they switch, they are choosing between one wrong and one right door, every time, regardless of what came before. (p=1/2)
(edit: thanks i see, no need for any more answers)
A more common re-telling of the story:
Monty has 1 million doors, with only one car behind one. When you pick a door, Monty will always open 999,998 other doors, all of which show goats, leaving one other door conspicuously closed.
Do you still think you have 50% chance of being right by sticking with your choice?
As some other comments have mentioned, I think this isn't a fully satisfying explanation because it's hard to reason about the difference between a general strategy vs. an in-the-moment choice; why does it matter that I've watched Monty narrow the choices down to 2 doors, vs. seeing 2 doors from the start?
I get why you intuit this - I had a lot of trouble with it at first as well. Common sense is lying to you, however, because you are still dealing with the original odds (1/3 vs 2/3). Monty's choice is always to choose a Goat (probability 1.0), therefore his effect on the probabilities will always be with a weighting of 1.0. You end up with a probably spread of (1/3 * 1.0 vs 2/3 * 1.0).
Therefore it is always in your interests to choose Monty's remaining door.
Yes, this is the single most critical piece of information, and when people struggle to understand the Monty Hall problem, its almost always because this wasn't made clear. When it is, the problem becomes much more intuitive.
Imagine there are 1,000 doors and you pick 1. All other doors except 1 are opened and you're given the offer: keep the door you picked, or pick this other door. What are the chances you picked the right door (vs. this other door)?
People seem to intuitively understand that having only one door unopened is a massive "hint" to where the prize is.
(I learned this idea from Better Explained: https://betterexplained.com/articles/understanding-the-monty...)
The rest of this post is an anecdote from the same class that this brought to mind, and is unrelated to the topic. Maybe we can say it shows how good teachers engage their students or something, but really it’s just a good yarn.
We were learning about inelastic vs elastic collisions, and how an elastic collision has 2x the energy of an inelastic one. The teacher asked for a volunteer, and a bright-eyed student rose to the occasion. The teacher gave him some safety glasses and told him to lie down on the floor.
The teacher took the inelastic ball and said, “Okay, I’m gonna drop this on your forehead now, ready?” PLONK. “Ow.”
“Remember that feeling! This is the elastic one, and it has the same mass, so it should hurt twice as much.” PLONK. “Ow.”
The teacher asked, “So, did the second one hurt more than the first?” The rest of us anticipated the experimental confirmation of what we’d just learned about.
“...I couldn’t really tell the difference,” said the student.
“Yeah,” said the teacher, “I knew you wouldn’t. I just wanted to see if you’d let me do it.”
In the 1,000 doors problem, my odds of being right initially were something like 1/1000 and then it changes to something like 998/1000 or 999/1000 for switching, I can’t intuitively grasp exactly what the odds become of winning if I switch, I just know it’s high. Bringing it down to 3 doors doesn’t help me much — it’s still something like 1/2 or 1/3.
1. Observe that 3/3 = 1. Pedantic, yes, but good for frame of mind here.
2. Pick one of three doors. (1/3 odds)
3. Gain information that one of the three doors is a loser.
4. Note your odds on choosing the original door correctly are still 1/3.
5. Note that if you change doors, there are still 2/3 doors there to choose.
5. Note you're not going to switch to the known loser door, so if you change doors you know 100% which of the other 2/3 of doors to choose.
The intuition usually is that you're down to two doors after the loser door is opened, but that's not the case. There are still three doors. The host has just told you that if you trade doors, you know which door to trade for. So trade for it.Note there's a newer version of "Let's Make a Deal", hosted by Wayne Brady, but there is no option to switch after a losing door has been shown in that version.
You pick some random person. I then bring in another stranger and tell you that the person who knows where the hidden treasure is is either the random person you chose or the one I brought in.
At this point, there are only two possibilities:
1. You happened to randomly choose the right person on Earth and in my surprise, I had to pick some other random stranger to pretend they knew the secret.
2. You chose a total rando who has no idea what's going on and the person I brought in is in fact the one who knows where the treasure is
First step is still that you pick a door. There's a 1/3 chance it has the car. Now you can either keep that single door (with a 1/3 chance of a car), or switch and get both of the other two doors (each with a 1/3 chance of the car, for a total of 2/3 chance). After you pick, I'll reveal all the goats.
probability of winning if you don't is 1 / n.
By switching, you are simply betting that your original guess of 1/n was wrong.
https://youtu.be/GPoPSNxV1D4?t=365
I've timestamped the relevant bit - but you should watch the full thing from the start, it's very entertaining :)
For me the most sensible explanation requires you to know that a dud door is always opened, thus the probability from the 2/3 is the one you are switching to.
You choose a door with only 1 in a million odds of it being the door with a prize. Monty Hall know where the prize is and will only open the remaining doors he KNOWS doesn't have the prize. If he then opens up 999,998 doors without a prize behind them and asks if you want to keep your original door or switch, you'd obviously know that Monty's last remaining door must be the one with the prize.
The explanation that works best for me is that you were more likely to have picked a wrong door in the first place, so while the impacts are opposite equals, the likelihoods are not equivalent.
A possible intuition here is that Universes where your first pick was the door with the car, which initially were just 1 in a 1000 compared to Universes in which you picked a goat, will suddenly become massively overrepresented. After all, in these types of Universe Monty's Fall couldn't possibly have shown a car, whereas most of the other Universes will not survive to the next "round".
Of course, if this happened in real life, Bayesian thinking would increase the likelihood of hypotheses such as, for example, "The door containing the car has a better lock" to such an extent that I would switch.
In the case of the clumsy Monty of your example, it goes like this:
1. There is a 1/1000 chance door 429 has the car.
2a. If it has the car, then when Monty accidentally opens 998 doors no car will be revealed. This does not change the chances that 429 has that car, which remain 1/1000.
2b. If 429 does NOT have the car, then 998/999 times that Monty accidentally opens 998 doors, he will reveal a car, which presumably ends that game. There is only a 1/999 chance that he will not reveal the car and the game proceeds.
3. Thus, there are two cases where the game reaches the point of two remaining doors, with 998 revealed, the car is behind one of the two, and you have a chance to switch.
3a. Your door has the car, which happens 1/1000 games.
3b. Your door does not have the car, which happens 999/1000 x 1/999 games, or 1/1000 games.
In other words, if the clumsy Monty version is played repeatedly, 998 out of 1000 games end without even getting too the point you get a chance to switch, and 2 get to where you get the chance. In those two, one has the car in your door, one not. There is no advantage to switching.
In the case of the systematic Monty who knows where everything is and ALWAYS opens 998 goats, it goes like this:
1. There is a 1/1000 chance your door, 429, has the car.
2a. If it had the car, Monty opens 998 doors that do not have the car, leaving one door besides your yours.
2b. If your door did not have the car, it is one of the 999, and Monty systematically opens the 998 of those 999 that do not have the car.
3. You always reach the choice stage. You can either get there via 2a, which always results in the car being behind your door, or via 2b, which always results in the car being behind the other door.
3a. You get there via 2a in 1/1000 games.
3b. You get there via 2b in 999/1000 games.
If you do not switch, you only if and only if you got there via 2a, so you only win 1/1000 games. If you always switch, you win if and only if you get there via 2b, so you win 999/1000 games.
In the original problem, Monty always opens a door to reveal a goat. This strongly implies that he knows which doors have goats.
Your alternative is different. If the doors opened are truly selected randomly, then the odds are high that he would reveal a car, especially in the 1000-door version. What are the odds that Monty could choose 998 doors randomly out of 1000 and NOT pick the one with the car?
If Monty doesn't know where the car is, then you're arguing with a completely different version of the game that could result in him opening the door with the car, so the strategy is going to be different.
This is not made as explicit in the standard formulation "the host, who knows what’s behind the doors, opens another door, say No. 3, which has a goat."
Which could be read as "which happens to have a goat".
It's the ambiguity in Monte's door opening strategy that leads to different answers.
The important thing to understand is that the premise of the question says he will show you a goat. If you rerun the experiment 10,000 times, he will show you a goat 100% of the time, either through peaking, premonition, or consistent luck.
The problem gets trickier because people start applying domain knowledge of stats, and treating it as a simulation with random events. The goat being chosen is not random, it is an event that occurs 100% of the time in the premise of the thought experiment. Thinking about the random chance of him choosing the car is outside the bounds of the axiom/postulate we start with.
tldr: it doesnt matter how he opened a goat door, all that matters is that he did.
I originally thought it couldn't matter. I wrote a simulation to demonstrate how right I was. I was wrong. I encourage duplicating the experience.
That is false. Him opening the car is outside the constraints of the premise of the thought experiment. He can't not open a goat. The chance of him not opening a goat is irrelevant, and the probability is 0%.
But the standard formulation just says Monte opened a door and it had a goat behind it. No explicit mention of intention.
It matters not that he happened to do. It matters that he will.
(Below I use non-chosen to mean non-chosen by the contestants initial choice.)
Second point: If we are in the subset of all possible histories where Monty picked randomly revealed a goat, then we will have 50% of histories where both non-chosen doors contain 1 goat selected by our history subset, and 100% of histories where both non-chosen doors contain 2 goats selected by our history subset.
Since there are twice as many possible histories where the non-chosen doors contains 1 goat vs 2 goats, after selection, we have an equal number of histories in our sample where we have 1 goat or 2 goats behind the non-chosen doors. Or equivalently, we have a 50% chance that the non-chosen doors contain a car.
Therefore it is irrelevant whether you switch.
Monty needs to make an intelligent selection to change the game.
We can work out odds for this "always switch away from original door" strategy: suppose you initially chose a door with the car (1/3 probability). Then choosing a new door makes you surely lose regardless. On the other hand, suppose you initially chose a door with a goat (2/3 probability). Then regardless of which of the two doors Monty opens, you can choose the car (if he revealed the car, choose that. If he revealed the goat, choose the other door). So our odds of winning with this strategy are still 2/3.
So it's up to the interpretation of the modified game I guess.
I also dont believe the original intent of the question was ever meant to be ambiguous with regard to whether he had knowledge of the goat door or whether he chose at random. The intent was for him to have prior knowledge or impeccable luck, and the wordsmithing of the question came later as, in my opinion, a failed rebuttal to the simplicity of the question. The question might have been worded to not be immediately obvious, but it was not intended to have different correct outcomes depending on interpretation.
If he opens a door and tells you he knows it's a goat, you double your likelihood of winning by switching to the remaining door.
If he opens a door randomly, and gets a goat, you don't modify your likelihood at all by switching. Saying 1 door or 2 doors doesn't mean you actually grasp the entirety of the problem.
What do you mean "opens a door randomly"? Is he picking from all three doors? Yours, and the two others?
In that cases you get interesting but trivially-obvious-what-move-to-make scenarios like "he chose your door and showed you you were right" "he chose your door and showed you you were wrong" "he chose a different door which had the car"...
Do you just mean the subset of "he chose randomly and happened to draw a goat out of one of the two you did not choose"? In which case switching isn't beneficial because you no longer are also capturing the cases that would otherwise be the "he chose randomly and opened the one with the car that you did not choose" that are included in the original "switch or not" decision because he always goes to a goat?
At best, that was intended as a red herring to make the correct solution less obvious. It was not intended as an alternate correct answer. It's not how the game ever worked.
The initial version of the question said he opens a goat door. Whether he knew it would be a goat door or not is slightly irrelevant, because your odds of being right the first time were 1/3. As far as the premise of the thought experiment, a goat door always gets opened, either through peaking, premonition, or consistent luck.
>Saying 1 door or 2 doors doesn't mean you actually grasp the entirety of the problem.
I disagree, and if you don't see it as that simple, you are falling for the trap that makes the question fun.
Hey lets put a car behind three doors, have people choose, open one of the other two doors, then ask them to switch.
Sounds good Bob, but wait, won't the show end prematurely 1/3 of the time because you will randomly open a car?
Huh, good point. Um, let's sneak a peek before opening so we never open a car?
Sounds good Bob.
That’s extremely obvious! The entire reason to phrase the problem as a game show with a game show host is to make it abundantly clear that the host “knows the answers.”
Reordering the sentence makes it clearer. "In all games where Monty chooses goat...". The premise creates a subset.
Monty’s knowledge is irrelevant. The original problem can be modified with no change in probabilities to:
Pick one of three doors. You can have whatever is behind that door, or you can change your pick to both of the other doors and win whatever is behind both of them. Should you switch? Obviously.
Step 2: Divide it into a pair of cards, and a single card.
Step 3: Reveal one of the pairs of cards. If you reveal and ace, return to step 1 since this history is eliminated from the story we've been told: we know this wasn't a possible path to our endgame. Otherwise continue to step 4.
Step 4: Which of the remaining two cards is more likely to be an ace?
Step 5: Realize that they're just as likely as each other to be the ace. Step 2 didn't magically imbue the card remaining in the pair with extra probability juice.
Long story short, you definitely need Monty to make an intelligent selection, so Monty's knowledge is far from irrelevant. It matters whether he revealed a goat by luck or by knowledge, because he's 2x as likely to get "lucky" in the case where there are 2 goats behind the doors you didn't choose in your original guess.
https://news.ycombinator.com/item?id=24713352
When he shows (randomly from the doors you didn’t pick) the car, switching to open door (where the car is) and the other door (which hides a goat) you increase your chances from 0% to 100%.
When he shows a goat, switching to the open door (where there is a goat) and the other door (which may or may not hide the car) your chances stay at 50%.
Switching is the best ex-ante strategy, not necessarily so after a door has been opened.
An algebraic, Bayes-theorem solution to the problem:
The relevant events:
A_x = "contestant first picks door x"
B_y = "Monty opens door y, revealing a goat"
C_z = "price is behind door z"
We want to calculate P(C_z|A_x & B_y) for certain combinations of x,y and z. I assume x=1, y=2 for the following calculations (A = A_1, B = B_2).Assumptions:
P(C_z) = 1/3, the price can be behind any door with equal probabilities
A and C are independent, the contestant has no prior knowledge of the placement of the price
P(B|A&C_3)=1, that is Monty opens door 2 with probability 1 if the contestant first opened door 1 and the price is behind door 3, Monty deliberately picks the door with the goat, very important!
P(B|A&C_2)=0, Monty never opens the door with the price.
P(B|A&C_1)=1/2, Monty equally randomly picks between two doors when he can.
Now substitute into all the probabilities: P(C_3|A & B) //probability for winning when switching
= P(A & B|C_3)*P(C_3) / P(A & B)
= P(B|A & C_3)*P(A|C_3)*P(C_3)
/(P(B|A)*P(A)) // P(A|C_3) = P(A) due to independence
= P(B|A & C_3)*P(C_3)
/P(B|A) //expand denominator
= P(B|A & C_3)*P(C_3)
/( P(B|A & C_1)*P(C_1)
+ P(B|A & C_2)*P(C_2)
+ P(B|A & C_3)*P(C_3) ) // use P(C_1) = P(C_2) = P(C_3) = 1/3
= P(B|A & C_3)
/( P(B|A & C_1)
+ P(B|A & C_2)
+ P(B|A & C_3) ) // substitute all our assumptions above
= 1 / (1 + 0 + 1/2)
= 2/3
We can see that the condition B is not trivial and requires precise knowledge of Monty's strategy. Meddling with this condition results in different outcomes.Of course it will help, because it changes the entire scenario from two people playing a game of chance to one person playing a game of deduction against secret knowledge.
The odds don't change because of some quirk of the Universe, they change because one player is changing the parameters due to his knowledge.
> I got out three playing cards and did the experiment myself over and over.
How did you do that when you didn't know which cards were 'goats'?
So when he reveals a goat door you know that door is certainly not a winner, 0 probability (of 2/3), and the switch door is certainly (if it were one of those) the winner, 1 probability (of 2/3).
But I still used to manage to confuse myself thinking it's intuitively 'more likely' to be the original door 'now' that it isn't one of the others.
Until I studied information theory at university and it really clicked - Monty's door choice has lower entropy than your initial pick!
(But I acknowledge you can't say to the masses 'look look let's simplify this, if we just step back and take an information theoretic approach -')
1) if you pick the car, Monty opens up other doors as in the regular problem
2) if you do not pick a car, Monty just opens your door and says "unfortunate pick, contestant".
If Monty is an adversarial agent (which is not an unfair assumption in television land), then your strategy changes. So an important assumption to make for the Monty Hall problem to work, is that Monty announced what he will do after you pick your door _before_ you pick your door. Only in that case do you have your counterfactuals correct and in that case it is indeed better to swap doors. It is a hidden assumption in most probability theory type of answers.
Every instance given in the linked article includes the assumption that you will always have a choice. If you encounter this situation, how can you possibly know whether you would be offered the choice had you picked the wrong one?
Your first pick had 1/3 chance of winning. So switching has 1/3 chance of losing. Thus it has 1 - 1/3 == 2/3 chance of winning.
The key is making it clear that switching doors will always switch you from Lose to Win and vice versa. Switching doors is equivalent to switching outcomes. That's the critical fact, IMHO.
Once that's accepted, the rest falls into place: there's a 2/3 chance that you picked a Losing door, so there's a 2/3 chance that you'll benefit from switching outcomes, and since you're guaranteed to switch outcomes if you switch doors, there's a 2/3 chance that you'll benefit from switching doors.
Keeping the same door means "I bet I got it right the first time", which is only 1/3 probable!
1) Stubborness: "I've made my pick, and I'm sticking to it, options will just make me double down!"
2) Suspiciousness: "I'm faced with a man in a suit, looking like a salesperson, and he's trying to make me change my mind. I think he is up to no good!"
3) Stupidity (relative to those that get it right): "I overestimate my ability at statistics, and I think there is an even chance of a car between each door after one goat has been revealed!"
And for those who get it right, not from luck, but from understanding the statistics, there is always the Two Envelopes problem that is very similar, yet so much harder.
Simulated many more variations at https://simonduff.net/monty_hall/
This one took a second to rationalize. The reason it works is you have the same chance of winning overall (assuming you can safely choose the car if he opens the car by chance), it's just that the value of winning from switching vs. staying has been shifted into the probability of winning by default. The usual mental trick is to extend to 1,000,000 doors.
If you pick one door, then are told that all of the alternatives except one are the correct answer, you should obviously reason that the door you didn't choose is the correct answer, unless you got the 1/1,000,000 guess. Odds of winning if you switch are 999,999 / 1,000,000
If the host instead opens 999,998 doors randomly, you have a 999,998 / 1,000,000 chance of winning by default. The remaining two doors have equal chance of winning, giving you the same total odds of 999,999 / 1,000,000 no matter which you choose.
Which makes sense, because both situations are, more or less, being given 999,999 chances to guess the lucky door.
https://www.quora.com/In-the-monty-hall-problem-how-does-ope...
Reprinted:
Q: In the monty hall problem, how does opening the second door skew the probability in favor of the initially unchosen door?
A: The Monty Hall problem is generally poorly described, in order to make the conclusion seem more surprising then it is.
The actual Monty Hall game — as imagined by the people who are asking the question— is set up like this:
In front of you are 3 doors, there is a goat behind two
of them, and a car behind the other one.
In *round 1* of the game, you select a *pair* of doors,
from which *one* “goat containing door” will be
*automatically eliminated from*, leaving only *one* door
of the selected pair of doors in play, (and only *two* of
initial *three* doors in play).
In round 2 of the game, you guess which of the two
remaining doors in play has the car.
The choice is this: should you choose the remaining door from the pair selected in round 1, or should you choose the door which was not part of the selected pair in round 1?When phrased like this, the answer is fairly obvious: the pair of doors contains a car 2/3 of the time, whereas the non-paired door contains a car 1/3 of the time.
The Monty Hall problem— as normally described— messes this all up by introducing a game show host. This is an agent who— seemingly by their own whim— changes the game you thought you were playing, and introduces round 1 of the game once you have guessed the door you initially think the car is behind. The rules this game show host agent are following are almost never described to a sufficient degree to ensure the game is equivalent to the game laid out above. And yet, the people asking this problem pretend that it is exactly equivalent when they ask you for an answer.
It’s generally a poorly described problem, whose answer depends entirely on what kind of agent the game show host is.
Don’t worry if it doesn’t make sense to you as it’s usually described. If you can understand why— in the two round game I describe above— it’s better to pick the door from the pair of doors, rather than the single door, you understand probability just fine.
I think people would do better to write a computer simulation of the problem, or, for non-programmers, to design a game with dice that simulates the problem. When you execute the simulation, you pretty quickly realize what's going on. Then you can use logic or formal reasoning to put your intuition into words.
A couple people here have said something similar (ctrl-f "simulation" on this page). According to https://www.mwsug.org/proceedings/2010/stats/MWSUG-2010-87.p... , even the great mathematician Paul Erdős wasn't convinced that switching was better until he saw a simulation:
> Vazsonyi ran the program 100,000 times. Erdős watched the results of the simulation. The simulation results indicated that by switching, the odds of winning are indeed two out of three. Finally, he was grudgingly convinced that switching was better. He did not like it but seeing was believing. He could not argue with the results.
import numpy as np
def play_monty_hall(rounds=100):
car = np.random.randint(low=1,high=4,size=rounds)
first_door = np.random.randint(low=1,high=4,size=rounds)
switching_wins = car != first_door
staying_wins = np.logical_not(switching_wins)
print(sum(switching_wins))
print(sum(staying_wins))There are 1,000 doors - you are passed to pick one.
Monty removes all the doors except for your door and one other. There is money behind one of the doors. Do you stick, or change?
If you had picked a goat door, he would have just opened the door you picked or opened the door that has the money to show you that you got the wrong answer.
The assumption that Monty Hall will always offer you a chance to switch is what is broken in the problem statement and the reason why so many people think that the correct answer is unintuitive.
Says you. I choose the goat!
Try visualizing how you’d pseudocode this game - it literally didn’t click for me until right now, and now it seems much more intuitive.
What happens if Monty does not ever choose at random. Say that Monty always opens the the highest possible door.
If you choose door 1 and Monty reveals door 2, then switching (to 3) is 100% win.
If you choose door 1 and Monty reveals door 3, then switching (to 2) is 50% win.
I think it's a crucial unstated assumption that Monty does choose randomly among available goat doors.
It could be random, it could be the highest, it could be the lowest, it could depend on the position of the stars. The point is that you don’t know so the answer cannot depend on it.
Also, Game 5: There are 2 doors. A car is randomly placed behind one, and goats behind the others. You pick one door. Monty looks behind the other doors. He chooses 0 of them with goats behind them, and opens them. You get two options: Option A: You get whatever is behind the door you picked. Option B: You get whatever is behind the other closed door. Should you switch?
If he’s going to open a random door he may just leave it to you (because you don’t know anything).
The problem becomes:
0) you’re presented three doors, there is a car behind one of them
1) you pick one door
2) you choose one of the other doors and open it: there is a goat
Now, you have the choice between keeping your initial door and switching to the other unopened door.
P(I chose correctly the first time | all doors are closed) = 1/3
but P(I chose correctly the first time | I opened one of the other doors at random and there was a goat) = 1/2
Without loss of generality, we can say that I picked door A and opened door B findind a goat. P(car@A | goat@B) = P(car@A and goat@B) / P(goat@B) = P(goat@B | car@A) P(car@A) / P(goat@B) = 1 x 1/3 / 2/3 = 1/2
In case it's not clear where the formulas above come from: P(car@A and goat@B) = P(car@A) P(goat@B | car@A)
is equal to P(goat@B and car@A) = P(goat@B) P(car@A | goat@B)I have yet to meet someone who didn't get it from that. No need to have this complex evolving ruleset and so on.
To explain Monty is helping you is, at all times, a stretch of the imagination.
So I went on youtube.. Watching the first 3 mins of this 5 min video made it click: https://www.youtube.com/watch?v=4Lb-6rxZxx0
You can choose to have:
- The most valuable prize that's behind door A, or
- The most valuable prize that's behind doors B or C
When you look at it this way, it's obvious that you would rather have the most valuable prize from the 'other' doors, and the way to do that is to switch.
Then you don't need to think about whether the probabilities change once Monty opens the door with the donkey.
If you need convincing, here's a simple python script based on the above:
https://gist.github.com/rahimnathwani/2b6ca328a74b37b952c75d...
If you're still thinking about whether the probabilities change, consider whether 'Monty opens a door with a donkey behind it' is new information. It's not because he always does that. And the two doors you picked are fungible/identical except for physical position, as both are in the set of doors you didn't pick. So which one he opens is irrelevant.
It's so everyday and normal seeming -- and while too cryptic or opaque -- just opaque and non-obvious enough to make it, even for many smart and well educated people -- an exquisitely slippery trap to fall in.
https://en.m.wikipedia.org/wiki/Doomsday_argument
Just the fact that you’re doing an experiment is already extra information!
So what's the diff?
Which is wrong but seductive.
Thefefore, Monty could be using the strategy of "if the player chose the car door, open a goat door and give the option to switch. Otherwise don't give the option to switch and the player wins the goat." In that case switching is a losing strategy.
Sometimes you have to use common sense, and I think every instance of the monty hall problem I've seen was sufficiently explicit (without being absurd), and the confusion was always around the math and probability and never around semantics or trickery.
The fact is that the argument I have presented demonstrates that the problem as given is flawed and does not have a unique answer. Most people don't understand this and substitute the correct version of the problem in their mind, and then proceed to solve that by arguing about the probabilities. Of course the probabilities are what the problem is "supposed" to be about.
You seem to be finding flaws where there are none. You are suggesting there is subtle unspoken trickery hidden in the problem (just as in my example) but nothing about the problem suggests that should be the case.
What if the host lets you choose to switch every game but if you make the right choice he says you are wrong without opening the door and the game is just over? What if he says the door you chose is eliminated and the remaining door is your prize if you chose correctly? What if you win and then he says you have to play best 2 out of 3 to really win, and if you win again he says 3 out of 5, and keeps moving the goalposts until you lose?
Suggesting the problem is flawed because you can imagine up fringe scenarios that are not explicitly excluded does not seem like a useful criticism.
1/3 of the time, you guess correctly on your initial guess. If you switch, you'd be wrong.
2/3 of the time, you guess incorrectly on your initial guess. If you switch, you're right.
So when switching, the expecting outcome 1/3 of the time is 0, but the expected outcome 2/3 of the time 1. (1/3)0 + (2/3)1 = 2/3
The original problem is more complicated.
{
int count = 0;
int i;
for (i = 0; i < 1000; i++) {
int choice1 = rand()%3;
int actual = rand()%3;
if (choice1 != actual)
count++;
}Kudos to the author.
All true... but if you toss a coin to choose whether to switch or not, the odds are 50:50...
Choosing between any two outcomes with a coin flip where one outcome is good X% of the time and the other is good 1-X% (the rest) of the time will always give you a 50/50 good outcome...
That's where the "imagine there are 1000 doors" extrapolations fail. If there are 1000 doors and Monty can choose to open just one, then there's no point switching to one of the other 998. Those comparisons only work if he is obliged to open every goat door.