Toss a fair coin and the proportion of heads in the first ten tosses may be some way from one half; toss it many more times and the proportion usually settles down. The law of large numbers states the conditions for this stability: when observations are independent and identically distributed with a finite expectation, the sample mean approaches the common expectation. But it does not promise that every step is more accurate, nor does it correct for sampling from the wrong population or for biased measurement. Only by understanding this boundary can we tell what a "large sample" actually adds.

The cumulative proportions of heads in many independent coin-toss sequences are scattered at first and then close in around the one-half reference line.

Produced by Research Methods; an illustration from a code simulation. Twenty independent sequences of fair coin tosses, 10,000 tosses each, with the random seed fixed at 20261026; the thin lines are the cumulative proportions of heads for each sequence, and the dashed line is the theoretical expectation of 0.5.

1

Record heads as 1 and tails as 0, and the sample mean of the first n tosses is the proportion of heads:

Xˉn=X1+⋯+Xnn.\bar X_n=\frac{X_1+\cdots+X_n}{n}.

Each result of a fair coin can still only be 0 or 1; what settles down is the cumulative proportion, not the individual result. The change caused by one additional observation is (Xn+1−Xˉn)/(n+1)(X_{n+1}-\bar X_n)/(n+1), so the same head has a very different effect on the cumulative proportion when it turns up on the 11th toss than when it turns up on the 10,001st.

This also clears up a common misunderstanding: after a run of heads, the next independent toss still has a one-half probability of coming up heads. For the proportion to return to the neighborhood of one half, the coin does not need to "compensate" for earlier results. The many additional observations dilute the limited early imbalance; they do not first have to bring the difference between the counts of heads and tails back to zero.

2

Let X1,X2,…X_1,X_2,\ldots be independent and identically distributed with E∣X1∣<∞E|X_1|<\infty and common expectation μ\mu. The weak law of large numbers says that for any fixed error tolerance ε>0\varepsilon>0,

P(∣Xˉn−μ∣>ε)⟶0.P(|\bar X_n-\mu|>\varepsilon)\longrightarrow0.

Imagine repeatedly drawing a fresh set of n observations: the larger n is, the closer to zero is the probability that the set's mean falls outside the tolerance. This does not say that from some finite n onward there is never an error, and it gives no universal "large-sample threshold".

The strong law of large numbers goes further and says that P(lim⁡n→∞Xˉn=μ)=1P(\lim_{n\to\infty}\bar X_n=\mu)=1: along an observation sequence extended without end, the trajectories on which the mean converges form a set of probability 1. "Strong" here refers to a stronger mode of convergence, not to higher precision in finite samples; it still allows the mean to swing up and down as it approaches the expectation.

If there is in addition a finite variance σ2\sigma^2, independence gives Var⁡(Xˉn)=σ2/n\operatorname{Var}(\bar X_n)=\sigma^2/n, so the standard deviation of the mean is σ/n\sigma/\sqrt n. The sample size has to be quadrupled for the standard deviation to be halved. This is the scale of fluctuation under an additional condition and should not be misstated as a rate of convergence shared by every distribution with a finite expectation; the general law of large numbers does not itself require a finite variance.

Four distributions of the sample mean narrow as the sample size increases, while another set of distributions with a fixed measurement bias stays off target throughout.

Produced by Research Methods; a theoretical model plotted with code. It assumes independent normal observations with an individual standard deviation of 1; the sample sizes are 10, 100, and 1000. On the left, the distributions of the mean close in on the target 0; on the right, measurements carrying a fixed bias of 0.2 close in on 0.2. The curves are theoretical densities, not survey results.

3

Suppose an instrument over-reports by 0.2 units every time, so that the recorded value is Yi=Xi+0.2Y_i=X_i+0.2. Even if the true quantity satisfies the law of large numbers, the mean of the records tends to μ+0.2\mu+0.2. Taking more measurements estimates the wrong center more stably, but it does not automatically calibrate the instrument. This is a demonstration within a mathematical model, not a judgment about any real measurement.

The sampled population raises the same issue. If only the active users of some platform are surveyed, then even with truly random sampling within that group, enlarging the sample only helps estimate the mean for that group; inferring to all residents requires additional assumptions about coverage and the selection mechanism. The expectation in the law of large numbers is determined by the mechanism that actually generated the data, not by the question the researcher hopes to answer.

Independence likewise has real content: copy a single measurement ten thousand times and the mean you compute is always that same number. Some dependent sequences also obey laws of large numbers, but under other conditions, and the independent and identically distributed version given here cannot be applied to them directly. If the distribution does not even have a finite expectation, the theorems stated in this article do not apply either.

4

In Monte Carlo computation, a target probability can be written as the expectation of an event's indicator variable and then estimated by the proportion of independent simulations in which the event occurs; the law of large numbers provides the foundation for this "repeat, then average" approach. But if the simulation program generates the wrong distribution, then however many repetitions are run, it will only give a stable answer to the wrong question. In surveys and experiments, the target population, the sampling method, and the measurement scale should be made clear first, and the sample size discussed afterward. The law of large numbers answers whether the mean tends to the target; the familiar central limit theorem describes, under additional conditions, the distribution of the suitably scaled error. Neither can remove bias on behalf of the study design.

References

  1. Scott Sheffield, MIT OpenCourseWare: 18.175: Lecture 6 — Laws of large numbers and independence, p. 5. The course term is Spring 2014; the page does not state when the lecture notes first went online. Used to check the statements of independence and identical distribution and of the strong law of large numbers.

  2. Scott Sheffield, MIT: 18.175: Lecture 8 — Weak laws and moment-generating/characteristic functions, pp. 52–57 and 91–96. The file carries no verifiable publication date; no date inferred by a search engine is used. Used to check the weak law of large numbers, the variance of the mean under finite variance, and the finite-expectation case.

  3. Research Methods · Rituals can be imitated; understanding cannot be faked

  4. Compiled and published by the Scholay one-stop academic platform. If anything here infringes your rights, please let us know and it will be taken down.

  5. Also published on EnterScholar, a community for scholars in the age of intelligence