|
The law of large numbers (LLN) is a theorem in probability that describes the long-term stability of the mean of a random variable. Given a random variable with a finite expected value, if its values are repeatedly sampled, as the number of these observations increases, their mean will tend to approach and stay close to the expected value.
The LLN can easily be illustrated using the rolls of a die. That is, outcomes of a multinomial distribution in which the numbers 1, 2, 3, 4, 5, and 6 are equally likely to be chosen. The population mean (or "expected value") of the outcomes is:
(1 + 2 + 3 + 4 + 5 + 6) / 6 = 3,5.
The graph to the right plots the results of an experiment of rolls of a die. In this experiment we see that the average of die rolls deviates wildly at first. As predicted by LLN the average stabilizes around the expected value of 3.5 as the number of observations becomes large.
Another example is the flip of a coin. Given repeated flips of a fair coin, the frequency of heads (or tails) will increasingly approach 50% over a large number of trials. However it is possible that the absolute difference in the number of heads and tails will tend to get larger and larger as the number of flips increases. For example, we may see 520 heads after 1000 flips and 5096 heads after 10000 flips. While the average has moved from 0.52 to 0.5096, closer to the expected 50%, the total difference from the expected mean has increased from 20 to 96.
The LLN is important because it "guarantees" stable long-term results for random events. For example, while a casino may lose money in a single spin of the American roulette wheel, it will almost certainly gain very close to 5.3% of all gambled money over thousands of spins. Any winning streak by a player will eventually be overcome by the parameters of the game. It is important to remember that the LLN only applies (as the name indicates) when a large number of observations are considered. There is no principle that a small number of observations will converge to the expected value or that a streak of one value will immediately be "balanced" by the others. See the Gambler's fallacy. |