In a constructed model, a sensor reading is uniform between and , so a single reading misses the mean by at least with probability . How many independent readings must be averaged before a miss that large has probability at most ? The law of large numbers for discrete variables answered questions like this for outcomes such as counts, and the same argument works for continuous measurements, because it uses only a mean, a finite variance and independence. This lesson proves the weak law for continuous variables, turns the Chebyshev bound into a sample size, and shows what that bound does and does not promise.
Key terms
Weak law of large numbers for continuous variables
Definition Let be IID random variables with mean and finite variance , let and let . The weak law of large numbers says that for every fixed
This is convergence in probability of to . The proof in the Chebyshev card below uses only the mean, the variance and independence, so it covers continuous distributions exactly as it covers discrete ones, and no density formula enters. Laws of large numbers under weaker assumptions exist, but this finite-variance version is the one proved here.
In plain words Fix any size of miss in advance. Once enough independent observations are averaged, a miss at least that large becomes improbable. The law speaks about probabilities across possible samples at each sample size. It does not say that every new observation moves the average closer to , and earlier misses are diluted by later observations, not corrected by them. IID is an assumption about how the data arise. Readings from an instrument whose behavior drifts over time are not identically distributed, and collecting many of them does not make them so.
Example Let the readings be IID. Then and
which is finite, so the weak law applies and . For a single reading this probability is , since misses by at least unless it lands in the interval , whose length is a tenth of the length of the support. For the average of two readings it is already , from the triangular density of .
Running average
Definition Given observed values , the running average after observations is
for each . It can be updated one value at a time by for . The graph of against is one path. Before the data exist, the running averages are random, and a path is one realization of the whole sequence. It is not a histogram of many independent sample means, and it is a different object from the sampling distribution of .
In plain words A running average plot shows what happened in one run. The weak law says that at a single large step the running average is probably close to . A path can still move away from at many individual steps, and another run gives another path.
Example One pseudorandom run of draws from , made with Python’s random module and seed , gave these running averages.
The checkpoints approach , yet in the same run of the updates moved the average farther from . These simulated values illustrate the law in one run and do not prove it. A small constructed case shows a single step moving away. The values , and give the running averages , and , whose distances from are , and .
Chebyshev bound for a sample mean
Definition Let be independent, each with mean and finite variance . Linearity gives , a step that needs no independence. Independence makes every covariance with equal to , so and . Pairwise uncorrelated observations would be enough for this step. Chebyshev’s inequality says that for every with finite variance and every . Applied to it gives
For fixed the right side tends to , which proves the weak law. A bound above gives no information, since every probability is at most . To make the bound at most a target with , it suffices that
and since counts observations, take the smallest positive whole number at least this large.
In plain words The average of independent observations has of the variance of one observation, and Chebyshev’s inequality turns a small variance into a small probability of a large miss. Halving the tolerance multiplies the threshold for by four.
Example For IID readings and ,
At the bound is , so . For a bound of at most the sample size must satisfy , which means , so readings suffice. Indeed gives , while gives .
Conservative bound
Definition A bound is conservative when it is guaranteed under its assumptions but can be far larger than the probability it bounds. Chebyshev’s inequality uses only the mean and the variance, so it must hold for every distribution with those two values, including the least favorable one, and for a particular model it is often loose. A sample size taken from a conservative bound is sufficient for the stated guarantee but need not be necessary, and the bound is not an estimate of the actual probability.
In plain words The bound has to hold even in the worst case among all distributions with the given mean and variance, so it says little about the behavior of the model at hand. A smaller sample may already meet the goal, and finding out requires the exact distribution or a justified approximation.
Example For two IID readings the sum has a triangular density on . With the exact miss probability is , while the bound gives . For the tolerance of the earlier example, the exact distribution of a sum of independent uniform variables shows that the miss probability first drops to or below at , and at it is about . Here Chebyshev asks for about five times as many readings as the goal requires.
Perfectly dependent observations
Definition Observations are perfectly dependent when all of them equal one random variable, , where has mean and finite variance . Each then has the distribution of , so the observations are identically distributed. When and they are not independent, since for . The average is for every , so , and the miss probability does not change with . When and , the step fails, because all terms in
equal , which gives instead of .
In plain words Entering one measurement many times copies its error instead of averaging it away. The averaging argument of this lesson relies on independence, and identical distributions alone do not supply it.
Example Let and for every . Each observation is , exactly as in the IID model, but has variance for every , while the IID average has variance . The miss probability stays however large is, while in the IID model it is at most .
Check yourself
- Observations are IID . Use the Chebyshev bound to find a sample size that makes at most .
Show the answer
The mean is the midpoint, . The support has width , so , which is finite. With the bound is
Requiring gives , so suffices, with bound . This sample size is sufficient for the bound. It does not show that fewer observations would fail.
- Waiting times in minutes are IID . Find the sample size the Chebyshev bound requires to make at most , and compare it with the uniform readings found above. Does the answer show that waits are too few?
Show the answer
With rate the mean is and the variance is . The bound is , and gives . The variance is twelve times the uniform variance , so at the same tolerance and target the threshold for grows by the same factor, from to . The answer does not show that waits are too few. A conservative bound gives a sufficient sample size only. In fact, the exact distribution of a sum of independent exponential waits shows that waits already give a miss probability below .
- A technician records one reading and enters it times as . Applying with , the technician concludes that the average misses by at least with probability at most . Find the actual probability and name the assumption that fails.
Show the answer
The average equals , so the miss probability is , far above . Independence fails. The entries are identically distributed, but every covariance equals , so , not . Chebyshev’s inequality applied correctly to gives , which is above and says nothing, consistent with the true value .