Coding Horror: Monty Hall, Monty Fall, Monty Crawl
codinghorror.com
codinghorror.com
Here Atwood links to a very insightful blog post by Paul Buchheit: http://paulbuchheit.blogspot.com/2009/01/question-is-wrong.h...
To continue the quote:
"...but it was a simple question asked in simple language."
Yes, a simple question, with two perfectly valid interpretations, as described by Buchheit. When I first read the question, I interpreted it the "wrong" way. The simple language that is used to ask the question is too simple, to the point of not being specific.
"I think what they're really objecting to is how unintuitive the answer is."
No sir. I am in fact objecting to the wording.
1) Choose a random parent with exactly two children
2) If that parent has two boys, announce that they do not have two girls. If that parent has two girls, announce that they do not have two boys.
3) If that parent has a boy and a girl, randomly announce one of the above results.
It's easy to see that this has the same results as the first option. Counterintuitively, if that last step is nonrandom, you get the more intuitive result. Say, for example, that we did this:
1) Choose a random parent with exactly two children
2) Announce the gender of the eldest child.
This way, you get even odds that the other child is male or female. It's really counterintuitive, but that's how it works out.
If you select the correct door, switching will yield an empty door.
If you select an empty door, switching will yield a prize.
You have a 2/3 chance of selecting an empty door, thus, 2/3 of the time, switching will grant you the prize.
Now suppose that Monty will always open the empty door as advertised, but he will also always prefer to open a door with the smaller number, if he has a choice of two empty doors to open. If that is how Monty always acts, then given that he's opened door number 3, your probability to win by switching is 100%, and not the usual 2/3. If he's opened door number 2, then your probability to win by switching is 1/2, not the usual 2/3.
If Monty will always choose which of the two empty door to open by random, then the probability to win by switching is indeed 2/3.
There is a way to phrase the problem differently, so that it becomes an unconditional probability problem, and then it doesn't matter how Monty chooses the empty door to open. One way to enforce this interpretation is to phrase it as follows: Suppose some player always chooses to switch. Over many attempts, what will be the approximate proportion of his wins? The answer will be 2/3. But that's not how the problem is usually phrased.
Can somebody please verify this from source, seriously !!
It's the main subject of Chapter 6 of "The Man Who Loved Numbers: The Story of Paul Erdős and the Search for Mathematical Truth", by Paul Hoffman. He quotes Andrew Vázsonyi (who introduced the problem to Erdős) and Ronald Graham (who provided the proof that finally convinced Erdős).
Please correct me if I am wrong !
EDIT: Saw the soln in the pdf and not able to digest it though. Well if Erdos wasn't able to see it...
In the monty fall problem, you first choose a random door. Assuming a random placement of the car and a random guess, you should have a 1/3 chance of choosing the correct door on your first guess, and therefore a 1/3 chance of winning no matter what else happens.
I believe what's really happening in this example is that the Rosenthal is allowing for a possibility that he doesn't explicitly mention: the chance that the host opens the wrong door, nullifying the game and ruining the show.
Since there is a 1/3 chance that you picked the right door, it's a probability of 2/3 that it is in one of the other two doors. The host accidentally opens one of the two remaining doors. Since the host randomly chooses one of the remaining doors, the chance that he picks the door with the car is 1/3. If he does that, the game is invalidated, so Rosenthal ignores that result.
Therefore, the chance that you picked the correct door is 1/3, and the chance that the remaining door is the correct one is 1/3 (the remaining third is the chance that the host ruined the game). Since those are equal probabilities, you end up with an even chance whether or not you switch.
This implies that if you got down to two briefcases on the show, with both the $1,000,000 and $1 left, it's a 50/50 chance of picking the million dollar case whether you switch or not.
I assume that the sample space is: [(b,b),(b,g),(g,b),(g,g)] where the four possible birth sequences are [(younger child is boy, older child is boy), (younger child is boy, older child is girl), (younger child is girl, older child is boy), (younger child is girl, older child is girl)] and the sequences are all equally likely.
So now if you ask, what is the probability that the person has a girl and a boy given that at least one of them is a girl, you can discard (b,b) from your sample space because you know that there is at least one girl.
Now your sample space is [(b,g),(g,b),(g,g)] and the odds that the person has a girl and a boy are 2/3.
The people who argue that it is not 2/3 and yet aren't confused are choosing a different interpretation of the problem. When your acquaintance tells you "one of my children is a girl", they interpret it not as pure information, so to speak, but as an event to condition on.
It's reasonable to suppose, for example, that your acquaintance could have said "one of my children is a girl" or "one of my children is a boy", and used the actual knowledge of his children's gender to pick one of the two possibilities to say (choosing randomly if it's a boy or a girl). In that case, the question becomes: given that he/she said "... a girl" rather than "... a boy", what is the probability that it's a girl and a boy?
In that case, the sample space becomes larger: to (b,b) etc. add also B or G, which is whether the acquaintance said "one of my children is a boy" or "... a girl". The possibilities are:
b,b,B: 1/4 (b,b,G is impossible) g,g,G: 1/4 (g,g,B is impossible) b,g,B: 1/8 b,g,G: 1/8 g,b,B: 1/8 g,b,G: 1/8
Now if you condition this sample space on the event "G", you rule out exactly half the possibilities, and the answer is 1/2.
There are two bucket containing a number of balls. A third of the balls contain iPhones inside, two-thirds contain only navel-fluff. The balls are mixed at random. You have to chose a single ball from one of the buckets.
Obviously the chance of any ball you pick to contain an iPhone is 1/3 regardless of which bucket you choose from - even if the buckets does not contain the same number of balls.
But when you decide on one bucket to pick from, the host takes the other bucket, and removes half of the balls. However, he doesn't remove balls at random - he primarily removes balls containing fluff.
After this you are allowed to reconsider your choice of bucket. I think it is pretty obvious now that there is a better chance of finding an iPhone if you chose from the other bucket, where the host have removed some of the fluff-balls.
The critical point in the Monty Hall problem is that the host eliminates a bad choice, but he always eliminates it from the set of doors you didn't chose. However, this is a subtle detail in how the store is told. If for example the host randomly choose between opening any door containing a goat - including potentially the one the protagonist chose if he happens to choose a door with a goat behind - then it doesn't improve the odds to choose a different door.
Suppose, for example, that Monty has the policy of only revealing a losing door if the player has chosen the winning door; if, on the other hand, the player initially chooses a losing door, then Monty reveals no door and makes no offer to switch, sticking the player with the loss. In that case, if you encounter the same sequence of events in Jeff's problem description, then switching always has zero chance of winning. With the opposite assumption -- that Monty only reveals a losing door if the player has initially chosen a losing door -- switching always has a 100% chance of winning.
Both Jeff and Marilyn nevertheless press forward with the unstated assumption that Monty has no choice in the matter. It turns out that this assumption is not only faulty, but it's also unrealistic: on the actual game show, Monty was under no such obligation.
I'm a little surprised that Jeff, who apparently has read up a little on the topic, didn't bother to grab the much better problem specification from the Wikipedia article.
<Quote>
Nebulous Neighbours:
Your new neighbours have two children of unknown gender. From older to younger, they are equally likely to be girl-girl, girl-boy, boy-girl, or boy- boy. One day you catch a glimpse of a child through their window, and you see that it is a girl. What is the probability that their other child is also a girl?
Solution.
The probabilities that a glimpsed child will be a girl for each of the four possi- bilities (girl-girl, girl-boy, boy-girl, and boy-boy) are respectively 1, 1/2, 1/2, and 0. Since the probabilities must add to 1, the probabilities of these four possibilities are respectively 1/2, 1/4, 1/4, and 0. Hence, the probability is 1/2 that the other child is also a girl.
</Quote>
Can someone explain how glimpsing to one child and seeing that is a girl is different from hearing the parent saying that one child is a girl? How come and getting the same information from your eyes instead of your ears changes the probabilities? (1/2 for the other child to be a boy when seeing, 2/3 when hearing).
What really matters is whether information about one child being a girl fixes a particular child. It doesn't matter how the child is fixed (a popular variation is "I have two chilren and the older one is a girl"), but it does matter that out of the two children, it is now known about a specific one of them that it is a girl. In that case, out of 4 possibilities, 2 are ruled out, and the answer is 1/2.
If all that is known is that one of the children is a girl, only one possibility out of 4 is ruled out, and the answer is 2/3.
Well, that's the case when you glimpse from the window. Probably I'm wrong but I don't see why there is a fix, you still don't know if you see a G in GB or in BG or in GG
The case where you are told the family has at least one girl is potentially different... It depends on how you get this information. If you ask the parent, "Do you have at least one girl?" and they say yes, then the probability of the other child being a girl is 1/3. On the other hand, if you ask the parent, "What can you tell me about your children?" and they say "I have at least one girl", then the probability of the other child being a girl is 1/2. The difference is that in the second case, the parent chooses which child to reveal information about, while in the first case, they are forced to make a combined statement about both children. In the second case, the parent completely reveals the gender of the chosen child while unspecifying the gender of the other, just as good as seeing the chosen child in the window.
Obviously, most people who describe the boy-girl problem are interested in describing the non-intuitive 1/3 result. But in their rush to reveal the "paradox", many state the problem poorly, leaving open the possibility of the 1/2 case (as Jeff did when he presented the problem).
(I added a similar response with more details in the Wikipedia article discussion several months ago: http://en.wikipedia.org/w/index.php?title=Talk:Boy_or_Girl_p... I must warn, however, that the concluding paragraph there is incorrect: Jeff's problem is fundamentally undecidable as stated.)
Yes. And yes.
Your final probability in Monty Crawl is still only winning 2/3, because you can't do better than an always switch strategy, and you will pick the winning door initially 1/3 of the time.