Skip to content

Advertisement
Advertisement unavailable offline
The page content remains available.

Law of large numbers simulator

Choose an experiment, trial count and seed. The chart tracks the running mean from the first to final observation.

Final sample mean: —

Fill in the fields above — the result is computed on this page.

Expected value
—
Absolute error
—
Number of trials
—
Seed
—

Running mean

The line shows the mean after successive trials; the reference level is the expected value.

Convergence checkpoints

Trials n Running mean Absolute error
Fill in the fields above — the result is computed on this page.
What do these numbers mean?
  • More trials usually reduce the typical mean error.
  • Short series may differ markedly from expectation.
  • Mean convergence does not predict the next outcome.

The simulator uses a deterministic pseudo-random generator for learning. It is not a lottery number source or a cryptographic tool.

How do I use this page?
  1. Choose Bernoulli trials or a die.
  2. Set the number of trials and optionally change the seed.
  3. Compare the running mean with the expected value.

What this page does not do: The simulator uses a deterministic pseudo-random generator for learning. It is not a lottery number source or a cryptographic tool.

Further reading

Theory — what does the law of large numbers state?

The law of large numbers states that for independent trials drawn from the same distribution, the sample mean approaches the expected value as the number of observations n grows. The calculator lets you choose an experiment, the number of trials and a random seed, then plots the running mean from the first to the final observation. The seed makes it possible to reproduce exactly the same simulation again. The path toward the expected value is not smooth or monotonic — the deviation can temporarily increase along the way.

Frequently asked questions

Does the mean always move closer?
Not at every step. The law describes limiting behaviour, so deviation may temporarily increase.
What is the seed for?
It initializes the generator. The same seed and settings produce the same sequence.

See also

← All calculators

Advertisement
Advertisement unavailable offline
The page content remains available.
Offline app and draw notifications

My saved selections

Selections saved only in this browser. Numbers are shown exactly as saved; this is not a lottery ticket.

Open the My saved selections hub
Restore with preview

Restore in the hub: review the file and confirm first. Both old backups and the complete selections + journal backup are supported. Nothing is uploaded.