Boy or Girl Paradox
Interactive Boy or Girl Paradox simulator. Explore conditional probability with Monte Carlo trials. Visualize why P(BB|≥1 boy) = 1/3 vs 1/2.
Mr. Smith has two children. At least one of them is a boy. What is the probability that both children are boys?
Theoretical answer: 1/3 ≈ 0.3333
Mr. Jones has two children. The older child is a boy. What is the probability that both children are boys?
Theoretical answer: 1/2 = 0.5000
Sample Space (eligible families highlighted)
Convergence Chart
Last 20 Single Trials
About
The Boy or Girl Paradox exposes a common failure in conditional probability reasoning. Given a family with two children, the statement "at least one child is a boy" restricts the sample space to 3 equally likely outcomes: BB, BG, GB. Only one of these is two boys, yielding P(BB) = 13. Most people guess 12 because they conflate this with a different question: "the older child is a boy," which fixes one slot and leaves only 2 outcomes. The distinction matters in genetics counseling, actuarial modeling, and any domain where sampling method changes the inference. This tool lets you run both variants side-by-side with up to 1,000,000 Monte Carlo trials so the empirical frequency converges visibly to the theoretical value. Note: the model assumes P(boy) = 0.5 exactly and independent births. Real-world sex ratios hover near 0.512 male, which would shift results slightly.
Formulas
The paradox reduces to two applications of conditional probability via Bayes' theorem on the sample space S = {BB, BG, GB, GG} with each outcome having probability 14.
Variant A - "At least one child is a boy":
P(BB | A) = P(BB ∩ A)P(A) = 1/43/4 = 13Variant B - "The older child is a boy":
P(BB | B) = P(BB ∩ B)P(B) = 1/42/4 = 12Where A = event "at least one boy" = {BB, BG, GB}, B = event "older child is boy" = {BB, BG}, P(A) = 34, and P(B) = 12. The Monte Carlo estimator converges at rate 1√n by the Central Limit Theorem.
Reference Data
| Family | Child 1 | Child 2 | Has ≥ 1 Boy | Older Is Boy | Both Boys |
|---|---|---|---|---|---|
| BB | Boy | Boy | ✓ | ✓ | ✓ |
| BG | Boy | Girl | ✓ | ✓ | ✗ |
| GB | Girl | Boy | ✓ | ✗ | ✗ |
| GG | Girl | Girl | ✗ | ✗ | ✗ |
| Conditional Probabilities | |||||
| P(Both Boys | ≥ 1 Boy) | 13 ≈ 0.3333 | ||||
| P(Both Boys | Older is Boy) | 12 = 0.5000 | ||||
| Related Probability Values | |||||
| P(at least 1 boy) | 34 = 0.75 | ||||
| P(exactly 1 boy) | 12 = 0.50 | ||||
| P(both same sex) | 12 = 0.50 | ||||
| Expected boys in 2-child family | 1.0 | ||||
| Variance of boy count | 0.5 | ||||
| P(BB | Tuesday Boy variant) | 1327 ≈ 0.4815 | ||||
| Real-world P(male birth) | 0.512 (WHO global avg) | ||||
| Real P(BB) given ≥1 boy, p=0.512 | ≈ 0.3441 | ||||