Click any node to reveal its branches
Click any node to reveal its branches
Click any node to reveal its branches
Generate random two-child families. Keep only those with at least one B-Tue. Watch the fraction of two-boy families converge on 13/27.
A common mistake: "generate one B-Tue child, then generate the other." That fixes which child is the Tuesday boy, changing the conditioning. Generate both freely and discard families where neither is B-Tue.
The filter keeps only ~1 in 7 families. You need many raw families to accumulate enough kept ones. With only 100 kept, 0.481 is close enough to 0.5 that sampling noise swamps the signal.
Design a simulation for the door-opening problem.
No filtering needed — the generative process matches the conditioning directly. What changes about how you record outcomes?