In a country, all families want a boy. They keep having babies till a boy is born. What is the expected ratio of boys and girls in the country?
Solution:
Assumptions: Probability of having a boy or girl is same. Also, the probability of next kid being a boy doesn’t depend on history.
The problem can be solved by counting expected number of girls before a baby boy is born.
Let NG be the expected no. of girls before a boy is born
Let p be the probability that a child is girl and (1-p)
be probability that a child is boy.
NG can be written as sum of following infinite series.
NG = 0*(1-p) + 1*p*(1-p) + 2*p*p*(1-p) + 3*p*p*p*(1-p) + 4*p*p*p*p*(1-p) +.....
Putting p = 1/2 and (1-p) = 1/2 in above formula.
NG = 0*(1/2) + 1*(1/2)2 + 2*(1/2)3 + 3*(1/2)4 + 4*(1/2)5 + ...
1/2*NG = 0*(1/2)2 + 1*(1/2)3 + 2*(1/2)4 + 3*(1/2)5 + 4*(1/2)6 + ...
NG - NG/2 = 1*(1/2)2 + 1*(1/2)3 + 1*(1/2)4 + 1*(1/2)5 + 1*(1/2)6 + ...
Using sum formula of infinite geometrical progression with
ratio less than 1
NG/2 = (1/4)/(1-1/2) = 1/2
NG = 1
So Expected Number of number of girls = 1
Since the expected number of girls is 1 and there is always a baby boy, the expected ratio of boys and girls is 50:50
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape,
GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out -
check it out now!
Last Updated :
19 Jan, 2023
Like Article
Save Article