Theory
Point estimation and maximum likelihood
Estimators, mean squared error, the method of moments, and maximum likelihood, with examples of consistency and efficiency.
A technical office records service requests on five randomly chosen shifts and wants to know how many requests arrive on average in a shift, taking into account all shifts and not only the five observed ones. The mean of the five counts is , and this number is used as an approximate value of the mean over all shifts. A number computed from the data to approximate an unknown quantity of the population is called a point estimate, and it is the subject of this chapter.
The chapter answers two questions. The first question is which rule gives the estimate, and to answer it the chapter presents the method of moments and the method of maximum likelihood, which give a rule for every model whose distribution is known up to a parameter. The second question is how much the rule errs, and to answer it the chapter computes the bias, that is, how far the estimate lies from the true value on average, and the mean squared error. For example, for the data the sum of the squared deviations from the mean is . Dividing by gives , dividing by gives , and only the second rule has on average the value of the population variance.
The calculations of expectations and variances use the random variables of Chapters 5 to 7 and the results on the sample mean from Chapter 8. Chapter 10 starts from an estimator and its distribution to build an interval of values that contains the parameter with a fixed probability, for example . The tests of Chapter 11 and the regression of Chapter 12 use the estimators of this chapter, in particular the sample mean and the unbiased sample variance .
Parameter, estimator, and estimate
Estimator and observed estimate
Of items inspected on a production line, are defective. The probability that an item from the line is defective is unknown. For item set if it is defective and otherwise, so has a Bernoulli distribution with parameter (Chapter 5). Each value of between and gives a different distribution for the data. For example, with an item is defective with probability , with with probability .
The set of possible distributions for the data, one for each value of an unknown number, is called a statistical model. The unknown number is the parameter of the model and, for a general model, is denoted by , read theta; in the example . The set of allowable values of is called the parameter space and is denoted by , capital theta; in the example . The parameter has a fixed value, which is unknown before the data are observed.
The variables denote the values of the observations before data collection, and a statistic is a function of the observations and of known quantities (Chapter 8). In the example the proportion of defective items in the sample, , is a statistic chosen to approximate . For a general parameter, an estimator of is a statistic chosen to approximate . Substituting the observed values gives the estimate ; in the example .
The estimator is a random variable, because another items may contain or defective ones and the proportion changes. The estimate is the number already calculated from the observed sample.
When estimating a mean, denotes the sample mean as a random variable and denotes the mean of the observed values. For a general parameter one also writes , read theta hat; the context indicates whether it refers to the rule or to its value for the observed data.
The rest of the chapter compares different estimators of the same parameter and presents two methods for constructing them. The confidence intervals of Chapter 10 start from an estimator and its distribution.
Two estimates from the same observations
On five independently selected shifts, the numbers of service requests are . To estimate the mean number of requests per shift, use ; these data give . To estimate the probability of at least one request during a shift, use instead the mean of the indicators , which equal for shifts with at least one request and for the others. The corresponding estimate is , because four shifts out of five meet the condition. The two numbers estimate different parameters. The first gives how many requests arrive on average in a shift, the second the fraction of shifts in which at least one request arrives.
Remark
On another five shifts the estimator takes a different value. The distribution of an estimator , computed assuming that the data follow the model distribution for a given value of , is called the sampling distribution of . The notation and indicates that the expectation and variance are calculated assuming that is the true value of the parameter.
Two rules can give the same estimate for one sample and have different sampling distributions. With the data the mean is and the first observation is also , so the two rules give the same estimate. As random variables, however, has variance , the variance of a single observation, while has variance (Chapter 8, distribution of the mean). If , on another sample the first observation therefore lies farther from the expected value on average than the sample mean.
Warning
An estimator is computed from the observations and known quantities only. The expression has expectation zero when , but it contains the unknown parameter . Computing it for the data would require the value of , which is exactly what is being sought, so it is not a statistic and cannot be used as an estimator.
The expression can be computed only when is known. For example, if is the certified mass of a reference weight and is its reading on a scale, is the measurement error. The deviation , by contrast, is computed from the data, and for the shifts it equals . It is a statistic, but it estimates no parameter, because it only gives how far the first observation lies from the sample mean.
Bias and mean squared error
1. Bias and unbiasedness
Let be three observations with mean , and consider the estimator , which divides the sum by instead of . By linearity of expectation, . If , then , so the estimates equal on average while the parameter equals , and the mean error is .
If has finite expectation, the bias of is the mean signed error between the estimator and the parameter:
In the example , which equals for . When the bias is positive the estimates exceed the parameter on average; when it is negative they are smaller on average.
The estimator is unbiased if the bias is zero for every . For example has expectation for every , so it is unbiased. Unbiasedness is a property of the rule, and it is checked by computing the expectation as a function of , without knowing the true value of the parameter.
The bias gives how much a rule errs on average. The theorem on the sample variance, later in the chapter, uses it to choose between the divisor and the divisor .
2. Decomposition of mean squared error
An unbiased estimator with variance gives estimates that agree with on average, but have standard deviation about . To measure bias and spread together, one uses the mean of the square of the error .
For a real-valued estimator with finite , the mean squared error is . It satisfies
The variance gives how much the estimates spread about the expectation of the estimator. The squared bias gives how far this expectation lies from the parameter. For an unbiased estimator the second term is zero, so comparing the mean squared errors of two unbiased estimators is equivalent to comparing their variances. The unbiased estimator with variance therefore has mean squared error .
The mean squared error also allows an unbiased estimator to be compared with a biased one, as in the following example.
Proof
Write the error as the sum of a deviation from the expectation and a constant. Setting , expanding the square and using linearity of expectation gives
The cross term vanishes because . The quantity is the bias.
Comparing two estimation rules
For a given value of , the estimator is unbiased with variance . The estimator has expectation , hence bias , and variance . The mean squared errors are
For this value of the variance of is smaller by than that of , while the squared bias adds only , so has the smaller error. To conclude that is preferable for every value of the parameter, the comparison must be repeated for every ; the last example of the chapter shows a case in which the comparison changes with .
End of the free preview
The theory of this topic continues with 7 more sections
- Sample mean and sample variance
- Method of moments
- Likelihood and maximization
- Maximum likelihood in common models
- Parameter-dependent support
- Consistency and efficiency
- 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.