The country where every family wants a boy
In a certain country every family follows the same rule: keep having children until you have a boy, then stop. Each birth is a boy or a girl with equal probability, independently of everything else.
Someone argues: "Families with girls keep trying, so there will be lots of girls. Families stop as soon as they get a boy, so boys are rare. The population will be mostly girls."
Is that right? In the long run, what is the ratio of boys to girls among all the children born?
Show a hint
Look at it from the point of view of the births rather than the families. Does the rule change the chance that any particular birth is a boy?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.