edubun
English

The law of large numbers

John Kerrich flipped a coin 10,000 times during the Second World War and got 5,067 heads, a proportion of 0.5067.

After five heads in a row, is tails due?

Five heads in a row. Surely the next one has to be tails? It is tempting to think so, and the feeling has a name: the gambler's fallacy. It sounds a lot like the law of large numbers, which is the trouble. The law is real. It says nothing about the next flip, though, and it never works by evening things out. So start with what the law does say.

If a coin has a 1/2 chance of heads, why does it so often land heads three or four times in a row? Because probability does not describe a handful of flips. It describes what happens over many repetitions. The fraction of times an event happens in a run of trials is its relative frequency: count ÷ number of trials. The law of large numbers says that as the number of trials grows, the relative frequency tends to get closer and closer to the theoretical probability.

BackgroundJohn Kerrich was a mathematician who happened to be in Copenhagen when Germany invaded Denmark in 1940, and he spent the rest of the war in an internment camp. With plenty of time and a fellow internee, Eric Christensen, he ran probability experiments. The best known is a coin tossed 10,000 times, with the running count of heads written down as they went. The final count was 5,067 heads and 4,933 tails. They also built a biased coin from a wooden disc partly covered in lead, and its proportion of heads settled down too, near 70 percent. Kerrich published the results in 1946, and until computers made simulation cheap they were the standard example of the law of large numbers.

Kerrich was 67 heads over, and only 0.0067 off

Kerrich's proportion was 5,067 ÷ 10,000 = 0.5067, only 0.0067 away from 0.5. Yet in raw numbers he was 67 heads above the 5,000 you might "expect". This is the part of the law that surprises people. As you keep flipping, the gap between heads and half the flips does not shrink to zero; it usually wanders and often grows. What shrinks is the gap divided by the number of flips. The law of large numbers works by swamping early luck with a huge number of later flips, not by paying it back.

That is also why the gambler's fallacy is a fallacy. After five heads in a row, the next flip of a fair coin is still heads with probability 1/2. The coin has no memory and owes nobody a tail. In the long run the early streak of five becomes an unnoticeable part of thousands of flips.

A hundred flips usually end between 0.40 and 0.60

There is a useful rule of thumb for how far a proportion usually strays. For n flips of a coin with probability p, about 95% of runs end with a proportion within p ± 2√(p(1 − p)/n). For a fair coin and 100 flips that is 0.5 ± 2√(0.25/100) = 0.5 ± 0.1, so anything from 0.40 to 0.60 is ordinary. For 10,000 flips it is 0.5 ± 0.01. Kerrich's 0.5067 sits comfortably inside that band, about 1.34 standard deviations above 0.5. Notice the square root: to make the band ten times narrower you need a hundred times as many flips.

Loading

Drag to turn. Scroll or pinch to zoom.

The shaded band is p ± 2√(p(1 − p)/n). Flip 1,000 and then 10,000 and watch the blue line settle inside the narrowing band. The row "Heads minus expected" shows the count gap, which does not settle.
Try it: set Chance of heads to 0.70, the value Kerrich's lead-weighted coin settled near, and flip 10,000. The line settles at 0.70 instead of 0.50. The law of large numbers works for biased coins too; it tells you the coin's own probability.

The same idea lets OpenStax judge the Belgian euro. With 250 flips the 95% band for a fair coin is 0.5 ± 2√(0.25/250) = 0.5 ± 0.063, roughly 0.437 to 0.563. The observed 0.56 is inside it, close to the edge. That is why the honest conclusion is "possibly biased, flip it more", not "proven unfair".

Relative frequencyTimes the event happened ÷ number of trials
Law of large numbersAs trials increase, relative frequency approaches the probability
Gambler's fallacyBelieving past results change the next independent result
95% band for a proportionp ± 2√(p(1 − p)/n)
  1. Kerrich: 5,067 heads in 10,000 flips. What was the proportion of heads?
  2. How many heads above 5,000 was Kerrich?
  3. Fair coin, 100 flips. Half-width of the 95% band, 2√(0.25/100)?
  4. Fair coin, 10,000 flips. Half-width of the 95% band?
  5. To make the band half as wide, how many times as many flips do you need?
  6. A fair coin has landed heads 5 times in a row. What is P(heads on the next flip)?
  7. 56% of 250 flips were heads. How many heads is that?
  8. You roll a die 30 times and get 7 sixes. What is the relative frequency of six, to 3 decimal places?
  9. Which statement matches the law of large numbers?
    • After many heads, tails become more likely
    • The count of heads minus half the flips shrinks to 0
    • The proportion of heads gets closer to the probability as flips increase
    • With enough flips the proportion equals 0.5 exactly
  10. Is 0.56 from 250 flips inside the fair-coin 95% band 0.437 to 0.563?
    • Yes, just inside
    • No, outside
Common mistakes
  • "Tails has come up seven times running, so heads is due." The coin has no memory. On a fair coin the eighth flip is heads with probability 1/2, exactly as the first one was. The law of large numbers does not push the next flip towards the side that is behind.
  • "By the law of large numbers, 10 flips should give 5 heads." Ten is not a large number. The chance of exactly 5 heads in 10 fair flips is 252/1024, about 0.246, so roughly three times out of four you get some other count. The law is about the proportion after many flips.
  • "After 1,000 flips I have 530 heads, 30 too many. If I keep flipping, the extra 30 will disappear." The surplus need not shrink at all. Suppose it is still 30 after 10,000 flips. The proportion is then 5,030 ÷ 10,000 = 0.503, much closer to 0.5 than 0.53 was. The proportion settles because the same gap is divided by a bigger number. (The flip counts are made up.)
Teacher's noteTwo ideas get mixed up here: the proportion settling down, and the count evening out. Only the first is true. One order that works: tally 20 or 30 flips by hand first, then let the lab run 10,000 and look at two rows side by side, the proportion of heads and the gap between heads and the expected count. Ask for a prediction of the gap before anyone presses the button. In the Korean curriculum, relative frequency belongs to middle school, while the terms "statistical probability" and "law of large numbers" belong to the high-school Probability and Statistics course, which notes that a digital tool can supply the large number of trials.
Key points
  • Relative frequency = count ÷ trials.
  • Law of large numbers: the proportion approaches the probability; the count gap need not.
  • Typical 95% band: p ± 2√(p(1 − p)/n). 100 times the flips, one tenth the width.
  • Independent flips have no memory.
Sources for this course (9)
  • Curriculum: 교육부 고시 제2022-33호 [별책 8] 수학과 교육과정 (ncic.re.kr/inv/org/download.do?year=2022&seq=10003559&orgType=ogi4, PDF read 2026-10-19: 초등학교 5~6학년군 [6수04-04]~[6수04-06] 가능성을 말과 0, 1/2, 1 같은 수로 나타내기; 중학교 1~3학년군 [9수04-03] 상대도수, [9수04-05] 경우의 수(두 경우의 수를 더하거나 곱하는 정도), [9수04-06] 확률(상대도수로서의 의미와 경우의 수의 비율로서의 의미, 각 경우의 가능성이 같다는 가정), 용어 상대도수·사건·확률; 공통수학1 [10공수1-03-01]~[10공수1-03-03] 합의 법칙·곱의 법칙·순열·조합, 기호 nCr; 확률과 통계 [12확통01-03] 이항정리, 용어 이항계수·파스칼의 삼각형; [12확통02-01]~[12확통02-06] 확률의 기본 성질·덧셈정리·여사건의 확률·조건부확률·독립과 종속·곱셈정리, 용어 시행·통계적 확률·수학적 확률·여사건·배반사건·조건부확률·종속·독립·독립시행과 기호 P(A), P(B|A); [12확통03-03] 이항분포, [12확통03-04] 정규분포와 이항분포의 관계, [12확통03-05]·[12확통03-06] 임의추출·표본평균과 모평균, 용어 큰 수의 법칙·이항분포·정규분포·모평균·표본평균과 기호 B(n, p), N(m, σ²), X̄)
  • Textbook: OpenStax, Introductory Statistics 2e by Barbara Illowsky and Susan Dean, 3.1 terminology, equally likely outcomes, dime and nickel, law of large numbers, Belgian one euro coin 56% heads in 250 trials, conditional probability, Table 3.1 handedness of 100 people (openstax.org/books/introductory-statistics-2e/pages/3-1-terminology)
  • 4.3 binomial distribution
  • 7.1 central limit theorem for sample means, example mean 90, SD 15, n = 25, standard error 3 (.../pages/7-1-the-central-limit-theorem-for-sample-means-averages)
  • Yut rules for the Korean example only: 국립민속박물관 한국민속대백과사전 「윷놀이」, 도·개·걸·윷·모 by how many of the four sticks land 뒤집어진 (folkency.nfm.go.kr/kr/topic/detail/1595, read 2026-10-19)
  • Kerrich story: John Kerrich, 10,000 tosses, 5,067 heads (JMP case study JMP014 by DeWayne Derryberry, jmp.com/en/academic/case-study-library/is-a-coin-fair, citing Baldi and Moore; Wikipedia "John Edmund Kerrich")
  • Galileo story: Sopra le scoperte dei dadi, sum 10 in 27 ways and 9 in 25 ways with three dice (English translation, University of York history of statistics, york.ac.uk/depts/maths/histstat/galileo.pdf)
  • Pascal story: Pascal to Fermat, 29 July 1654, one six in four throws "as 671 to 625" (American Physical Society, aps.org/apsnews/2009/07/pascal-letters-fermat-points; Gaston Sanchez, De Mere's games; Statistical Science 2024 "Antoine Gombaud, Chevalier de Méré")
  • Galton story: Francis Galton, Natural Inheritance of 1889, the quincunx (Wikipedia "Galton board")

Checked: 2026-10-17