Problem solved in full
-
6 identical results in a row from 100 flips of a fair coin 5 steps
100 flips of a fair coin, and the question is whether 6 identical results in a row turn up somewhere in them. Count the sequences that escape β but 2ΒΉβ°β° sequences will not be counted one at a time.
-
Cut a sequence into its maximal runs. Escaping a streak of 6 means every run is 5 long or shorter, so what you are counting is the ways to write 100 as an ordered sum of parts from 1 to 5, doubled because the first flip can be either face. Call that count R(i): a leading run of length j leaves R(i β j) behind it, and the five allowed lengths give five terms.
-
Divide by 2N to work in probabilities instead of counts, and each part of length j brings a factor 2βj with it. Anything under 6 flips is safe outright, so q1 through q5 are 1, and the first real value is checkable by hand: exactly 2 of the 64 six-flip sequences are all-same, so q6 = 31/32.
-
Up to 11 flips there is a shortcut, because two separate runs of 6 need 12 flips to fit side by side. Below that no sequence can contain two, so the probability of a streak is exactly the expected number of them β 2/64 for a run starting at flip 1, and 1/64 for each later start, which also needs the flip before it to differ. At N = 10 that is 6/64, so q10 = 29/32 = 0.90625 with nothing approximated.
-
Past 11 flips the events overlap and the counting shortcut dies, but the recurrence settles into steady geometric decay. Substituting qN = AxN leaves five powers of 2x summing to 1, and the geometric-series formula folds those five terms into one: y = 2 β yβ5, with y = 2x. Iterate from y = 2 and it converges in four steps β 1.968750, 1.966190, 1.965969, 1.965950 β to y = 1.965948, so x = 0.982974.
-
Ninety flips separate the exact anchor at N = 10 from the target at N = 100. Geometric decay has barely started at N = 10, so this is an approximation, but the correction dies fast enough that it reproduces both decimals the tool prints from its exact recurrence.
Answer
19.32% of 100-flip sequences escape, so the table's 80.68% says a run of 6 is the ordinary outcome, not the eerie one. The number that carries the lesson is 0.982974: each extra flip cuts your chance of escaping by 1.7%, halving it every 40.4 flips. Run that backwards and even odds arrive at 45 flips; run it forwards and 180 flips leave under 5% of sequences clean. The simulated column beside the exact one is a different species of number. A 1000-trial estimate of an 80.68% event carries a standard deviation of β(0.8068Γ0.1932/1000) = 1.25 percentage points, so it moves by more than a whole point between runs, and even at this tool's ceiling of 10,000 trials it is still Β±0.39 points. The exact column's second decimal means something and the simulated one's cannot β which is precisely what the z row underneath is measuring.
-
References (2)
- Insight block 3 β why a fabricated coin-flip log gives itself away: T. P. Hill, "The Difficulty of Faking Data." CHANCE 12(3), 27β31, 1999.
- And the general result behind the tool: P. Diaconis and F. Mosteller, "Methods for Studying Coincidences." Journal of the American Statistical Association 84(408), 853β861, 1989 β why surprising runs are expected rather than remarkable.