A Bayesian Approach to the Mary's Children Problem
Introduction
I'm sure others have seen posts about the Mary's Children Problem.
Mary tells you the sex of one of her children. What is the probability that the other child is the opposite sex? Many say 67% with a conditional probability argument. Many say 50% with a statistical independence argument.
I did some calculations and am finding that the correct answer depends on the setup in a way that I have yet to see identified.
In summary:
If you ask Mary to randomly choose a child and tell you its sex, the probability that the other child is the opposite sex is 50%.
If you ask Mary to tell you whether one of her children is a given sex, and she says yes, the probability that the other child is the opposite sex is 67%.
The calculations:
First case:
Consider the experiment: Mary has two children. She randomly picks one and tells you its sex. What is the probability, given the sex she tells you is “boy”, that the sex of the other child is “girl”?
There are four mutually exclusive possibilities for the sexes of Mary’s children, listed in age order: BB, BG, GB, GG, each of which are equally likely a priori (before Mary speaks).
If Mary says “Boy”, let this event be called Sb. If Mary says “Girl”, let this event be Sg.
We’ll use Bayes’ formula to calculate the probability of BB given Sb: P(BB|Sb).
P(BB|Sb) = P( BB and Sb) / P(Sb) = P(Sb|BB)*P(BB)/P(Sb).
P(Sb) = ½ by symmetry. She is equally likely to say “boy” as “girl” given the setup.
P(Sb|BB) = 1 because Mary must say “boy” if both children are boys.
P(BB) = ¼ because BB is one of four equally likely possibilities for Mary’s offspring.
Therefore P(BB|Sb) = 1*¼ / ½ = ½.
By the law of total probability, the likelihood the other child is a girl is also ½.
Second case:
Consider the experiment: Mary has two children. You ask Mary if either child is a boy, and she says yes. What is the probability that the other child is a girl?
Again, there are four equally likely mutually exclusive possibilities for the sexes of the two children: BB, BG, GB, GG.
The probability that both children are boys given this answer from Mary is:
P(BB| not GG) =P(BB and not GG)/P(not GG) = ¼ / ¾ = ⅓.
So the probability that the other child is a girl is ⅔.
Conclusion
The answer to this dilemma depends on how the statement by Mary about the sex of one of her children is prompted. Is this a random thing that happens in conversation which reveals the sex of a randomly chosen child? Then 50% is correct for the other child having the opposite sex.
Is Mary's statement the result of an intentional question posed to Mary, which selects a sex and asks her if either child has that sex? Then 67% is correct.
The reason that the answers diverge is that when Mary randomly picks a child and tells you its sex, the likelihood is tilted in favor of both children having the sex she tells you, so BB, BG and GB are not equally likely anymore if she says "boy": BB is now more likely. This is why the second case analysis doesn't work for the first case setup.
Let me know what you guys think. Do you agree?