Lecture 7 Exponential Families
In lectures 4 and 5 we repeatedly collapsed products of densities to expressions which summarised the data using only one or two sums. This lecture explains why: almost all families of models considered here have the same algebraic shape, and models of this shape are called exponential families. Many of the results in the following weeks are almost automatic for this class.
7.1 Recognising the Shape
We start by considering a familiar distribution and then rewrite its probability weights so that the data and the parameter are as far apart as possible. For the Bernoulli distribution with we can write
Here we have written the weights as the exponential of the product of one function of and one function of , plus a function of only . The Poisson weights and the exponential density can be written in a similar way: for and respectively we have
For the Poisson weights an additional factor appears, which depends on alone. We will give a name to this structure.
A parametric model with is a one-parameter exponential family, if the density or the probability weights can be written as
for all and all , where and are functions of alone and and are functions of alone. The statistic is called the natural statistic and is called the natural parameter of the family.
Since the exponential is always positive, is positive if and only if is. Thus the support of the distribution is and does not depend on . The representation is not unique, since we can replace by and by for any constant . Finally, since the density must integrate (or sum) to one, the function is determined by the other three functions: we have
These rewritings give the following examples.
The Bernoulli distribution with is a one-parameter exponential family with for and otherwise, natural statistic , natural parameter , the log-odds of success, and .
The Poisson distribution with is a one-parameter exponential family with for and otherwise, natural statistic , natural parameter and .
The exponential distribution with rate is a one-parameter exponential family with for and otherwise, natural statistic , natural parameter and .
The normal distribution is also an exponential family, but since both parameters are unknown, we need to use the two-parameter version of the definition from section 7.2.
The uniform distribution on is not an exponential family, since the support of the distribution changes with the parameter. In contrast, the support of an exponential family is always fixed. This is the same reason why the likelihood equation was useless in example 5.5. Similarly, the location model from section 5.3 is not an exponential family, despite the fact that its support is all of ; we do not prove this.
The shape survives the passage from one observation to a sample.
Since the observations are independent, the joint density is the product of the marginal densities. Combining the exponents using the rule gives the required form. This completes the proof. ∎
Read as a function of , the joint density is the likelihood, and thus the log-likelihood of an exponential family sample is
The first term does not involve . Thus, up to a factor which does not depend on , the likelihood depends on the data only through the single number . This is an extension of example 4.3 to the whole class; in lecture 8 we will see in which sense the value contains all the information about .
7.2 Several Parameters
The normal distribution where both and are unknown does not fit definition 7.1, since the exponent contains the two products and , which cannot be combined into a single product . The extension is to allow a sum of such products in the exponent.
A parametric model is a -parameter exponential family, if the density or the probability weights can be written as
for all and all , where and are functions of alone and and are functions of alone. The vector is the natural statistic and is the natural parameter of the family.
The number counts the products in the exponent, not the components of . In most of our examples the two agree, but they do not have to: the normal distribution considered below has the single parameter , but its exponent needs two products. An exponential family in which is larger than the dimension of is called a curved exponential family.
The support of the distribution is again and the proof of lemma 7.5 applies without change: an i.i.d. sample is again a -parameter exponential family, where the natural statistic is the vector of the sums .
By expanding the square in the exponent of the density of the normal distribution from table 1.2, we can write
If only is unknown, the factor and the term contain no unknown quantities and we can define the function : we have found a one-parameter exponential family with natural statistic , natural parameter and . If both parameters are unknown, we have to interpret the term as a second product and we get a two-parameter exponential family with , natural statistic , natural parameter and . For a sample, the natural statistic is . Since , for fixed this pair and the pair used to derive the maximum likelihood estimator in example 5.4 are one-to-one functions of each other.
The gamma distribution with both parameters unknown is a second example of a two-parameter exponential family. If we write , then the natural statistic is and the details are worked out in exercise 7.1. For a sample of size , the natural statistic is the pair , which is different from the pair of moments used in example 4.9.
For the completeness statements in lecture 10 it is important that the natural parameter varies in as many directions as there are natural statistics. Mathematically, this can be expressed as the following condition.
A one-parameter exponential family is of full rank, if the set of natural parameter values contains a non-degenerate open interval. A -parameter exponential family is of full rank, if the set contains a non-empty open subset of .
In the one-parameter case, the condition is almost always satisfied, since the image of an interval under a continuous, non-constant is an interval with more than one point; all the one-parameter examples above are of full rank. For several parameters, the condition can be more interesting: the natural parameter values of the normal distribution fill the open half-plane (example 7.7) and the natural parameter values of the gamma distribution fill an open quadrant (exercise 7.1), but the natural parameter values of with , where the standard deviation equals the mean, form a curve in which does not contain an open set, and thus this curved exponential family is not of full rank (exercise 7.2).
7.3 The Natural Parametrisation and the Cumulant Function
We return to one-parameter exponential families. Since the parameter enters the density only via , it is often convenient to use as the parameter. In this case, the normalising function (7.1) deserves a name, since its first two derivatives are the mean and the variance of the natural statistic.
Let and be as in definition 7.1. Then the natural parametrisation of the family is given by
Here the cumulant function (also called the log-partition function) is given by
with a sum in place of the integral for discrete models. The natural parameter space is the set of all for which the integral is finite.
Since makes integrate to one, the formula defines a probability distribution for every , whether or not is of the form ; comparing with (7.1) shows that and , so that the original family sits inside this larger one. For the three examples of section 7.1 we find with for the Bernoulli distribution, with for the Poisson distribution and with for the exponential distribution. In all three cases is an open interval and is a bijection onto , making the natural parametrisation a relabelling in the sense of proposition 5.6.
The first two derivatives of give the mean and the variance of , and the name of comes from a related object. The moment generating function of a random variable is the function , defined for all for which the expectation is finite. Its logarithm is called the cumulant generating function of , and the derivatives of this function at are called the cumulants of . The first two cumulants are the mean and the variance of . For a random variable with values in the closely related probability generating function is given by
defined for all for which the sum is finite. Substituting shows that is the moment generating function of . In exercise 7.6 we show that the function
is the cumulant generating function of .
Let be an interior point of the natural parameter space . Then, in the natural parametrisation,
Set , so that . Since the density integrates to one, the function is not identically zero. Together with this gives , and thus we may divide by below. Since is in the interior of , we can take derivatives inside the integral as many times as required; this is a result from analysis which we use without proof. Taking derivatives once, we get
Dividing by changes the integrand to times the density and thus we get
Taking derivatives again, we find
and using the same argument as above, with in the integrand, we find . Thus we have and the proof is complete. ∎
7.4 What the Structure Buys
We conclude this lecture by collecting what the exponential family shape tells us about the questions of lectures 4 and 5, and by indicating where the shape will be used again.
The first consequence concerns the likelihood equation. By lemma 7.5, written in the natural parametrisation, the log-likelihood of a sample is
and thus we have and, by lemma 7.10, . If is not constant, this variance is positive and is strictly concave on the interior of . Since is then strictly decreasing, the likelihood equation has at most one root, and if there is a root, it is the maximum likelihood estimator for . When is a bijection, proposition 5.6 transfers this estimator back to . The argument shows uniqueness, but not existence: for a Bernoulli sample with no successes we have , and the equation has no solution. This is the case from the remark after example 5.3.
The second consequence concerns smoothness. Many of the results later in the module are proved by differentiating with respect to the parameter, and they require the support of the distribution not to depend on , the density to be smooth in and derivatives to be taken inside integrals. For an exponential family the support is fixed by definition, the density is smooth in whenever and are, and the argument in the proof of lemma 7.10 allows differentiation under the integral sign whenever lies in the interior of . Similarly, if is one-to-one and is not constant, then different values of give different distributions, and the parameter is identifiable in the sense of definition 4.10. Under these mild conditions on , the exponential families are the standard examples for the theory in the rest of the module.
Finally, the observation that the likelihood depends on the data only through and suggests that, once is known, the individual observations carry no further information about . In lecture 8 we make this idea precise, and lemma 7.5 will do most of the work there. From then on, the natural statistic will be the starting point whenever we look for good estimators, and again when we update our knowledge about using the Bayesian approach in the second half of the module.
-
•
A one-parameter exponential family has density of the form , where the natural statistic is , the natural parameter is and the support of the distribution does not depend on . Examples of exponential families include the Bernoulli, Poisson, exponential, normal and gamma distributions. The uniform distribution is not an exponential family.
-
•
An i.i.d. sample from an exponential family is again an exponential family. In this case, the natural statistic is and the likelihood depends on the data only through .
-
•
A -parameter exponential family is of full rank, if the set of natural parameter values contains a non-empty open subset of . This condition is required for completeness in lecture 10. The curved exponential family is not of full rank.
-
•
In the natural parametrisation the cumulant function can be used to find the mean and variance of the natural statistic: we have and .
-
•
If is not constant, the log-likelihood is strictly concave in the natural parameter, and thus the likelihood equation has at most one root. A root need not exist.
-
•
Under mild conditions on , exponential families satisfy the smoothness conditions of the later theory.
Let be gamma distributed, with shape and rate , both unknown, i.e. with density for , as listed in table A.2.
-
1.
Show that this model is a two-parameter exponential family, as given in definition 7.6, with for and otherwise, natural statistic , natural parameter , and function .
-
2.
Show that the set of natural parameter values is the open quadrant
and thus the family has full rank as given in definition 7.8.
-
3.
Assume that the shape is known, as in exercise 5.2. Show that then the factor can be incorporated into the function to yield a one-parameter exponential family with natural statistic and natural parameter .
Consider the normal distribution with mean and standard deviation both equal to .
Let be geometrically distributed with parameter , i.e. for , as in exercises 4.2 and 5.1.
-
1.
Show that this distribution is a one-parameter exponential family and identify the functions , , and . What is the natural statistic of an i.i.d. sample ?
-
2.
Determine the natural parameter space and the cumulant function . Check that . Is this family of full rank?
- 3.
Let be binomially distributed with a known number of trials and unknown success probability , i.e. for .
-
1.
Show that this distribution is a one-parameter exponential family, with the same natural parameter as the Bernoulli distribution from example 7.2, and identify the functions , and .
-
2.
Determine the natural parameter space and the cumulant function.
-
3.
Using lemma 7.10, determine the mean and variance of , and the mean and variance of the natural statistic for an i.i.d. sample of size .
-
1.
For the exponential distribution with rate , use the cumulant function from the text to find the mean and variance of an observation.
-
2.
For the normal distribution with known variance and unknown mean , where , and are as in example 7.7, use the method of completing the square to show that with and use this to derive the mean and variance of an observation. Check that your result satisfies .
Let be a random variable with density
given by definition 7.9, and let be such that .
-
1.
Show that , i.e. that the increment is the cumulant generating function of .
-
2.
Let be an interior point of . Then, since is differentiable at , we can find and from the first part of this exercise. Use these results to give an alternative proof of lemma 7.10.
- 3.
Let be an i.i.d. sample from a one-parameter exponential family in its natural parametrisation, with an open interval and for all .
-
1.
Show that the likelihood equation from lecture 5 can be written as
i.e. the maximum likelihood estimator is the parameter value under which the population mean of the natural statistic equals its sample mean.
-
2.
Show that every root of the likelihood equation is the unique maximum likelihood estimator for .
- 3.
- 4.