Lecture 8 Sufficiency
In example 4.2 we have observed ten coin tosses and got seven heads. Writing for the heads probability, the likelihood in this example is . This function depends on the data only via the number of heads, but not on the order of heads and tails, i.e. for learning about we can replace the full record of observations by this single number. This lecture makes the idea precise: a sufficient statistic contains all information about the parameter. The factorisation theorem helps to find sufficient statistics, and the concept of sufficiency forms the basis of improvements of estimators in lecture 10.
In this lecture we write for the data, for an observed value, and
for the joint density or joint probability weights of the sample; the vector argument distinguishes it from the density of a single observation. As a function of for fixed data, this is the likelihood from lecture 4.
8.1 Sufficient Statistics
A statistic in the sense of definition 1.3 reduces the data to a smaller summary, and usually some information is lost in the process. The following definition expresses that no information about is lost.
A statistic is sufficient for , if the conditional distribution of given the value does not depend on , for all values of .
If is sufficient, anyone who knows the value of can generate a new data set with the same distribution as the original data set, by sampling from the conditional distribution of given . Since this distribution does not depend on , all information about that we could obtain by studying the data set can now be obtained by studying alone.
Let be i.i.d. Bernoulli with success probability and let be the number of successes. We know that , as a sum of Bernoulli variables. Let and let be a data vector with . Since the event is contained in the event , we have
If , the events and are disjoint and the conditional probability is zero. In both cases the value does not depend on , and thus is sufficient for . Given the number of successes, each of the possible arrangements of successes and failures is equally likely, whatever the value of : the positions of the successes do not contain any information about the coin.
Two simple observations follow from the definition. First, the whole sample is always sufficient, since given the whole sample there is no randomness left. Secondly, if is a one-to-one function, the events and coincide, and thus is sufficient whenever is: a one-to-one function of a sufficient statistic is sufficient again. For the coin tosses the sample mean is thus sufficient too.
8.2 The Factorisation Theorem
Directly verifying the definition of sufficiency requires knowledge of the distribution of and involves a conditional probability which, for most models, is tedious to compute. The following proposition replaces the computation with a condition on the density or weights.
The statistic is sufficient for , if and only if there are functions and such that
for all data vectors and all .
The function may not depend on at all, and the function may depend on the data only through : the parameter and the data interact only through . Nothing in the statement requires or to be one-dimensional. We give a proof for discrete data only.
Since we have discrete observations, the joint probability weight is the probability of observing the data vector .
Assume first that is sufficient and let be a data vector with . Since the event is contained in the event , we have
whenever . Using the sufficiency of the statistic, the conditional probability does not depend on and thus is a function of the data. The remaining factor is a function of and . If for the given , both sides in (8.1) equal zero since . For the data vectors with for every , which are never observed, we define . Thus (8.1) holds for all and .
Conversely, assume that (8.1) holds and let be a value of and a parameter value with . Summing the factorisations for all data vectors with , we find
where is the sum of the , which does not depend on . Since the left-hand side is positive, we have . For data with we get
and for with the conditional probability is zero. Thus, in both cases the value does not depend on and is sufficient. This completes the proof. ∎
The proof for the continuous case is more technical, and we omit it here. As a first step, one needs to define what it means to condition the distribution of on , since we typically have in the continuous case. To avoid these complications, we will use (8.1) as the definition of sufficiency for the continuous case from now on. Once conditioning on has been given a meaning, it can be shown that the factorisation again implies that the conditional distribution of the sample given does not depend on , as in the discrete case. We will use this property without proof in lecture 10; exercise 10.3 verifies it for an exponential sample.
When the support depends on , the density has to be written down for all , including the values where it is zero, since this is where the parameter and the data may interact. To write such densities compactly we use the indicator function of a condition, , which equals if the condition holds and otherwise. The uniform distribution is the standard example.
Let be i.i.d. with , as in example 1.2. The density of a single observation, written for all , is . A product of indicators is the indicator of the intersection of the conditions, and all conditions hold if and only if the smallest observation is at least and the largest is at most . Thus the joint density is given by
If we set and we have
and by proposition 8.3 the sample maximum is sufficient for . It is a common mistake to try to write the joint density simply as and to conclude that no statistic is needed: the indicator is where the data and the parameter interact.
The factorisation has a consequence for maximum likelihood estimators. For fixed data the likelihood is , and the factor does not affect where the maximum over is attained: the maximum likelihood estimator, whenever it is unique, is a function of any sufficient statistic. The examples of lecture 5 confirm this: the Bernoulli MLE is with the sufficient statistic of example 8.2, and the uniform MLE is the sample maximum, which example 8.4 shows to be sufficient.
8.3 Sufficiency in Exponential Families
For the exponential families from lecture 7, no work is needed to find a sufficient statistic, since the densities are already given in factorised form.
Let be an i.i.d. sample from a one-parameter exponential family as given in definition 7.1 and let be the natural statistic. Then is a sufficient statistic for .
For a -parameter exponential family as given in definition 7.6, the vector of summed natural statistics is sufficient for the parameter vector.
Let be i.i.d. Poisson with parameter . The joint probability weights are given by
and thus the sum is sufficient for , with and .
Let be i.i.d. with both parameters unknown. Example 7.7 identifies the natural statistics as and , and thus by corollary 8.5 the pair is sufficient for . Since , the pair maps to one-to-one and thus is also sufficient. This is the pair of statistics on which the maximum likelihood estimator from example 5.4 is based; the factorisation is worked out in exercise 8.4.
8.4 The Sample Maximum and Minimum
Example 8.4 shows that a sufficient statistic need not be a sum. To find the bias or the mean squared error of the sample maximum we need its distribution, which the following result gives for the maximum and minimum of an i.i.d. sample.
Let be i.i.d. with distribution function and density . Furthermore, let and . Then the random variables and have densities
The maximum is at most , if and only if all observations are at most . Using independence we get
Using the chain rule for differentiation with respect to , we find that the maximum has density . Similarly, the minimum is strictly greater than , if and only if all observations are strictly greater than . Thus we get
Using the chain rule for differentiation we find . This completes the proof. ∎
Let be i.i.d., as in example 8.4. The distribution function is for , and the density is on . By proposition 8.8 the sample maximum has density
and outside this interval. This is the density supplied without proof in exercise 2.2, from which we computed there. The support of the maximum moves with , as the support of a single observation does.
8.5 Minimal Sufficiency and Completeness
As we have seen in section 8.1, the whole sample is always sufficient. For an i.i.d. sample, the vector of ordered observations is also sufficient, since the joint density does not change when the are interchanged. The aim of this section is to characterise the statistic which allows us to reduce the data as much as possible, while still retaining all the information.
A sufficient statistic is minimal sufficient for , if for every sufficient statistic there is a function such that .
A minimal sufficient statistic can thus be computed from every other sufficient statistic. The definition is awkward to check directly, because it refers to all sufficient statistics at once; the following criterion instead compares the likelihood functions of two data sets. In the criterion we write
for the set of data vectors which can be observed under some parameter value, for the Poisson distribution the vectors of non-negative integers.
Let be a statistic such that for all the following two statements are equivalent:
-
1.
there is a constant such that for all ;
-
2.
.
Then is minimal sufficient for .
When both and are positive for all , the first statement says that the ratio does not depend on . We only sketch the proof. For sufficiency, we choose for every value of a data vector with ; the first statement then gives the factorisation (8.1) with and . For minimality, let be sufficient and with . The factorisation for shows that and are proportional, and the criterion gives : the value of is determined by the value of .
The criterion states that determines the likelihood function of the data up to a constant factor, and that two data sets with different values of have likelihood functions which are not proportional. We apply the criterion once, to the Poisson sum. The two-parameter normal case is worked out in exercise 8.4.
Let be i.i.d. Poisson with parameter , and let . For two vectors and of non-negative integers, both probability weights are positive and the joint probability weights of example 8.6 give
If , the power of disappears and the ratio is a positive constant. If the sums differ by , the ratio contains the factor , which is not constant as ranges over . Thus the ratio is free of if and only if , and is minimal sufficient by proposition 8.11.
-
•
A statistic is sufficient for , if the conditional distribution of the data given does not depend on : the data can be reduced to without losing information about .
-
•
The factorisation theorem states that is sufficient if and only if . When the support depends on , its indicator is part of the density and belongs to . When the MLE is unique, it is a function of any sufficient statistic.
-
•
For exponential families, the summed natural statistic is sufficient. This includes the Bernoulli total, the Poisson sum and the normal pair .
-
•
The densities of the sample maximum and minimum are and , obtained by differentiating and , respectively.
-
•
A minimal sufficient statistic is a function of any sufficient statistic. A statistic is minimal sufficient, if holds exactly when the likelihood functions of and are proportional.
Let be i.i.d. Bernoulli with success probability , where , and let be the number of successes.
-
1.
Let be a data vector. Compute the conditional probability and show that the first observation on its own is not sufficient for .
- 2.
-
3.
Is the statistic sufficient for ? Justify your answer.
Let be i.i.d. with , so that a single observation has density .
-
1.
Show that the joint density can be written as
-
2.
Deduce from proposition 8.3 that is sufficient for . Identify the functions and .
-
3.
Show that the pair of the sample minimum and maximum is also sufficient for , and express as a function of this pair.
Let be i.i.d. exponential with rate , i.e. for .
Let be i.i.d.
-
1.
Assume that is known and is unknown. Show that is sufficient for .
-
2.
Assume that both parameters are unknown. By expanding the squares in the exponent of the joint density, show that the joint density depends on the data only via the pair . Using proposition 8.3, show that is sufficient for .
-
3.
Using proposition 8.11, show that the pair from the previous part is minimal sufficient for .
-
4.
Is the sample mean on its own sufficient for when both parameters are unknown? Justify your answer using the previous part.
Let be i.i.d. exponential with rate , and let .
-
1.
Show that is exponentially distributed with rate , first by proposition 8.8 and then directly from .
-
2.
Show that is an unbiased estimator for the mean , and compute its variance.
-
3.
Compare the variance of with that of the sample mean , which is also unbiased for , and comment on the behaviour of the two estimators as grows. Is a function of the sufficient statistic ?