2 ms·
> However, I still fail to comprehend how the "at least one is a boy" quirk maths out to a 1 in 3 chance that his second child is also a boy. Can you program?
by raldi 15y ago
> However, I still fail to comprehend how the "at least one is a boy" quirk maths out to a 1 in 3 chance that his second child is also a boy.
Can you program? If so, write a program which runs the following trial over and over:
1. Assign genders at random to two children
2. If at least one is a boy, increment tally T1
3. If both are boys, increment tally T2
You'll find that T2 / T1 approaches 1/3.