PPolySim OS

Law of Large Numbers

A handful of coin flips is chaos; a million is clockwork. The law of large numbers is why averages are trustworthy even though each flip is pure chance.

Law of Large NumbersLive

Controls

Presets

Flip a coin a few times and the proportion of heads jumps around wildly; flip it thousands of times and it settles onto the true probability. That is the law of large numbers — averages converge even though individual flips stay random. Crucially, it does not mean a run of tails is "due" to reverse; that belief is the gambler's fallacy.

▶ Run in Python

Data Inspector

Flips0
Observed p0.0000
Deviation-50.00%

Governing equation

Reading this result: With a near-fair coin the running proportion wanders wildly at first, but the law pulls it toward 0.50 as flips pile up — and a streak of tails never makes heads “due.”

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

As the number of trials grows, the observed average converges to the true expected value — the foundation of statistics, insurance, and casinos. It is often misread as implying a run of tails makes heads "due," but each flip stays independent; that belief is the gambler's fallacy. Convergence comes from swamping early noise with sheer volume, not from any self-correction.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More Probability simulations

Frequently asked questions

Is this law of large numbers tool really free?
Yes. Law of Large Numbers runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.