Skip to content

Advertisement

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 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 to 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

The law of large numbers says that for independent identically distributed trials, the sample mean approaches the expected value as n grows. The path need not be smooth or monotone.

The seed reproduces the exact simulation. Change it to see natural variation among runs.

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
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.