Why Coin Flips Make Unfair Teams (And the Math That Fixes It)
If you need to split 1,000 patients into a Treatment group and a Control group for a medical trial, or split a school into Red House and Blue House, the instinct is simple: flip a fair coin for each person.
It sounds completely unbiased. In practice, random coin flips fail.
Every person belongs to multiple overlapping groups at the same time (age, medical history, blood pressure, or in a school, math club, music, debate, and track). Flip coins independently and random streaks clump up. One group ends up split 65 to 35, quietly skewing the results.
In a landmark paper highlighted by Quanta Magazine in August 2026, computer scientists Nikhil Bansal (University of Michigan) and Haotian Jiang (University of Chicago) broke a 28-year-old mathematical wall in combinatorial discrepancy theory, the branch of math that measures the smallest possible imbalance you can achieve across overlapping groups.
Click the buttons below to compare random coin flips against guided balancing across 12 students in 4 overlapping clubs.
Interactive Math Model (Combinatorial Discrepancy)
Split 12 students across 4 overlapping clubs into Team A and Team B
12 Students (Solid = Team A, White = Team B)
WORST CLUB IMBALANCE: 4 (RANDOM COIN CLUMPING)
Fair coins are unbiased on average, yet random streaks routinely stack one club heavily onto Team A or Team B. Click Flip Coins Randomly again to see how often lopsided gaps show up.
Why Fair Coins Still Create Lopsided Groups
Imagine flipping a fair coin 100 times. Most people expect roughly 50 heads and 50 tails, give or take 1 or 2.
In reality, random walks drift. The typical gap between heads and tails scales with the square root of the group size. Across 100 people, a gap of 10 is completely normal. Now track 50 overlapping traits at once, and the odds that at least one trait gets badly lopsided shoot straight up.
Mathematicians call the worst imbalance across all groups the discrepancy. Back in 1998, mathematician Wojciech Banaszczyk proved a famous ceiling on how tightly you could balance overlapping sets in two classic open problems: the Komlós problem and the Beck-Fiala conjecture.
For nearly three decades, nobody could beat Banaszczyk's 1998 bound.
How Bansal and Jiang Broke a 28-Year Ceiling
Instead of flipping coins one person at a time and hoping for the best, Bansal and Jiang treated team assignment as a guided random walk.
Picture every person starting undecided at 0, sitting halfway between Team A (+1) and Team B (-1). Rather than jumping straight to +1 or -1 in one shot, the math nudges everyone in tiny, coordinated steps.
At every step, the algorithm checks which overlapping groups are starting to tip out of balance and steers the next nudge to cancel out that drift. By keeping those corrections independent across overlapping groups (a technique they call decoupling via affine spectral-independence), they cut the worst-case imbalance bound in the Komlós problem from the square root of log n down to the fourth root of log n, and resolved the Beck-Fiala conjecture across a huge new range of group sizes.
Why This Matters Outside Pure Math
Balanced splitting shows up anywhere you cannot afford unlucky clumps:
- Clinical trials: Making sure both the medicine group and placebo group have matched mixes of age, diet, and pre-existing conditions.
- Computer graphics and sampling: Spreading pixels or sensor readings evenly so images do not look blotchy.
- Resource allocation: Dividing teachers, classrooms, or server loads without overloading one shift.
For school math classrooms, the takeaway is even simpler. Textbooks treat probability as isolated coin-toss formulas, leaving students convinced that "random" automatically means "fair." Discrepancy theory shows why deliberate structure beats pure luck.
How to Teach This in Your Classroom
You do not need a computer or advanced algebra to let middle schoolers feel combinatorial discrepancy in ten minutes.
- Grades 6 to 10 (10 minutes): Pick 12 students (or write 12 names on paper slips) and tag each one with 3 overlapping traits: for example, wears glasses, plays a sport, and born between January and June.
- Round 1 (Coin flips): Flip a real coin for each student to put them on Team A (Heads) or Team B (Tails). Count the split inside each of the 3 traits and circle the largest gap.
- Round 2 (Guided balance): Clear the board and assign the exact same 12 students on purpose, adjusting each pick whenever a trait starts leaning toward one team. Watch the worst gap drop to
0or1. - Discussion question: Ask the class why a completely fair 50/50 coin still produced an unfair team split in Round 1, and where in real life (clinical trials, cricket drafts, school houses) deliberate balancing matters more than blind luck.
Read the original paper: Decoupling via Affine Spectral-Independence: Beck-Fiala and Komlós Bounds Beyond Banaszczyk (arXiv:2508.03961)