Theory
Sampling, the law of large numbers, and the central limit theorem
How a statistic varies across samples, how to calculate exact probabilities, and how to obtain normal approximations and upper bounds.
A company measures the length of parts chosen at random from a production run of many thousands and obtains a mean of . The mean length of all the parts produced is another number, which nobody knows. With different parts, another mean would have been obtained, for example . This chapter calculates how much the mean of a sample changes from one sample to another. For example, if the lengths of individual parts have standard deviation , the means of samples of parts have standard deviation , and the probability that one of them exceeds the mean of the whole production by more than is about .
The tools are of three kinds. The first is the exact distribution of the mean, which is obtained when the individual measurements are normally distributed. The second consists of Markov’s and Chebyshev’s inequalities, which give an upper bound for a probability from the mean and variance alone. The third consists of two theorems about the behavior of the mean as the number of observations grows, the law of large numbers and the central limit theorem. The chapter also covers proportions, such as the fraction of defective parts in a sample, and samples drawn without replacement from a finite population.
This chapter opens the part of the course on statistical inference, that is, on passing from the sample to the whole population. Population, sample, parameter, and statistic were defined in Chapter 1, and the mean and variance of a data set in Chapter 2. From the probability chapters we use random variables and their distributions (Chapters 5 and 6, in particular the normal distribution) and the rules for the mean and variance of a sum (Chapter 7). The results of this chapter are used in the following chapters: in Chapter 9 to assess the precision of an estimate, in Chapter 10 to construct confidence intervals, and in Chapter 11 for hypothesis tests.
From sample to statistic
Random samples and statistics
Draw students at random, one after another, from a large university and measure their heights. Before the draw, the height of the first student drawn is a random number. Its possible values and their probabilities are those of the heights of all enrolled students. If of the enrolled students are taller than , the first student drawn is taller than with probability , and the same holds for the second, the third, and so on. Probabilities concerning a single observation therefore coincide with the relative frequencies in the population.
With observations, let be random variables with the same distribution, where is the value of observation . The variables are called independent if, for every choice of sets ,
For this is the definition of independence of a pair given in Chapter 7. In the example, the probability that all five students are taller than is . Variables that are independent and have the same distribution are called independent and identically distributed, abbreviated i.i.d.; the sequence then forms an i.i.d. sample of size .
A statistic is a function of the data and known constants. The mean, the maximum, and the number of observations exceeding a known threshold are all statistics. The quantity , where is the mean of the observations and (read mu) is the unknown population mean, is not a statistic, because computing it requires . Before the data are collected, statistics are random variables because they take different values under repeated sampling. Once the data have been collected, the numbers form a realization of the sample and give the observed value of the statistic. If the five observed heights are , , , , and , the observed mean is , the maximum is , and observations are above .
The distribution of a statistic, called its sampling distribution, gives the probability that the statistic falls in each set of values, taking into account all possible samples. The rest of the chapter calculates this distribution for the mean and for the proportion.
Distribution of the mean of two trials
Two independent measurements each take the values and with equal probability, like the results of two coin tosses in which denotes heads. The four ordered outcomes are equally likely. The mean equals for outcome , equals for outcomes and , and equals for outcome . Its distribution therefore assigns probabilities , , and to the three values. If the observed sample is , the observed mean is .
Warning
Observations can have the same distribution and still be dependent. Let be an indicator that equals with probability , and set . Each observation has the same distribution as in the example, but the pair takes only the values and . The mean then equals and has variance , whereas the mean of two independent trials has variance . The formulas of this chapter for the mean therefore require independence.
Dependence of this kind arises when the same unit is measured several times, or in cluster sampling, where groups of units, called clusters, are drawn at random and every unit in each selected group is measured. The three thickness measurements of a single tile in Chapter 1 are an example: if the tile is thicker than average, the three measurements tend to be all high.
Sample mean and standard error
Distribution of the mean
In the example of two trials, each measurement has mean and variance . The mean of the two measurements still has mean , whereas its variance is , that is, half the variance of one measurement. The following theorem states that with independent observations the variance of the mean is the variance of one measurement divided by .
Let be an i.i.d. sample from a distribution with mean and finite variance (read sigma squared), where is the standard deviation of the individual observations. The sample mean is . The standard error of a statistic with finite variance is the standard deviation of its sampling distribution, denoted by . Writing for the expected value and for the variance of a random variable (Chapter 5), for the mean
The value indicates how far individual observations typically lie from . The quantity indicates how far the means of samples of the same size lie from , in the same units as the data. In the example of the introduction, the lengths of individual parts have , whereas the means of parts have standard error . The standard error is the measure of the precision of a mean used in Chapters 9, 10, and 11.
Proof
For the center of the distribution, use linearity of expectation (Chapter 7). Each has expectation , so . For the spread, use independence. The covariances between distinct observations are zero, so the variance of the sum is the sum of the variances (Chapter 7), that is, . Multiplying a variable by multiplies its variance by , so the variance of the mean is . Its square root is the standard error.
Precision when sampling again
Individual measurements have standard deviation . For a sample of independent measurements, the mean has standard error . Achieving requires at least measurements, because is equivalent to , that is, to . Since , halving the standard error requires four times as many observations if the population spread stays the same.
Estimating the standard error
The formula contains the population standard deviation , which is usually unknown. In its place, for , the sample standard deviation is used, that is, the square root of the corrected sample variance of Chapter 2:
The estimator of the standard error is . If a sample of measurements gives , the estimate is . A new sample of the same size gives a different value of , for example , and hence the estimate . The estimate changes with the data, whereas the theoretical standard error is determined by and the population.
Precision with a common error component
An instrument introduces the same random calibration error into every measurement in a session: if in one session the instrument reads too high, all the measurements of that session come out too long. Suppose observation has the form , where the errors are independent of each other and of . If ( is read tau) and each has variance , then
Indeed, the mean is , where is the mean of the errors . Since and are independent, their variances add. The variance of equals that of an individual error divided by , by the previous theorem. The same component , on the other hand, appears with coefficient one in each mean, so it retains its variance .
It follows that the variance of the mean stays above however large becomes: adding measurements to a session reduces only the part . When sessions are repeated independently, the calibration component changes across sessions and contributes to the variation among their means. For example, with , , and , the variance of the mean is , and with it is . Treating all measurements as independent would give for , because each measurement has variance . The correct value is larger because two measurements from the same session have positive covariance, equal to .
End of the free preview
The theory of this topic continues with 8 more sections
- Exact sampling distributions for a normal population
- Probability bounds from the mean and variance
- Weak law of large numbers
- Central limit theorem
- Proportions and the continuity correction
- Random samples from finite populations
- Choosing the model and the result
- Keep studying
Full access also includes the other 7 worked examples of this topic and the solutions of the 14 practice exercises.
Unlock Statistics and probability · €49Read the first 3 worked examples in this chapter for free.