C.W.K.
Stream
Lesson 01 of 06 · published

The Law of Large Numbers: Why Casinos Win

~12 min · lln, convergence, casino, expected-value

Level 0Stats Novice
0 XP0/55 lessons0/14 achievements
0/100 XP to next level100 XP to go0% complete
"The Law of Large Numbers is not magic. It's the rigorous version of the sentence: 'do this enough times and the noise averages out.'"

The Statement, Plainly

The Law of Large Numbers (LLN) says: if you take independent samples from a distribution with a finite true mean μ, the sample mean converges to μ as the number of samples grows large. In symbols:

(X₁ + X₂ + ... + Xₙ) / n → μ   as n → ∞

This is what makes statistics empirical. It is what makes the sentence 'P(heads) = 0.5 because half of a million flips come up heads' a mathematically defensible claim, not just a vibe.

What It Does Not Say

The LLN is precise about what it guarantees, and citizens routinely overclaim it.

  • It does not say that individual outcomes become less random with more trials.
  • It does not say rare events stop happening.
  • It does not say the variance shrinks to zero (it does shrink, but for the sample MEAN, not for individual draws).
  • It does not say the distribution shape changes.

The most common misreading is the gambler's fallacy: 'red has come up five times in a row, so black is due.' The LLN does not back this up. Each spin is independent; past outcomes do not affect future probabilities. The long-run mean converges, but every single trial is still its own independent event.

The Casino Is the LLN Made Visible

Every casino game is designed so the house's expected value per hand is slightly positive (the house edge). Roulette is about 2.7% in European rules, blackjack about 0.5% with optimal play, slots much higher. Individual outcomes are completely random and unpredictable. But the casino doesn't bet on individual outcomes — it lets thousands of customers play millions of hands per month, and the LLN guarantees that the realized average per hand converges to that positive house edge.

The casino is not gambling. The customers are. The casino is letting the law of large numbers do its work, while collecting a small positive expected value on each bet. After a million bets, the cumulative realized result is essentially indistinguishable from the cumulative expected value. Variance shrinks; certainty grows; the casino profits.

The Citizen Lesson

Any strategy with positive expected value, played enough times under independence, converges to a near-certain profit. Any strategy with negative expected value, played enough times, converges to a near-certain loss. This is why the lottery has a clear long-run cost despite individual jackpot dreams, and why a positive-EV trading strategy with thin margins still wins given enough trades. The LLN is the citizen's friend on the right side of the expected value and the enemy on the wrong side.

Code

Cumulative outcome of a negative-EV bet·python
import numpy as np
rng = np.random.default_rng(33)

# Simulate a single 'gambler' playing roulette with a 2.7% house edge.
# Net result per bet: +1 with probability 18/37, -1 with probability 19/37.
# Expected value per bet ≈ -0.027.
def play(n_bets):
    spins = rng.random(n_bets) < 18/37   # win or lose
    return np.where(spins, 1, -1).cumsum()

for n in (100, 10_000, 1_000_000):
    final_position = play(n)[-1]
    expected = -0.027 * n
    print(f"after {n:>9,} bets: realized = {final_position:>+9}   "
          f"expected ≈ {expected:>+9.0f}")

# Small N: the gambler may be winning or losing — pure noise.
# Large N: realized result converges to the expected value: a near-certain loss.
# The casino is on the opposite side of every bet, accumulating the inverse.
# This is the LLN: long-run mean dominates short-run noise.

External links

Exercise

Pick a recurring decision in your life with a clear expected value (taking the subway vs walking when in a rush, ordering the same dish vs trying new ones, skipping breakfast vs eating one). Estimate the EV per occurrence, then estimate how many occurrences you've already accumulated. Does the LLN suggest the realized result has converged to the EV by now? If yes, you should be acting on EV. If no, you're still in noise territory.
Hint
Roughly speaking, the LLN's convergence is meaningful once N is large enough that random variation is smaller than the effect size you care about. A coin flip needs ~100 trials to be convinced of the EV; a small EV difference needs many more.

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.