Let b and g represent the boy and the girl child respectively. If a family has two children, the sample space will be
S = {(b, b), (b, g), (g, b), (g, g)}
Let A be the event that both children are boys.
So,
1) Let B be the event that at least one child is a boy.
So,
The conditional probability that both are boys, given that at least one child is a boy, is given by P(A|B).
Therefore,
2) Let C be the event that both child are girls and D be the event that an elder child is a girl.
So, and
Now,
and
The conditional probability that both are girls, given that an elder child is a girl, is given by P (C|D)
Therefore,