Making the Monty Hall problem weirder but obvious
dyno-might.github.io
dyno-might.github.io
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.
When you put the games in terms of "you and a friend playing the game simultaneously", most people get it.
You and a friend are playing the game simultaneously; you both decide ahead of time to: a. always pick the same initial door b. no matter what Monty does, you ALWAYS switch, your friend NEVER does.
The possible outcomes before the reveal are: * Monty wins, because he shows you the car. We agree ahead of time that this never happens.
Now, since you know one of you is going to win, since Monty didn't, who has the better chance? Your friend started with a 1/3 chance, and he hasn't switched; does his chance suddenly change because Monty opened a door? Most people (not all!) will agree that it has not.
Since one of you MUST win, and friend has 1/3 chance, what's left?
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.
That said, though, if you're trying to convince someone of the correctness of the Monty Hall Problem, and they're stuck on that misconception, saying "well you may as well switch in case I'm right" isn't a great argument.
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.
If Monty chooses randomly both strategies fail 2/3 of the time.
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.
Its like saying soccer players could score more if they picked up the ball and ran with it. While true, you are no longer describing the game of soccer.
By that logic, so does the remaining door. 1/3 vs 1/3.
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.
Alright just working through your logic here. Let's say I pick the first door always. I'll write out all the possible configurationss with both possibilities for Monty.
CGG > Monty reveals mid (Goat)
CGG > Monty reveals right (Goat)
----
GCG > Monty reveals mid (Car)
GCG > Monty reveals right (Goat)
---
GGC > Monty reveals mid (Goat)
GGC > Monty reveals right (Car)
So there's 4 worlds where Monty reveals a goat. In two of them, I picked a car initially. In the other two, I get a car by switching.
My prior post is mistaken -- thank you!
(C)GG - switch and lose
(G)CG - switch and win
(G)GC - switch and win
There are other situations where the game is over before you get a decision.
Both GCG and GGC are eliminated half the time before you get to make a decision. But CGG is never eliminated before you get to make a decision.
Once you're making a decision and the game isn't already over, you can use this information -- that the game didn't end -- to assign a 50% chance of being in CGG, and 25% of each of the other two.
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.
The key part of this sentence that makes it true, is the "for certain personality types".
I would wager the majority of personality types however, it would put you on a higher velocity trajectory to willful ignorance.
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.
WLOG assume the car is in door A (The rest will be the same by symmetry.)
You pick A, B, or C.
The host picks one of the other two doors to show you.
The universes can be described by your choice, followed by the host's random choice. There are 6 possibilities: AB, AC, BA, BC, CA, CB.
Since we're not in a universe where the host chose a car, we eliminate BA and CA.
We are left with four possibilities: AB, AC, BC, CB.
AB = You chose the correct door. (probability 1/4)
AC = You chose the correct door. (probability 1/4)
BC = You chose the wrong door. (probability 1/4)
CB = You chose the wrong door. (probability 1/4)
Since the host's choice was random, it's 50/50 as to whether the car is behind the door you chose or the remaining door.
This same reasoning breaks down when the host knows what's behind the doors because you're no longer eliminating a couple of the universes and it's a 2/6 vs 4/6 situation.
If you're playing blackjack, and you hit on a 19, but you have x-ray vision and you know a 2 is at the top of the deck, you're not playing the same game as you would be if you didn't have that knowledge.
Same with the Monty Hall problem. It is a critical distinction whether opening the door has a 0% chance, or a 33% chance, of showing you a car.
I thought as you think. I wrote a simulation to show I was right. I was wrong.
I have had this interchange several times. Invariably it goes one of two ways. They have endless reasons why they have to be right and they don't need to write a goddamn simulation, or they tell me they wrote the simulation and they have learned they were wrong.
This is basically just a different way of saying that Monty looks behind the door to be sure to only reveal goats.
Yes, the probability of wins will be different in these two scenarios, but it doesn’t affect the conclusion: when Monty reveals a goat, you should always switch.
Edit: if you believe I am the confused one after this comment, I will go make the simulation as you suggest.
In one, Monty reliably reveals a goat. In the other, Monty picks randomly between the other two doors.
We are, in parallel universes, playing both of those games. We know which. The host has just revealed a goat.
I read fouronnes3 as saying that these two situations are the same. They are not.
As I said, the outcome per game will be different (since you suddenly have an additional opportunity to lose), but the math around whether or not to switch when shown a goat remains unchanged.
To put it another way, if Monty is choosing randomly, half the time where you would win by switching, instead the game just ends/isn't counted, but the same is not true of the case where you win by not switching. From a bayesian point of view, Monty randomly revealing a goat should increase your belief that you picked the car the first time.
That said, switching is not worse than not switching unless Monty is biased towards revealing the car instead.
1) I roll a 3-sided die (or a 6 sided, wrapping) and keep it covered.
2) You pick a number, 1-3
3) I flip a coin. If it's heads, I pick the lower available number; if it's tails I pick the higher.
4) I peak at the die. If it's my number, we reveal and start over.
5) I (always, at this point) offer you a wager: if the die shows your number (so you would have lost if you switch), you pay me $7; if the die doesn't show your number, I pay you $5.
Assuming you believe the die and coin are fair, etc, would you agree to play that game 1000 times? In those games, is there a reason you would turn down the wager?Is it the same game if I flip the coin secretly, peek at the die, announce my number (picked algorithmically in the obvious way), and then pay out according to whether switching would win (as above)?
Because (assuming I've explained these games as I intend... it's getting late) I would play the former with you not the latter (but I would play the latter if we switched the payments around - I chose 5 and 7 because 7/12 is halfway between 1/2 and 2/3).
No, it does not.
>> if (montys_choice === car_door) { i -= 1; continue; }
This discards the game where Monty chose a car.
>> do { montys_choice = Math.floor(Math.random() * 3); } while (montys_choice === my_choice || montys_choice === car_door);
This makes Monty never choose a door with a car.
Neither one counts the game where Monty opened a door with a car as a win for either staying or switching.
var num_stays_wins = 0; var num_switches_wins = 0; for (var i = 0; i < 100000; i++) { const car_door = Math.floor(Math.random() * 3); const my_choice = Math.floor(Math.random() * 3); var montys_choice; do { montys_choice = Math.floor(Math.random() * 3); } while (montys_choice === my_choice); if (montys_choice === car_door) { i -= 1; continue; } if (my_choice === car_door) { num_stays_wins += 1; } else { num_switches_wins += 1; } } console.log(num_stays_wins, num_switches_wins);
and var num_stays_wins = 0; var num_switches_wins = 0; for (var i = 0; i < 100000; i++) { const car_door = Math.floor(Math.random() * 3); const my_choice = Math.floor(Math.random() * 3); var montys_choice; do { montys_choice = Math.floor(Math.random() * 3); } while (montys_choice === my_choice || montys_choice === car_door); if (my_choice === car_door) { num_stays_wins += 1; } else { num_switches_wins += 1; } } console.log(num_stays_wins, num_switches_wins);
(The difference is in the calculation of `montys_choice`.)The subset of games where they close different doors is smaller than all possible games.
The probability that the host opens a door with a goat is always the same. (Again, under jtsiskin’s assumption that he picks randomly!)
As before, switching is essentially saying "I think I got it wrong on my first try", which is a good bet.
Monty opening a door with a goat doesn't change the probability of your initial door being right: it's always 1/3. You're not choosing between two doors; you're choosing between "I think I got it right the first time" (1/3) vs "I got it wrong the first time" (2/3) -- the second is more probable.
The game where there are two simultaneous participants, both free to open any door (including both picking the same door) only muddles things and offers no insight. It's effectively two simultaneous but independent games. How they are going to split the price if they both win, anyway? ;)
And if they switch both have probability 2/3 of getting the car? Is this some form of car sharing?
Maybe you should try to play with three cards and one ace. Pick one card (you are the first contestant). Pick a second card (you are also the second contestant). Flip the remaining card. If was the ace start again.
Now, do you prefer card #2 to card #1 and simultaneously prefer card #1 to card #2?
Yes.
> Where does the car go if no one gets it?
I don't understand your question. What does this have to do with probabilities?
> And if they switch both have probability 2/3 of getting the car?
Yes. Remember, because both can pick the same door, this is effectively two independent games running simultaneously.
They each have a 2/3 probability of getting the car because, when they first chose, they had each 1/3 of getting it right. Each contestant's choice and corresponding probability of winning is independent of the other's.
> Is this some form of car sharing?
That's what I asked :) Car sharing makes little sense, prize-wise, which is why this makes no sense as a contest. But in regards to probabilities, it makes no difference: yes, both contestants should switch.
> Maybe you should try to play with three cards and one ace.
There are only 3 doors, so you should only use 3 cards.
> Now, do you prefer card #2 to card #1 and simultaneously prefer card #1 to card #2?
I don't understand your question. Probabilities are computed independently for each contestant. There's no "simultaneous preference".
Player #1 has picked door A
Player #2 has picked door B
The host has opened door C and there was a goat
At this point:
What are the chances of winning of player #1 if he keeps his pick of door A? And if he switches to door B?
What are the chances of winning of player #2?
Player #2 also had a 1/3 prob of having picked the right door. Therefore, she has a 2/3 prob of winning if she switches.
In summary, both should switch. This is independent of whether they chose the same door between themselves. In other words, in a game where you're not forced by the other player's choices, your probability of winning is independent of the other player's. Your strategy should always be to switch (you can verify this empirically!).
The probability of player #1 getting the car if he keeps his door, which is equal to the probability that the car is behind door A, is 1/3
The probability of player #1 getting the car if he switches, which is equal to the probability that the car is behind door B, is 2/3
The probability of player #2 if he keeps his door, which is equal to the probability that the car is behind door B, is 1/3
The probability of player #2 getting the car if he switches, which is equal to the probability that the car is behind door A, is 2/3
In summary, the car is:
Behind door C with probability 0
Behind door A with probability 1/3
Behind door B with probability 2/3
Behind door B with probability 1/3
Behind door A with probability 2/3
You don't have probabilities "behind doors", you have probabilities of "chose right the first time". The probabilities of players #1 and #2 choosing right are clearly independent.
But don't trust me: try it!
So you have Player A who chose door 1. The host flips the goat in door 3.
You have Player B who chooses door 2. For them the host flips open the goat in door 1.
Player A should switch, and wins the car. Player B should switch, but had the car and loses it. The right move in both their cases was to switch.
Really, its no different than playing two separate games. Unless, like you said, you somehow change the rules and limit someones choices, in which case Im not sure why its a part of the conversation, other than being introduced through confusion.
https://news.ycombinator.com/item?id=24713352
If the players pick different doors, the host will open the third door. That prevents him from being sure to get a goat, in the same way that opening a door at random in the single-player case prevents him from being sure to get a goat.
For this reason, both players should be playing "blind", without seeing the other's choices or the door Monty opens for the other player. Anything else doesn't make sense for the game.
As it does removing the host's ability to choose a non-winning door in the variant where "the host had just picked at random from the two doors, and it happened to show a goat". That doesn't work the same either because it's not the same game.
After player #1 has picked door A, player #2 has picked door B and door C has been opened revealing a goat:
a) if player #1 stays with door A his probability of winning is ___
b) if player #1 switches to door B his probability of winning is ___
c) if player #2 stays with door B his probability of winning is ___
d) if player #2 switches to door A his probability of winning is ___
e) the probabilty that the car is behind door A is ___
f) the probabilty that the car is behind door B is ___
g) the probabilty that the car is behind door C is ___
a) The probability of winning if staying: 1/3
b) The probability of winning if switching: 2/3
c) The probability of the car being behind door the player chose is the same as a): 1/3
d) The probability of the car being behind the door Monty didn't open is 2/3
e) The probability of the car being behind the door Monty did open is zero: we know he chose a goat!
Note that the game doesn't work if it's not run independently for both players, because if they both choose goats, Monty would be forced to open a door hiding a car, ruining the game (it makes no sense at that point to either stay or switch). In order for the game to work the way I imagine you want, we must assume one player always picks a goat and the other a car... which cannot be guaranteed.
Rules2: "One player picks a door, the second picks a door (maybe the same), the host opens a door that has not been picked (if there are two he picks at random). Then the players can either keep their choice or switch to the other closed door."
Scenario2: "Player #1 picked one door, player #2 picked another door, the third door was opened and there was a goat behind it."
In that scenario, what are the probabilities?I agree it's different from the original problem, that's the point!
Rules0: "The player picks a door, the host opens a door that has not been picked with full knowledge that there will be a goat behind it. Then the player can either keep his choice or switch to the other closed door."
Scenario0: "The player picked one door, the host opened another door and there was a goat behind it."
But the game I proposed is equivalent to the version of the problem that some people, including you apparently [0], insist in this thread that is equivalent to the original problem. Rules1: "The player picks a door, the host opens another door selected at random. Then the player can either keep his choice or switch to the other closed door."
Scenario1: "The player picked one door, the host opened another door and there was a goat behind it."
The latter is not equivalent to the original problem. The situation is similar but the rules are different. The solution is different.However the solution of Problems 1 and 2 is the same. In both cases the rules allow for the car being unveiled when the host opens the door (it happens with probability 1/3). In both cases under the scenarios proposed there is no point in switching doors.
They are both different to the original problem where everybody knows beforehand that the door opened will hide a goat.
[0] The problem I proposed at https://news.ycombinator.com/item?id=24707305 is also equivalent:
Rules1': "The player picks a door, and opens another door selected at random. Then he can either keep his choice or switch to the other closed door."
Scenario1': "The player picked one door, then opened another door and there was a goat behind it."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?
This is how I understand the Monty Hall problem (Using 3 doors):
1) You are asked to choose a door from A, B or C. You choose A.
Probabilities:
p(A = Car) = 1/3
p(not A = Car) = p(B or C = Car) = 2/3
2) Monty opens a door and shows you a goat. Let's say he opens door B and gives you the choice to switch from door A. Probabilities with B eliminated:
p(A = Car) = 1/3
p(not A = Car) = p(C = Car) = 2/3
3) The probability of the car being behind door A remains unchanged at 1/3, therefore the probability of the car being behind not A is also still 2/3. Since door B has been eliminated, this means the probability that the car is behind door C _must_ be 2/3! Therefore, we choose to switch from door A to door C.If you made a one in a million guess the first time, your door has a car. If you didn’t, the other remaining door must have the car. Which do you choose?
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.
The first door will have the car 1/3 of the time. The second door's chances had been expanded to the remaining 2/3 percent thanks to Monty always choosing the last 1/3 door which is guaranteed to not have a car.
I'm thinking of a number between 1 and 10, guess it. If I now tell you a number I promise is not the one I was thinking and not your number, you have no more information about if you were correct.
So, you make a totally random choice. That choice must be 1/3 right, right? Now the thing that you already knew would definitely happen happens: Monty opens a goat door. How can your odds suddenly jump to 1/2?
Are you saying every single time you play the game, you always have a 1/2 chance of getting it right first time?
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%.
You pick a door. Monty picks another door at random - he has clearly committed to doing so, flips a coin in front of you or whatever. God only knows what would have happened if he'd revealed a car, but this time he didn't. Having found yourself in that situation, what are your odds if you switch doors?
If you simulate this procedure, you'll find that the number of outcomes where "switch" wins is about 1/3 of the total games; "stick" wins in about 1/3 of the total games; and 1/3 of the total games Monty revealed the car. When Monty does pick the goat reliably, as in the Monty Hall Problem as it was intended to be understood, Monty is doing the work to convert those "revealed" games into wins for "switch".
If you disagree, I'll happily take your money.
I mean that literally - how can I write this into a simulation to test that there's a difference?
If you find yourself actually in the situation, you need to make your best guess from what information is available.
As for simulation, write a function that handles a single play through of the game and returns the outcome if you switch. Make Monty's strategy a parameter. Remember that "Monty revealed the car" is a separate outcome from "win" or "lose". Run that function a whole bunch of times, counting the outcomes. Compare the ratio between wins and losses, at various choices of strategy.
To really drive home the point that strategy can matter, consider another possibility: maybe this season the studio executives have decided that cutting costs is more important than having an interesting game show, and Monty's strategy is now "reveal the car if you haven't already chosen it". Monty has revealed a goat. Is there still a 2/3 chance that you didn't pick the car?
Problem-2: "You pick a door. Monty opens a door at random, which just happens to be a goat. Calculate probability of winning if staying."
Both are conditional probability P(A|B) (that is, probability of A happening, under the assumption B has happened).
- A is probability of picking the correct door at the first try (or switching if you prefer)
- B is the probability that Monty picked a door with a goat
P(A|B) is defined as: P(A|B) = P(A and B) / P(B)In both problems P(A) is 1/3.
In Problem-1, P(B) is 1 because Monty knows and it's not a random event and P(A and B) = P(A), so P(A|B) = P(A)*P(B)/P(B) = P(A) = 1/3.
In Problem-2, P(A) is 1/3, P(B) is 2/3, P(A and B) is 1/3 (if you pick a car, Monty is guaranteed to pick a goat), so P(A|B) = 1/3 / 2/3 = 1/2.
The complete cases for the choices is:
Problem-1:
1) You pick goat#1, Monty opens goat#2
2) You pick goat#2, Monty opens goat#1
3) You pick car, Monty chooses a goat of his liking
Problem-2: 1) You pick goat#1, Monty opens goat#2
2) You pick goat#2, Monty opens goat#1
3) You pick car, Monty opens goat#1
4) You pick car, Monty opens goat#2
5) You pick goat#1, Monty opens car
6) You pick goat#2, Monty opens car
We know Monty didn't pick a car, that reduces it to:Problem-1:
1) You pick goat#1, Monty opens goat#2
2) You pick goat#2, Monty opens goat#1
3) You pick car, Monty chooses a goat of his liking
Problem-2: 1) You pick goat#1, Monty opens goat#2
2) You pick goat#2, Monty opens goat#1
3) You pick car, Monty opens goat#1
4) You pick car, Monty opens goat#2
Or, 1/3 for Problem-1, 2/4 (=1/2) for Problem-2 1) picks randomly and opens the door, or
2) picks randomly and then, if that door has a car, switches.
His application of knowledge is converting those cases that would have been thrown away in case 1 into victories for "switch".The counts bear this out. If you simulate it, 1/3 of all games go to 'stick' regardless. Either 1/3 or 2/3 go to 'switch', and either 1/3 or 0/3 (respectively) end up with Monty revealing the car.
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.
It's a Conditional Probability of non independent events.
(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.
That’s true before he opens a door. Then either
A) he shows a car and the odds of winning with this strategy are 100%
or
B) he shows a goat and the odds of winning with this strategy are between 1/2 and 2/3 depending on how the choice of door was made
If the choice is random, he shows a car with probability 1/3. The probability of winning is 1/3 x 1 + 2/3 x 1/2 = 2/3
But that analysis is for the unconditional problem and what we’re asked is what to do in case B, after a goat has been unveiled.
If he shows always a goat, the probability of winning is 0 x 1 + 1 x 2/3 = 2/3. Here there is no difference between the unconditional and the conditional problems because A never happens.
Monty has now randomly chosen a door, and not revealed a car. If he had revealed a car you would have changed doors to it and won. But he didn't.[0] Now you have a choice to make.
His probability of not revealing a car in the case that both doors you didn't pick had goats behind them, is 100%.
His probability of not revealing a car in the case that one door you didn't pick had a car behind it, is 50%.
We can reason then, that of the three possible scenarios for the two non picked doors {g,c}, {c,g}, {g,g}, that it is equally likely now that since he didn't randomly reveal a car, {g,g} must be weighted twice as much as the other two.
Therefore, we must be as likely to have a goat behind the remaining door as we didn't.
In conclusion, Monty only changes the problem if he selects with information.
[0] Notice that at this point, we have to throw away from the decision tree 1/3 of the histories, and in all of them switching was beneficial. In what remains then, switching is less beneficial than it was before this trimming.
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?
He chooses randomly from the doors you did not choose, and draws a goat. When offered the choice to switch to the third door, it offers you no benefit. Both are equally likely to contain the car.
Yes switching is. Switching is beneficial IF he shows you a goat out of the doors you didnt choose.
Assume you choose the car (1/3). He will always choose a goat. If you switch, you have a 100% chance of losing. (1/3) * (1/1) = 1/3 chance of losing if you switch.
Assume you choose a goat (2/3). There is a 50% chance that he opens a goat if he chooses randomly. If this happens, there's a 100% chance that you win if you switch. (2/3) * (1/2) * 100% = 1/3 chance that you win if you switch.
The remaining 1/3 chance is voided because we've conditioned the game on him randomly choosing a goat, and not a car. So the probability of winning if you switch is (1/3) / ((1/3) + (1/3)) = (1/2)
exactly 50/50.
In the traditional monty hall, switching gives a 2/3 chance of winning. This is still true in the random variant but only if you're allowed to choose the car door in monty opens that one by chance.
- you choose door 1, goat
-- host chooses door 1, goat
--- switch: 1/2 chance of being right
--- stay: you're wrong
-- host chooses door 2, goat
--- switch: you are right
--- stay: you are wrong
-- host chooses door 3, car
--- switch: you are right
--- stay: you are wrong
- you choose door 2, goat
-- host chooses door 1, goat
--- switch: you are right
--- stay: you're wrong
-- host chooses door 2, goat
--- switch: 1/2 chance of being right
--- stay: you are wrong
-- host chooses door 3, car
--- switch: you are right
--- stay: you are wrong
- you choose door 3, car
-- host chooses door 1, goat
--- switch: you are wrong
--- stay: you are right
-- host chooses door 2, goat
--- switch: you are wrong
--- stay: you are right
-- host chooses door 3, car
--- switch: you are wrong
--- stay: you are right
so there are 6 times out of 9 where the host shows you a goat total, and you are right if you switch 3 out of those 6 times. if you stay each of those 6 times, you're right 2 out of the 6 times.
there are 4 times the host shows you a goat that you didn't choose, and if you switch you are right 2 out of those times. but in this scenario, you are actually right 2 out of those 4 times if you stay, too.
this seems opposite of what i expected. I guess if the host is choosing at random, and you conditionalize on "being shown a goat AND a door you didn't choose" then you're reducing that particular sample space down to be more heavy in the "you got it right originally" scenario, because the "you got it wrong originally" scenarios rule out half the goat doors from the hosts choices we're considering.
No. He picks goat 100% of the time. Choosing not goat is outside the bounds/parameters of the initial constraints.
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.
By the way, once you make that assumption, those other scenarios you presented are also excluded.
> By the way, once you make that assumption, those other scenarios you presented are also excluded.
Even more of a reason that "flaw" shouldn't even be considered.
There is no hidden trickery and no reason to assume the game isn't fair.
In A, Monty Hall behaves like you think: always opens a goat door, always gives the option to switch.
In B, he behaves like I described: opens a goat door and gives the option to switch, but only when the player has chosen the car door. Otherwise he does not let you switch.
And then we find ourselves in this situation:
> 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?
At this point, how do you know you are in world A and not B (or some other world)? What in this problem as given here allows you to determine that?
I bet you could take any problem of similar nature from anywhere and scrutinize hard enough and find some gimmick that lets you claim similar claims about it, but I don't think that's useful or noteworthy.
At the end of the day we all rely on common sense and common assumptions about these kinds of things. It may be true that some don't have the same shared experience to draw upon and lead them to the same understanding as others, but that doesn't make the problem flawed. It just means people understand things differently.
If a significant number of people brought up this issue then my opinion might change, but as I said, this is the only time I've heard of this particular complaint (and I've been enjoying posing this problem to people for decades now), and that means, in my opinion, there is no grounds to claim your misunderstanding as some objective flaw in the wording or presentation of the problem.
If it's about popularity instead of logical argument, of course I'm not the only one who thinks this. There was a really good blog post that laid it out but I can't find it currently. Instead, here's a scientific paper I found just now, the introduction contains the same argument I'm making. And it's far from the only place which agrees.
https://link.springer.com/article/10.1186/2195-5468-2-2
> The problem posed in this way may lead to a lot of controversy, mainly because we do not know whether the behavior of the host had anything to do with your first choice or not.
> Perhaps the host would open a door with a goat only when your first choice was right. In this case, it was not a good choice to change doors.
EDIT: Also several people have pointed this same thing out elsewhere in this thread.
If it was the first time the show ever aired, you could be in a situation where you didn't know whether it was A or B. But in the problem as normally posed, you have time to watch the show for months to years, and you know how Monty behaves.
And once more, I'm talking about the problem as given, not some other problem. It is a self contained math / logic problem.
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.