There’s a post today over at coding horror that proposed a very simple probability problem. After more than 400 comments (and counting) I’m very surprised that so many people have the wrong answer. The question is this:
Let’s say, hypothetically speaking, you met someone who told you they had two children, and one of them is a girl. What are the odds that person has a boy and a girl?
Actually, I’m not sure if by “odds” Jeff meant this, or probability — as is the case in most everyday use. But assuming that he meant probability, then the solution is as follows.
Let A be the event of having a girl.
Let B be the event of having a boy.
Assume that P(A) = P(B) = 0.5
We know that the person has a girl, thus we are trying to find P(B|A) (probability of B given that A has occurred).
Now we note that A and B are independent events, thus P(B|A) = P(B) = 0.5 (conditional probability).
And there you go, the probability of the person having a boy given that person has a girl is 0.5 (or 50%).
Happy New Year’s folks!