Toss a fair coin again and again, independently, and keep track of the proportion of heads. After 10 tosses it might be 0.7, after 100 tosses 0.46 and after 1000 tosses 0.508. The running proportion wanders and sometimes moves away from 0.5, yet over long runs it is very likely to be close to 0.5. This lesson states precisely what that settling means, which assumptions produce it, and what it does not promise about streaks, biased measurements or the shape of a distribution.
Key terms
Independent and identically distributed
Definition Random variables are independent if, for any choice of events, one about each variable, the probability that all of them happen equals the product of their separate probabilities. An infinite sequence is independent if every finite group of its variables is. The variables are identically distributed if they all have the same probability distribution. Together these conditions are abbreviated iid. For iid discrete observations, the conditional probability of any value for a new observation, given earlier values that have positive probability, equals its unconditional probability.
In plain words Each new observation is a fresh draw from the same probability model. The earlier outcomes neither change the model nor carry information about the next outcome.
Example Random draws with replacement from a fixed population are iid, each with the population distribution. So are the success indicators of independent trials with a common success probability , each . Draws without replacement from a population of distinct cards are identically distributed but not independent, since the second card cannot repeat the first. A data file in which one trial’s outcome has been copied into every row is identically distributed too, but completely dependent. Readings from an instrument whose calibration drifts over time are not identically distributed.
Convergence in probability
Definition A sequence of random variables converges in probability to a constant if, for every ,
The number is a tolerance fixed before grows, and the condition must hold for every positive tolerance, however small.
In plain words Choose any margin around the target. Far enough along the sequence, the probability of landing outside that margin is as small as you like. A smaller margin can require going much farther along. The definition does not say that a realized sequence of values moves steadily closer to , and it does not promise that any particular equals .
Example Let equal with probability and otherwise. For a tolerance with , the probability equals , which tends to , and for it is . So converges in probability to . Yet the value keeps a positive probability at every , so the convergence is a statement about probabilities, not a guarantee for a particular .
Chebyshev’s inequality
Definition If a random variable has mean and finite variance , then for every
It holds for every distribution with a finite variance, with no assumption about shape. For the mean of iid observations with mean and variance , the variance of is , so
In plain words A random quantity with a small variance is unlikely to land far from its mean. The bound is often much larger than the true probability, but it needs nothing about the distribution beyond its variance.
Example For independent trials with success probability , coded as ones and zeros, each indicator has variance . With tolerance the bound for the sample proportion is
which is at and at . At the bound is , which is true but says nothing, since every probability is at most .
Law of large numbers
Definition Let be independent and identically distributed with mean and finite variance , and let be the mean of the first of them. The weak law of large numbers says that converges in probability to . That is, for every ,
The proof applies Chebyshev’s inequality to , whose bound tends to for each fixed . These conditions are sufficient, not necessary. For iid observations a finite mean is already enough, and other versions allow some dependence or observations that are not identically distributed. In the language of estimation, the sample mean is a consistent estimator of .
In plain words Under these conditions, a large enough sample makes it very likely that the average lies within any chosen tolerance of the expectation. The law does not say that the average improves with every new observation, it does not promise that the average equals at any finite , and it says nothing about the shape of the distribution of , which is the subject of the central limit theorem. The target is the expectation of the values actually recorded, so a biased measurement or selection process makes the average settle near the wrong value.
Example For the independent trials with success probability and tolerance , let be the number of successes. With the event means or , and its exact binomial probability is about . With it means or , with probability about . Both lie well below the Chebyshev bounds and . These finite calculations illustrate the law, but no list of finite cases proves it.
Gambler’s fallacy
Definition The gambler’s fallacy is the mistaken belief that, in independent trials, a run of one outcome makes the other outcome more likely on the next trial, as if the sequence had to even out. For independent trials with success probability , the conditional probability of success on the next trial, given any possible earlier results, is still . The law of large numbers works by dilution, not compensation. An early surplus of successes keeps the same expected size, while it becomes a smaller and smaller fraction of the growing total.
In plain words Independent trials have no memory. A streak does not create a debt that later outcomes must repay, and the average settles because the many ordinary outcomes that follow outweigh the early ones.
Example Suppose the first independent trials with success probability give successes, four more than the expected . The next trial still succeeds with probability . After further trials the expected number of successes is out of , a proportion of about . After further trials it is out of , about . In both cases the expected surplus over times the total is still , so the expected proportion approaches because the total grows, not because later trials fall short.
Check yourself
- A fair coin is tossed independently times. Use Chebyshev’s inequality to bound the probability that the proportion of heads differs from by at least . How large must be for the bound to be at most ? At the exact probability is about . How does the bound compare?
Show the answer
Each toss has variance , so the bound is
It is at most when . At the bound is , more than four times the exact probability . The bound is valid but loose, which is typical, since it uses nothing about the distribution except its variance.
- A fair coin has landed heads seven times in a row in independent tosses. A friend says tails is now more likely, because the law of large numbers has to balance the heads out. What is the probability of tails on the next toss, and what is the expected proportion of heads after further tosses?
Show the answer
The next toss is independent of the first seven, so tails has probability . The friend is committing the gambler’s fallacy.
After further tosses the expected number of heads is out of , a proportion of . The expected surplus of heads over half the total is never repaid. It simply becomes a small fraction of a large total.
- A thermometer adds a fixed degrees to every reading, and apart from that its readings have independent, identically distributed random errors with mean and standard deviation degrees. The true temperature does not change. Does the average of readings get close to ?
Show the answer
The readings are iid with mean and variance , so the law of large numbers makes the average converge in probability to , not to . Chebyshev’s inequality with gives
so with probability at least the average lies within degrees of , and therefore more than degrees above . More readings make the average more precise around the wrong value. Removing the bias needs calibration, not more data.