Are We Good at Being Random?

One day in high school, my statistics teacher announced an activity: flip a mental coin 25 times (I don’t recall the actual number) and write down the results. Be as random as you can. Then, flip an actual coin 25 times and write down those results too.

Then she walked out of the room. She clearly thought we’d be bad at being random, and so we set about proving her wrong. When she re-entered, every student presented their two sequences of ‘heads’ and ‘tails’:


The teacher then strolled around the classroom, stopping at every student’s desk and identifying which sequence was from the true coin and which was from the student’s mind. She did this without fail.

Four years on, this feat still impresses me. How hard is it, really, for humans to be random? And how easily can we tell if randomness is fake? So I sent out this form to some contacts, asking them to submit a sequence of mental coin flips. The theory to test: randomness is more “streaky” than we think. For instance, “HHHHH” is more likely to appear in a truly random sequence of coin flips than it would in a mental-random sequence.

If this theory is true, the probability of switching between Heads and Tails is higher for humans than for random coins. For the 11 responses I received, the red points below mark the probabilities of switching between Heads and Tails for each individual mental flip. The white blobs are null distributions—indications of where these dots tend to be after simulating 10,000 random “coins” via the computer. As you can tell, humans tend to have substantially higher rates of H/T switching than random generators.

Second, the longest runs of continuous Heads or continuous Tails might be shorter in our sequences than in truly random sequences. Blue dots show the longest continuous run for each of the respondents, while the null distributions are again generated by 10,000 simulated random flips:

Hmm, seems substantially lower. We tend to not report any continuous runs longer than “HHHHH” or “TTTTT”, but real random generators tend to spit out runs of up to 7 or 10 continuous Heads. (And the more total flips you do, the longer your longest sequence might be.)

So, next time you’re trying to be random, don’t be afraid of streaks!

Here’s a table of unadjusted one-sided p-values obtained from the simulated null distributions for each respondent:

Respondent Number# Flips GivenP-Value for Pr(Switch H/T)P-Value for Longest Run

The data and code for this post are available here. If you’d like to add your own data to the pile, you can submit your mental-random flips here.

To see how streaky random coins are, here are the first 5 random sequences I generated:


One thought on “Are We Good at Being Random?

  1. Awesome post! It was 200 coin flips, by the way, and I always loved the shock and awe I’d get doing this activity. One of my favorite days of teaching!

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s