Study Meadow

Note 19

Large numbers, coincidence and the gambler’s fallacy

Red has come up six times in a row, so black is due.

Black is not due. The wheel has no memory, and if it did, it would have no reason to care how you feel. This is about the best-established result in this notebook, and it does not seem to help anyone at a casino.

What the law of large numbers says

Jacob Bernoulli proved the first version in Ars Conjectandi, published in 1713 after his death. Roughly: as you repeat a chance process, the proportion of successes gets closer and closer to the true probability.

Share of heads as tosses accumulate, simulatedThe running share of heads swings widely for the first hundred tosses and settles close to 50 percent by ten thousand.30%40%50%60%70%1101001,00010,000Tosses so far (each step is ten times the last)
A simulated run of 10,000 tosses of a fair coin. Note the horizontal scale, on which each step is ten times the last.

Notice the word “proportion”. This is where people take a wrong turn. The law does not say the number of heads and tails evens out. In fact the raw gap tends to grow. It just grows more slowly than the number of tosses, so that as a share of the whole it shrinks.

Typical distance of a fair coin from a 50-50 split, using the average absolute gap, roughly 0.4 × √n.
TossesTypical gap from half, in headsAs a share of tosses
10044%
10,000400.4%
1,000,0004000.04%

So the coin balances out by swamping, not by compensating. The early excess is never paid back. It is drowned out by the much larger number of later tosses, which do not know about it. If you have 15 heads after 20 tosses, you are 5 above half. Your best forecast after a million tosses is still 5 above half, plus or minus all the new noise.

The gambler’s fallacy

Expecting a run to correct itself is the gambler’s fallacy. The usual illustration comes from the casino at Monte Carlo in August 1913, when black is reported to have come up 26 times in a row. Gamblers, the story goes, bet heavily on red as the run went on, and lost heavily. A sequence of 26 blacks has a probability of about 1 in 137 million on a European wheel. But the chance of black on the next spin, after 25 blacks, was the same as ever: 18 in 37.

Any specific run of 26 reds and blacks is exactly as unlikely as that one. We only notice the sequences that look like patterns.

There is a real exception to all of this: real processes that do have memory. Card counting works because a shoe of cards has been depleted. Earthquakes, bus arrivals and football form may or may not depend on the past. The fallacy is treating independent events as dependent. Treating dependent events as independent is its mirror image. The so-called hot hand in basketball was dismissed as an illusion by Thomas Gilovich, Robert Vallone and Amos Tversky in 1985. Then in 2018 Joshua Miller and Adam Sanjurjo showed a subtle bias in the way such streak data had been analysed, and the debate reopened. Humans get to be wrong in both directions.

Small samples are wilder

The flipside of the law is that small samples jump around. Kahneman and Tversky asked people about a small hospital (15 births a day) and a large one (45 a day). Which records more days on which over 60 percent of babies are boys? Most people said it would be about the same. In fact it is the small hospital, with about twice as many such days, for the same reason ten tosses can easily give 70 percent heads and a thousand cannot.

Howard Wainer called the formula behind this “the most dangerous equation” in an article in American Scientist in 2007. It is the one that says variation in an average shrinks with the square root of the sample. Ignoring it leads to real errors. US counties with the lowest rates of kidney cancer turn out to be mostly rural and thinly populated. So do those with the highest rates. There is no need to invent a story about country air: a county with few people has an unstable rate. The same applies to the best and worst schools or hospitals on any table. The small ones turn up at both ends.

Astonishing coincidences are expected

Now the same thought on a bigger stage. Two people at a party share a birthday. Is it fate?

Chance that two people share a birthdayThe chance passes one half at 23 people and is over 99 percent by 60.0%50%100%0204060People in the room23 people: 51%
Assumes 365 equally likely birthdays and ignores leap years. The real figure is slightly higher because birthdays cluster.

With 23 people in a room there is a better than even chance that two share a birthday. It seems too few, because you imagine someone matching you. But 23 people make 253 possible pairs, and any pair will do.

The general principle was called the law of truly large numbers by Persi Diaconis and Frederick Mosteller, in their 1989 paper “Methods for Studying Coincidences”: with a large enough sample, any outrageous thing is likely to happen. If an event has a one in a million chance on any given day, then in a country of 300 million it happens to 300 people a day. Newspapers report the one that is most striking. “What are the odds?” usually has a boring answer: of it happening to you, tiny. Of it happening to someone, close to certain.

J. E. Littlewood made a similar point. If a “miracle” is an event with odds of a million to one, and you notice about one thing per second for eight alert hours a day, then you have a million experiences every 35 days or so and can expect a miracle about once a month.

The other half of the trick is that the target was not named beforehand. You think of an old friend and the phone rings. All the times you thought of a friend and nothing happened, or the phone rang and you had not been thinking of anyone, do not get remembered. A pattern you noticed afterwards is a multiple comparison in which your own brain ran the tests.

Insurance, casinos and you

The law is the reason that casinos and insurance companies are boring, stable businesses. Each spin is uncertain. Millions of spins are not. The house’s small edge turns into a dependable income, as the note on expected value shows, because it plays long enough for the proportions to settle.

You are, typically, not playing long enough. An individual lives one life, and the law of large numbers does not promise that anything evens out within it.

When it feels too strange to be chance

Goes with: Regression to the mean, Multiple comparisons and p-hacking, Expected value.