Intermediate Topic 22 of 51 Math for Computing
Law of Large Numbers
Sample averages converge to expectation.
How it works
The law of large numbers states that as the number of independent, identically distributed trials grows, the sample average converges to the expected value. The weak law says convergence in probability and the strong law says almost sure convergence. It justifies using averages of repeated experiments to estimate true means, and underlies Monte Carlo methods, polling and insurance.
Where it is used
Estimating probabilities by simulation, casinos and insurers relying on stable long-run averages, A/B testing and statistical sampling use the law of large numbers.
Common pitfall
It says nothing about short runs and does not imply that deviations get corrected, the gambler's fallacy: the average converges because new results dilute earlier ones, not because of compensation. It requires finite expectation, so heavy-tailed distributions such as the Cauchy do not converge. Convergence can be slow, with error shrinking like one over the square root of n. Check variance and sample size.
Where it fits in the course
Law of Large Numbers is topic 22 of 51 in Math for Computing, rated Intermediate. It follows Binomial and Poisson Distributions. The next topic is Central Limit Theorem.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the Math for Computing quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the Math for Computing quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Law of Large Numbers?
Where do people use Law of Large Numbers?
What is the most common mistake with Law of Large Numbers?
What should I learn before this topic?
How can I practice it?
Is Law of Large Numbers hard to learn?
How long does it take to learn Law of Large Numbers?
Which topics are related to Law of Large Numbers?
What should I study after Law of Large Numbers?
Related topics
- Binomial and Poisson Distributions (Math for Computing)
- Central Limit Theorem (Math for Computing)
- Normal Distribution (Math for Computing)
- Hypothesis Testing (Math for Computing)
- Large Language Models (AI & Machine Learning)