PPolySim OS
For Students · Law of Large Numbers

Law of Large Numbers for a p-value

Built for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition. Simulate a p-value live below — adjust the inputs and watch it respond, right in your browser.

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 →

More with Law of Large Numbers

Frequently asked questions

Is this good for students?
Yes — this version of "Law of Large Numbers for a p-value" is framed for students learning it for a class or exam. See the concept move instead of memorizing formulas — and check your homework intuition.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.