Suppose that a family has exactly n children (n ≥ 2). Assume that the probability that any child will be a girl is 1/2 and that all births are independent. Given that the family has at least one girl, determine the probability that the family has at least one boy.
This is how I went about it:
Since we know that the family has at least one girl, we now have to determine the probability that the family has at least one boy from a pool of n-1 children.
Thus, probability is equal to:
1-Probability of having no boys
=1-(1/2)^(n-1)
But the answer is (1-(1/2)^(n-1)) / (1-(1/2)^(n))
The structure of the answer suggests that Bayes theorem is being used in the correct answer, but even the Bayes theorem should lead to my answer. I do not know where I am going wrong?