Mistake Master
Estimating Probabilities Using Simulation
Six Heads That Are Never Repaid, and a Proportion That Comes Back Anyway
You'll learnwhy a long-run proportion settles down without any result ever making up for another, what that says about the very next toss, and how to build a simulation whose chances match the situation and report what it produces as the estimate it is.
A fair coin has just landed heads six times. Now suppose every toss after that splits exactly evenly — one head, one tail, forever — so the streak is never once repaid. The running proportion of heads still walks down to 0.5, and the three extra heads are still sitting there at every checkpoint, untouched. You watch that happen, and then you use it: nothing is owed on the seventh toss, and a short run cannot convict a coin any more than it can excuse one. The last three beats build a simulation instead of reading one — seven digits for a 70% shooter, not eight — and finish on the spread of the answer it gives back. Twelve short steps; press Next for each one.
Read all 12 steps as text
A coin has just landed heads six times
One ordinary fair coin, tossed six times, and every one of them came up heads — nothing here is rigged and nothing here is impossible.
Six out of six is a proportion of 1.00
Put that run on a plot of the running proportion of heads and it is the single dot at the top left, as far from 0.5 as a proportion can get.
Now every later toss splits exactly evenly
From toss seven on, this animation imposes an exactly even split — one head, one tail — so the streak is never once repaid by a later result.
It comes back with nothing ever repaid
Watch the seven checkpoints appear: 1.0000, 0.8000, 0.6500, 0.5600, 0.5300, 0.5030, 0.5003 — the proportion walks down to 0.5 without a single toss making up for another.
The three extra heads are still there
Each violet segment runs from the 0.5 line up to its dot, and every one of them is exactly the same height in heads: the surplus \(H(n) - \frac{n}{2}\) is 3 at all seven checkpoints.
The gap is three heads shared over n
A fixed 3 over a growing \(n\) is the whole story: the proportion sits at \(0.5 + \frac{3}{n}\), so the streak is outnumbered rather than corrected.
Six are settled. The seventh has not happened
The six boxes on the left are results, not chances — they are finished, and the empty box is the only thing left with a probability attached to it.
Nothing is due; the coin keeps no record
The seventh toss is heads with probability \(0.5\), the same as the first, because the tosses are independent and the recovery you just watched came from dilution rather than from a debt.
A short run cannot convict a coin either
A fair coin over 40 tosses spends most of its time inside the violet band, and an observed 30 heads lands outside it — unusual enough to check, and not enough to conclude.
Count the digits, do not read the range end
To simulate a 70% free throw with random digits you need seven of the ten, 0 through 6; writing "0 through 7" hands the shooter eight digits and models 80% instead.
What a simulation reports is an estimate
Two students simulate the same situation, one with 100 trials and one with 10,000, and the wide band and the narrow one are the spreads of the answers they get back.
The long run dilutes; it never compensates
No toss is due, no machine is overdue and no shooter has to miss soon — the long run is reached by later results outnumbering the streak, and every simulated answer you report is an estimate with a spread of its own.