# Puzzle 17 | (Ratio of Boys and Girls in a Country where people want only boys)

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.

LetNGbe 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

## Recommended Posts:

- Puzzle 1 | (How to Measure 45 minutes using two identical wires?)
- Puzzle 2 | (Find ages of daughters)
- Puzzle 3 | (Calculate total distance travelled by bee)
- Puzzle 4 | (Pay an employee using a 7 units gold rod?)
- Puzzle 13 | (100 Prisoners with Red/Black Hats)
- Puzzle 5 | (Finding the poisoned wine)
- Puzzle 6 | (Monty Hall problem)
- Puzzle 7 | (3 Bulbs and 3 Switches)
- Puzzle 8 | (Find the Jar with contaminated pills)
- Puzzle 9 | (Find the fastest 3 horses)
- Puzzle 10 | (A Man with Medical Condition and 2 Pills)
- Puzzle 11 | (1000 Coins and 10 Bags)
- Puzzle 12 | (Maximize probability of White Ball)
- Puzzle 14 | (Strategy for a 2 Player Coin Game)
- Puzzle 15 | (Camel and Banana Puzzle)