Mental Models204 cards · 12 fields

Mental Models/Mathematics & Statistics

Law of Large Numbers

大数定律与小样本

With few tries any lopsided ratio can show up, and only many tries steady it.

From 1940, the South African mathematician John Kerrich was held in an internment camp in German-occupied Denmark. He began tossing a coin and recording each toss. In the first ten tosses, heads came up only four times, a share of 40%. He did not announce that the coin favored tails; he kept tossing. By 10,000 tosses, heads had come up 5,067 times, 50.67%.

Suppose a player makes 70% of his free throws. In one game he makes one of four, only 25%, and nobody says he has got worse. Over a season of 600 free throws, his rate will land within a few points of 70%. The law of large numbers and the trouble with small samples are two sides of the same thing: with many tries the share holds steady; with few tries any extreme share can turn up. So when you see a percentage, first ask how many tries it was worked out from.

The more free throws, the closer to 70%
0%25%50%75%100%100200300400500600Free throwsRunning hit rateTrue hit rate
0%50%100%200400600Free throwsRunning hit rateTrue hit rate

Six equally good players shoot a season each. Early on, any share turns up; after a few hundred throws, the six lines crowd together. Tap "Reroll" for a new set.

With few tries, one surprise can rewrite the share

Toss a coin ten times, and one extra head moves the share by ten percentage points; toss it 10,000 times, and it moves only 0.01 points. If something's true rate is and you try it times, the share you work out is typically off from by about

sits under the square root, so you need four times as many tries to halve the error.

Why the square root? First look at how far the number of heads is from half. With one toss, it is always half a head over or half a head under. With two tosses, if both go the same way the gap doubles; if one goes each way they cancel exactly. The four cases are equally likely, and on average the square of the gap is twice what it is for one toss, not four times. Each extra toss adds one more share to the square, so after tosses the square is times as big, and the gap itself only times.

But the number of tosses is times as big. Divide one by the other, and the error in the share shrinks to . Toss a fair coin a hundred times: , an error of about five percentage points. Toss it 10,000 times, and it is off by only half a point.

The share settles, but nothing is making up the difference

Kerrich was one head short in his first ten tosses. If the next 990 tosses came out exactly half and half, there would be 4+495=499 heads, and the share over 1,000 tosses would be 49.9%. Nobody paid back the missing head; it was just diluted by all the tosses that came after.

The rarer the thing you're measuring, the more tries you need

Measure something with a 1% chance and try it a hundred times, and the typical swing is about one percentage point, as big as the 1% itself, so you can't tell 1% from 2% at all. Only at 10,000 tries does the swing fall to 0.1 points, and the two can be told apart.

Counting tries tells you most when the repeats are independent and the rules don't change: tossing coins, rolling dice, a big batch of insurance policies that have nothing to do with each other. A thousand clicks from one person are not independent of each other, and they are not a thousand customers. If the rules changed when a site was redesigned and the records from before and after are mixed together, what you estimate is a blend of the two periods. If the sample is skewed, no number of tries will wash that out. In 1936 the American magazine The Literary Digest got back about 2.4 million survey forms and still called the presidential election wrong. The reason was that both its mailing list and the people who wrote back were different from voters as a whole.

Act
When an online shop's weekly report shows the conversion rate falling from 3% to 2%, first check how many visitors there were this week. With only two hundred, a drop that size is within normal swings, and there's no need to rush to change the page.
Design
Set rules for collecting survey responses: count only one per account and one per household, so that one person submitting ten times doesn't pose as ten samples.
Communicate
When you report a conclusion from a small sample to your boss, write "so many out of so many" next to the percentage, so they can see how easily the number could swing.
  1. How many observations was this share worked out from? How much would one more success or failure move it?
  2. Are these observations independent of each other? Have repeated records of the same person or the same event been counted as new samples?
  3. Does the sample cover what I'm trying to judge? Or did it only collect the group that was easiest to collect?

Finance

Premiums set by the overall rate

You work as an actuary at a car insurance company. Look at one driver alone, and nobody can say whether they'll make a claim next year. Put a million policies together, and the share that make a claim lands in about the same place every year, so premiums are set by that share. If the same pool had only fifty policies, the share would be different every year, and the company could only gamble once a year.

Public health

A trial with hundreds of thousands of children

In 1954 the United States ran a large trial of the Salk polio vaccine, and the part with a randomized placebo comparison involved about 400,000 children. Not everyone gets polio. If each group had only a few dozen children, one case more or less would shift the rate of illness by a large amount. In records of hundreds of thousands of children, a few chance cases count for much less in the rate, and only then could the gap between the two groups be seen as the vaccine's doing.

Sports

Batting .500 in the first week

In the first week of the season, a player gets four hits in eight at-bats. That is a .500 batting average, top of the league. By the end of the season, after more than 500 at-bats, nobody's average is still at .500.

You are looking at a monthly ranking of return rates for 40 community pharmacies across the province. In fact, every pharmacy's true return rate is 5%; the only difference is monthly sales. The smallest shop has about twenty orders a month, the biggest around two thousand.

What kind of pharmacy is most likely to be at the top and at the bottom of the ranking?

At a fund manager's roadshow, he shows 600 trades made by a strategy, 72% of them profitable. The trades are bunched after 6 central bank interest-rate announcements. Each time he bought about 100 stocks at once, and the stocks bought at the same time mostly rose and fell together.

These 600 records come closest to how many independent trials?

You're playing a board game with friends, using a standard six-sided die. You've rolled twelve times in a row without a single six, and a friend says, "A six is due now."

What is your chance of rolling a six next?