Law of Large Numbers

The Law of Large Numbers tells you that the sample mean gets arbitrarily close to the true population mean as your sample size increases.

xˉnμ as n\bar{x}_n \to \mu \text{ as } n \to \infty

Solve a problem with Law of Large Numbers

Type the problem. The solver will use Law of Large Numbers where Law of Large Numbers is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Law of Large Numbers takes
xˉ\bar{x}
μ\mu
nn
Law of Large Numbers
SymbolMeaning
xˉ\bar{x}The sample mean, the average of nn observations from your data, is a random variable; if misread as μ\mu, you will overstate confidence in your estimate.
μ\muThe true population mean is a fixed unknown constant you are trying to estimate; mistaking it for the sample xˉ\bar{x} obscures the distinction between parameter and estimate.
nnThe sample size (number of observations, always a positive integer) appears in the limit nn \to \infty; ignoring it makes you think the LLN gives finite-sample guarantees instead.

When to use it

Use this when you want to justify why a large sample gives a reliable estimate of a population parameter.

Level

Usually taught in: Statistics

Worked examples

1. Sample mean of dice rolls

Problem

A fair six-sided die is rolled 6 times with results 2, 5, 3, 4, 6, 2. Calculate the sample mean and identify what value it should approach as we roll more times.
  1. 2+5+3+4+6+2=222 + 5 + 3 + 4 + 6 + 2 = 22

    Sum all six rolls to get the total.

  2. n=6n = 6

    The sample size is n=6n = 6 rolls.

  3. xˉ6=226\bar{x}_6 = \frac{22}{6}

    The sample mean is the sum of observations divided by nn.

  4. xˉ6=1133.67\bar{x}_6 = \frac{11}{3} \approx 3.67

    Simplify the fraction by dividing numerator and denominator by 2.

Answer: xˉ6=1133.67\bar{x}_6 = \frac{11}{3} \approx 3.67

The sample mean 113\frac{11}{3} is close to 3.5, the theoretical average of a fair die. By the Law of Large Numbers, if we roll the die many more times, the sample mean will converge to exactly 3.5.

2. Convergence of coin flip proportions

Problem

A coin is flipped repeatedly, recording heads as 1 and tails as 0. After 50 flips there are 18 heads. After 200 flips there are 92 heads. Calculate the proportion of heads for each sample size and describe the convergence.
  1. xˉ50=1850\bar{x}_{50} = \frac{18}{50}

    The proportion of heads in 50 flips is heads count divided by n=50n = 50.

  2. xˉ50=925=0.36\bar{x}_{50} = \frac{9}{25} = 0.36

    Simplify by dividing numerator and denominator by 2, then convert to decimal.

  3. xˉ200=92200\bar{x}_{200} = \frac{92}{200}

    After 200 flips, the proportion is 92200\frac{92}{200}.

  4. xˉ200=2350=0.46\bar{x}_{200} = \frac{23}{50} = 0.46

    Simplify by dividing both by 4, then convert to decimal.

Answer: xˉ50=0.36 and xˉ200=0.460.5\bar{x}_{50} = 0.36 \text{ and } \bar{x}_{200} = 0.46 \to 0.5

As nn increases from 50 to 200 flips, the sample mean moves from 0.36 closer to 0.5, the true probability for a fair coin. The Law of Large Numbers guarantees that if we keep flipping indefinitely, the sample mean will converge to μ=0.5\mu = 0.5 and stay arbitrarily close to it.

3. Estimating daily customer count from a sample

Problem

A coffee shop manager collects a random 10-day sample of customer counts: 45, 52, 48, 51, 49, 47, 50, 53, 46, 49. The shop's long-term average is known to be 50 customers per day. Calculate the sample mean and compare it to the long-term average.
  1. 45+52+48+51+49+47+50+53+46+49=49045 + 52 + 48 + 51 + 49 + 47 + 50 + 53 + 46 + 49 = 490

    Add all 10 daily customer counts together.

  2. n=10n = 10

    The sample consists of n=10n = 10 days.

  3. xˉ10=49010\bar{x}_{10} = \frac{490}{10}

    The sample mean equals total customers divided by the number of days.

  4. xˉ10=49\bar{x}_{10} = 49

    Divide: 490÷10=49490 \div 10 = 49 customers per day.

Answer: xˉ10=49 customers, compared to μ=50 customers\bar{x}_{10} = 49 \text{ customers, compared to } \mu = 50 \text{ customers}

The 10-day sample mean of 49 is very close to the long-term average of 50. This illustrates the Law of Large Numbers: even a modest sample gives a reliable estimate. If the manager collects a larger sample (say 100 days), the sample mean will be even closer to μ=50\mu = 50, making it an excellent basis for staffing and revenue forecasts.

Common mistakes

Where Law of Large Numbers usually goes wrong
Answer came out wrong
Assuming the Law of Large Numbers predicts that an individual future observation will be close to μ\mu.
Use the LLN only to understand how sample averages behave; use probability distributions or confidence intervals to predict or bound individual observations.
Thinking the LLN guarantees that every sample of size nn will have a mean close to μ\mu.
Interpret the LLN as 'in probability'—the chance of a large deviation shrinks as nn increases, but never disappears completely for finite nn.
Applying the Law of Large Numbers to biased or non-random data.
Ensure your sampling method is random and representative of the entire population. The LLN cannot fix sampling bias; it only works reliably when the underlying data is collected properly.
The mistakeWhy it is wrongThe fix
Assuming the Law of Large Numbers predicts that an individual future observation will be close to μ\mu.The LLN describes what happens to the sample mean xˉn\bar{x}_n as you collect more data, not the value of a single observation. An individual outcome can be far from μ\mu no matter how large your sample is.Use the LLN only to understand how sample averages behave; use probability distributions or confidence intervals to predict or bound individual observations.
Thinking the LLN guarantees that every sample of size nn will have a mean close to μ\mu.The LLN describes a limit: as nn \to \infty, the probability of xˉn\bar{x}_n being far from μ\mu goes to zero. But for any finite nn, some samples may give a mean far from μ\mu; they just become less likely as nn grows.Interpret the LLN as 'in probability'—the chance of a large deviation shrinks as nn increases, but never disappears completely for finite nn.
Applying the Law of Large Numbers to biased or non-random data.The LLN requires observations to be independent and drawn from the same distribution with mean μ\mu. If your sample is biased (e.g., only calling landlines, only surveying volunteers), then xˉn\bar{x}_n converges to the mean of your biased distribution, not the true population mean.Ensure your sampling method is random and representative of the entire population. The LLN cannot fix sampling bias; it only works reliably when the underlying data is collected properly.

Tips and when to use something else

  • Use the LLN to justify large-scale data collection: the bigger the sample, the closer your sample mean is to the true population mean. This is why polls and surveys are reliable when sample sizes are large.
  • Do not confuse the Law of Large Numbers with the Central Limit Theorem. The LLN says xˉnμ\bar{x}_n \to \mu (where it goes); the CLT describes the distribution of xˉn\bar{x}_n (what shape it has), which lets you compute probabilities.
  • If you want to know how close xˉn\bar{x}_n will be for a specific finite sample size, use confidence intervals or the Central Limit Theorem, not just the LLN. The LLN is a limit statement, not a finite-sample guarantee.
  • The LLN only applies when observations are independent and identically distributed. If your data changes over time or comes from different sources, the LLN may not hold.

Frequently asked questions

Why does the Law of Large Numbers matter in real life?
Because it justifies why large surveys, clinical trials, and quality-control samples can give you reliable estimates of unknown population parameters. Without it, there would be no mathematical reason to trust that a sample mean estimates the true population mean. It is the foundation for empirical science and data-driven decision-making.
Does the Law of Large Numbers tell me what my next observation will be?
No. The LLN tells you that the average of many observations converges to μ\mu, not that any single observation will be close to μ\mu. An individual value can be far from μ\mu even when your sample mean is very close. The LLN is about averages, not individual outcomes.
What is the difference between the Law of Large Numbers and the Central Limit Theorem?
The Law of Large Numbers says that xˉnμ\bar{x}_n \to \mu as nn \to \infty, describing where the sample mean converges. The Central Limit Theorem describes the shape (distribution) of xˉn\bar{x}_n—approximately normal for large nn—which lets you compute probabilities. The LLN is about convergence; the CLT is about shape.
Can the Law of Large Numbers be applied to any dataset?
Not without care. The LLN requires that observations are independent and come from the same distribution with a well-defined mean μ\mu. If your data is biased, non-random, or collected from different populations, the LLN may not apply. xˉn\bar{x}_n might then converge to something other than what you expect.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18