0

On a practice exam from statistics I encountered a very difficult exercise I couldn't manage to solve:


In the tent next to you there is a family with two children. Early in the morning you see a boy coming out of the tent. What is the probability that the other child is a girl?

Use Bayes' Rule


My approach to the solution was the following:

We assume $P(GIRL)$ = 0.5 and similarly $P(BOY)$ = 0.5.

We have to compute the following conditional probability: $P($One child is a girl| One child is a boy).

By applying Bayes' rule we should be able to compute this probability.

Bayes Rule: $P(A|B)$ $=$ $\frac{P(B|A)*P(A)}{P(B|A)*P(A) + P(B|A^c)*P(A^c)}$

Could anyone please help me with this, I tried many things but nothing worked out..

Nedellyzer
  • 1,174
  • There is not enough information to solve the problem as stated. hejseb's answer is correct if we consider the information "you see a boy coming out of the tent" to be equivalent to the information "there is at least one boy in the family" (or at least equivalent conditional on your having observed the tent.) But perhaps it is more likely to see a boy coming out of the tent if there are two boys than it is to see a boy coming out of the tent if there is only one boy. – Trevor Wilson Oct 24 '13 at 20:14

4 Answers4

2

You can obtain two answers to this, actually. The problem is called the Sisters' Paradox. See this excellent explanation.

The most common solution, I would say, goes as follows. Let $G$ denote a girl, and $B$ a boy such that $P(BG)$ means probability of a girl and a boy. $P(GG)=P(BB)=1/4$, $P(BG)=1/2$. Conditioning on a boy($P(B)$):

$$ P(BG|B)=\frac{P(BG)}{P(B)}=\frac{P(BG)}{P(BB)+P(BG)}=\frac{1/2}{1/2+1/4}=\frac{2}{3} $$

Note that in the reference this way of solving the question yields $1/3$, but that's because in that case it's $P(GG|G)$ (or, equivalently, $P(BB|B)$) rather than one of each. But, $P(BB|B)=1-P(BG|B)=1-2/3=1/3$, so the answers are in spirit the same - just different formulations.

hejseb
  • 4,745
  • 1
  • 17
  • 35
2

The answer is simply 1/2. If you are required to use conditional probability, it goes like this: $$P(G_2 | B_1) = \frac{P(G_2 \cap B_1)}{P(B_1)} = \frac{P(G_2) P(B_1)}{P(B_1)} = \frac{(1/2)(1/2)}{1/2} = 1/2$$

Don't confuse this question with a very similar one where all we know at the start is that at least one child is a boy. If you have seen one child, and that one is a boy, it has no effect on the probability that the remaining child is a girl; they are independent events.

[edit] Despite being down-voted on this one, I am sticking to my guns. Here is another way to look at it. Initially, the possibilities are {BB, BG, GB, GG}, where the first letter denotes the first child seen and all possibilities are equally likely, by assumption. After the first child is seen the remaining possibilities are {BB, BG}, each of which is equally likely. The event that the second child is a girl corresponds to BG, with probability 1/2.

I repeat, don't confuse this with the problem where all we know is that at least one child is a boy. In that case, after elimination the possibilities are {BB, BG, GB]; but that's different.[/edit]

awkward
  • 14,736
  • This answer is wrong. You oversimplificated the calculation of some of your probabilities. Please refer to hejseb's answer; the answer to this question should be $\frac{2}{3}$. – dreamer Jul 06 '13 at 10:37
  • 1
    See my expanded answer above. – awkward Jul 06 '13 at 15:05
  • Your answer does not take into account the fact that $GB$ (as in the girl is the oldest) would also be a possible outcome. The order in which the children were born and that in which they leave the tent should be clearly distinguished between. – dreamer Jul 06 '13 at 15:12
  • 1
    Where do you see "oldest" in the problem statement? We saw one child, and that child was a boy. I believe there is a good discussion here: http://mathforum.org/dr.math/faq/faq.boygirl.choose.html In particular, the section titled "Choosing the child first". – awkward Jul 06 '13 at 15:31
  • Another argument, what makes you think that $G_2 \text{ and } B_1$ are independent? Those are assumptions you cannot just make. If we could make such assumptions the whole exercise would have been pointless in the first place. – dreamer Jul 06 '13 at 15:44
  • I think $G_2$ and $B_1$ are independent because knowing that the first child seen is a boy does not convey any information about the sex of the second child. Here is an experiment that I think is exactly analogous to the OP. Suppose we put two coins in a box, close it, and shake the box. We open the box just a little and one coin slides out; it is a Head. What is the probability that the second coin is a Tail? Do you see any essential difference between this experiment and the OP, so far as the probabilities are concerned? If so, what? As to the point of the exercise... – awkward Jul 06 '13 at 16:25
  • There is certainly a difference as here there is a 'limited' sample space of possibilities. But however you want to put it; this exercise is made to show that events that seem independent are in fact not. Whatever reason you might have, there is no way you can justify using independence if that is not given. The evidence that I have is the other answer that does not use such things results in a different probability (which hence means that your assumption must have been wrong). Other than that, there is nothing I can say to convince you. – dreamer Jul 06 '13 at 17:12
  • @awkward Have you had a look at the reference in my answer? It seems like your answer corresponds to a simplification of its alternative answer, which indeed yields 1/2. Though I am guessing it's not the answer sought here, as it's pointlessly trivial to use conditional probabilities when dealing with independent events as in your answer. The ambiguity illustrated here is why it is known as a paradox! – hejseb Jul 06 '13 at 20:56
  • rbm: We disagree as to the purpose of the exercise, evidently. Without its author here, who knows? I think you are correct that we will have to agree to disagree. hejseb: I did read your reference. Notice that the first case starts with "they have a daughter" and has an answer of 1/3. The second case, with answer 1/2, starts with "the door is opened by a girl". The OP is just like the second case, except that the sexes have been switched and the house has been changed to a tent. – awkward Jul 07 '13 at 00:28
  • @awkward, it might be far too late for me to comment on this but I believe your answer should be the accepted/correct answer. The random child coming out of the tent is independent of who the other hidden child might be. – coffee-raid Aug 19 '21 at 12:16
  • @coffee-raid Thank you for the vote of confidence. I am afraid that sometimes these problems are a matter of interpretation and it is simply not possible to get everyone to agree. – awkward Aug 19 '21 at 17:47
1

The answer that you accepted is wrong.

Although it seems that this question asks "what is the probability that the second child is a girl given that there is at least one boy in the family?", it actually asks "what is the probability that the other child is a girl given that you randomly see one of the child and learn that it is a boy?"

Sort of wordy, but here's how to work the second (actual) case:

Let $G$ = family has one girl and one boy $,\quad$ $B$ = you see a boy child coming out of the tent

Now, $$P(G|B) = \frac{P(G.B)}{P(B)}\\ =\frac{{1/2}.{1/2}}{1/2} \\ =\frac{1}{2} $$

The underlying concept here is that the fact that you saw one of the children coming out of the tent and found out its gender is different from that of knowing the gender of one of the children beforehand. The gender of the other hidden child is independent of the gender of the random child coming out of the tent.

Mathematically,

Let $G_1$ = one of the child is a girl,

$B_2$ = one of the child is a boy,

$R$ = a random child that you see coming from the tent is a boy

So, $$ P(G_1) = 1/2, \quad P(B_2) = 1/2, \quad P(R) = 1/2 \\ P(G_1 \cap B_2) = \{Girl Boy, Boy Girl\} = \frac{2}{4} \\ P(G_1 \cap B_2 | R) = \frac{P(G_1 \cap B_2 \cap R)}{P(R)}\\ =\frac{(2/4).(1/2)}{1/2} \\ = \frac{1}{2} $$

0

Let $S$ refer to the child seen. Let $BG$ refer to the event that the family has one boy and one girl (i.e. I don't mean to distinguish $BG$ and $GB$). Then a minor variant of Bayes' rule gives

$$ P(BG | S=B) = \frac{P(S=B | BG) P(BG)}{ P(S=B | BG) P(BG) + P(S=B | BB) P(BB) + P(S=B | GG) P(GG)} = \frac{P(S=B | BG) \cdot \frac{1}{2}}{P(S=B | BG) \cdot\frac{1}{2} + 1 \cdot \frac{1}{4} + 0 \cdot \frac{1}{4}} = \frac{2 P(S=B | BG)}{2 P(S=B | BG) + 1} $$

so to answer the question, you need to decide upon the probability that you would see the boy if it happened to be boy-girl.

If you decide $P(S=B|BG) = 1/2$, then $P(BG|S=B) = 1/2$.


What you tried to compute is incorrect;

$$ P(\text{one is a girl} | \text{one is a boy}) = \frac{P(\text{one is a girl and one is a boy})}{P(\text{one is a boy})} = \frac{P(BG)}{P(BG) + P(BB)} = \frac{1/2}{1/2 + 1/4} = \frac{2}{3} $$

The problem is that this approach discards information: specifically that one child was seen, and it was that child that was a boy.

More explicitly, this calculation also includes the possibility that the family has one boy and one girl, and you saw a girl come out of the tent in the morning.