Given two sequences of 200 coin flips, one real and one made up by a person, how do you tell which is which?
A colleague set this as a puzzle: two strings of H and T, 200 each. One came from actual flips, one a student invented while trying to look random. Work out which is which and be able to justify it.
I know the counts of heads should be roughly binomial, so both sequences having near 100 heads tells me nothing — anyone faking it gets that part right. My instinct is that run lengths are where people give themselves away, but I do not know what the honest comparison is or how confident I am allowed to be.
What is the actual test here, and how strong is the evidence in practice?
@bootstrap_bo · 5d ago
Your instinct is right and the effect is enormous. Look at the longest run.
In 200 genuine flips the longest run of one face is typically 7 or 8, and a run of 6 is almost certain to appear somewhere. People inventing sequences essentially never write a run that long — they get uncomfortable at 4 and it feels wrong by 5, because a long run does not look random to a human even though it is exactly what randomness produces.
So the single most discriminating statistic is: what is the longest run in each sequence? If one has a maximum run of 4 and the other has a run of 8, you are done, and you can say so with high confidence.
The closely related giveaway is the alternation rate — the fraction of adjacent pairs that differ. It should be about 0.5. Fabricated sequences typically land around 0.6, because switching feels like what randomness does.
Reply
Report