Lecture 7 Exponential Families

In lectures 4 and 5 we repeatedly collapsed products of nn 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 x∈{0,1}x\in\{0,1\} we can write

f⁢(x;θ)\displaystyle f(x;\theta)
=θx⁢(1−θ)1−x=exp⁡(x⁢log⁡θ+(1−x)⁢log⁡(1−θ))\displaystyle=\theta^{x}(1-\theta)^{1-x}=\exp\bigl{(}x\log\theta+(1-x)\log(1-% \theta)\bigr{)}
=exp⁡(x⁢log⁡θ1−θ+log⁡(1−θ)).\displaystyle=\exp\Bigl{(}x\log\frac{\theta}{1-\theta}+\log(1-\theta)\Bigr{)}.

Here we have written the weights as the exponential of the product of one function of θ\theta and one function of xx, plus a function of only θ\theta. The Poisson weights and the exponential density can be written in a similar way: for x∈ℕ0x\in\mathbb{N}_{0} and x≥0x\geq 0 respectively we have

θxx!⁢e−θ=1x!⁢exp⁡(x⁢log⁡θ−θ)andθ⁢e−θ⁢x=exp⁡(−θ⁢x+log⁡θ).\frac{\theta^{x}}{x!}e^{-\theta}=\frac{1}{x!}\exp\bigl{(}x\log\theta-\theta% \bigr{)}\qquad\text{and}\qquad\theta e^{-\theta x}=\exp\bigl{(}-\theta x+\log% \theta\bigr{)}.

For the Poisson weights an additional factor 1/x!1/x! appears, which depends on xx alone. We will give a name to this structure.

Definition 7.1.

A parametric model (f⁢(x;θ)|θ∈Θ)\bigl{(}f(x;\theta)\!\mathrel{\big{|}}\!\theta\in\Theta\bigr{)} with Θ⊆ℝ\Theta\subseteq\mathbb{R} is a one-parameter exponential family, if the density or the probability weights can be written as

f⁢(x;θ)=h⁢(x)⁢exp⁡(η⁢(θ)⁢T⁢(x)−B⁢(θ))f(x;\theta)=h(x)\exp\bigl{(}\eta(\theta)\,T(x)-B(\theta)\bigr{)}

for all xx and all θ∈Θ\theta\in\Theta, where h≥0h\geq 0 and TT are functions of xx alone and η\eta and BB are functions of θ\theta alone. The statistic T⁢(X)T(X) is called the natural statistic and η⁢(θ)\eta(\theta) is called the natural parameter of the family.

Since the exponential is always positive, f⁢(x;θ)f(x;\theta) is positive if and only if h⁢(x)h(x) is. Thus the support {x∣f⁢(x;θ)>0}\{x\mid f(x;\theta)>0\} of the distribution is {x∣h⁢(x)>0}\{x\mid h(x)>0\} and does not depend on θ\theta. The representation is not unique, since we can replace η\eta by c⁢ηc\eta and TT by T/cT/c for any constant c≠0c\neq 0. Finally, since the density must integrate (or sum) to one, the function BB is determined by the other three functions: we have

equation (7.1) (7.1)
B⁢(θ)=log⁢∫h⁢(x)⁢exp⁡(η⁢(θ)⁢T⁢(x))⁢dx.B(\theta)=\log\int h(x)\exp\bigl{(}\eta(\theta)\,T(x)\bigr{)}\,\mathrm{d}x.

These rewritings give the following examples.

Example 7.2.

The Bernoulli distribution with θ∈(0,1)\theta\in(0,1) is a one-parameter exponential family with h⁢(x)=1h(x)=1 for x∈{0,1}x\in\{0,1\} and h⁢(x)=0h(x)=0 otherwise, natural statistic T⁢(x)=xT(x)=x, natural parameter η⁢(θ)=log⁡(θ/(1−θ))\eta(\theta)=\log\bigl{(}\theta/(1-\theta)\bigr{)}, the log-odds of success, and B⁢(θ)=−log⁡(1−θ)B(\theta)=-\log(1-\theta).

Example 7.3.

The Poisson distribution with θ>0\theta>0 is a one-parameter exponential family with h⁢(x)=1/x!h(x)=1/x! for x∈ℕ0x\in\mathbb{N}_{0} and h⁢(x)=0h(x)=0 otherwise, natural statistic T⁢(x)=xT(x)=x, natural parameter η⁢(θ)=log⁡θ\eta(\theta)=\log\theta and B⁢(θ)=θB(\theta)=\theta.

Example 7.4.

The exponential distribution with rate θ>0\theta>0 is a one-parameter exponential family with h⁢(x)=1h(x)=1 for x≥0x\geq 0 and h⁢(x)=0h(x)=0 otherwise, natural statistic T⁢(x)=xT(x)=x, natural parameter η⁢(θ)=−θ\eta(\theta)=-\theta and B⁢(θ)=−log⁡θB(\theta)=-\log\theta.

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.

Remark.

The uniform distribution on [0,θ][0,\theta] 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 tt location model from section 5.3 is not an exponential family, despite the fact that its support is all of ℝ\mathbb{R}; we do not prove this.

The shape survives the passage from one observation to a sample.

Lemma 7.5.

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. from the one-parameter exponential family in definition 7.1. Then the joint density of the sample is

f⁢(x1,…,xn;θ)=∏i=1nh⁢(xi)⋅exp⁡(η⁢(θ)⁢∑i=1nT⁢(xi)−n⁢B⁢(θ)),f(x_{1},\dots,x_{n};\theta)=\prod_{i=1}^{n}h(x_{i})\cdot\exp\Bigl{(}\eta(% \theta)\sum_{i=1}^{n}T(x_{i})-nB(\theta)\Bigr{)},

which is of the form of definition 7.1 with the same natural parameter η⁢(θ)\eta(\theta), natural statistic Tn=∑i=1nT⁢(Xi)T_{n}=\sum_{i=1}^{n}T(X_{i}), the function ∏ih⁢(xi)\prod_{i}h(x_{i}) instead of hh and n⁢B⁢(θ)nB(\theta) instead of B⁢(θ)B(\theta).

Proof.

Since the observations are independent, the joint density is the product ∏i=1nh⁢(xi)⁢exp⁡(η⁢(θ)⁢T⁢(xi)−B⁢(θ))\prod_{i=1}^{n}h(x_{i})\exp\bigl{(}\eta(\theta)\,T(x_{i})-B(\theta)\bigr{)} of the marginal densities. Combining the nn exponents using the rule ea⁢eb=ea+be^{a}e^{b}=e^{a+b} gives the required form. This completes the proof. ∎

Read as a function of θ\theta, the joint density is the likelihood, and thus the log-likelihood of an exponential family sample is

equation (7.2) (7.2)
ℓ⁢(θ)=∑i=1nlog⁡h⁢(xi)+η⁢(θ)⁢Tn−n⁢B⁢(θ).\ell(\theta)=\sum_{i=1}^{n}\log h(x_{i})+\eta(\theta)\,T_{n}-nB(\theta).

The first term does not involve θ\theta. Thus, up to a factor which does not depend on θ\theta, the likelihood depends on the data only through the single number Tn=∑iT⁢(xi)T_{n}=\sum_{i}T(x_{i}). This is an extension of example 4.3 to the whole class; in lecture 8 we will see in which sense the value TnT_{n} contains all the information about θ\theta.

7.2 Several Parameters

The normal distribution where both μ\mu and σ2\sigma^{2} are unknown does not fit definition 7.1, since the exponent contains the two products x⁢μ/σ2x\mu/\sigma^{2} and −x2/(2⁢σ2)-x^{2}/(2\sigma^{2}), which cannot be combined into a single product η⁢(θ)⁢T⁢(x)\eta(\theta)\,T(x). The extension is to allow a sum of kk such products in the exponent.

Definition 7.6.

A parametric model (f⁢(x;θ)|θ∈Θ)\bigl{(}f(x;\theta)\!\mathrel{\big{|}}\!\theta\in\Theta\bigr{)} is a kk-parameter exponential family, if the density or the probability weights can be written as

f⁢(x;θ)=h⁢(x)⁢exp⁡(∑j=1kηj⁢(θ)⁢Tj⁢(x)−B⁢(θ))f(x;\theta)=h(x)\exp\Bigl{(}\sum_{j=1}^{k}\eta_{j}(\theta)\,T_{j}(x)-B(\theta)% \Bigr{)}

for all xx and all θ∈Θ\theta\in\Theta, where h≥0h\geq 0 and T1,…,TkT_{1},\dots,T_{k} are functions of xx alone and η1,…,ηk\eta_{1},\dots,\eta_{k} and BB are functions of θ\theta alone. The vector (T1⁢(X),…,Tk⁢(X))\bigl{(}T_{1}(X),\dots,T_{k}(X)\bigr{)} is the natural statistic and (η1⁢(θ),…,ηk⁢(θ))\bigl{(}\eta_{1}(\theta),\dots,\eta_{k}(\theta)\bigr{)} is the natural parameter of the family.

The number kk counts the products in the exponent, not the components of θ\theta. In most of our examples the two agree, but they do not have to: the normal distribution N⁢(θ,θ2)N(\theta,\theta^{2}) considered below has the single parameter θ>0\theta>0, but its exponent needs two products. An exponential family in which kk is larger than the dimension of Θ\Theta is called a curved exponential family.

The support of the distribution is again {x∣h⁢(x)>0}\{x\mid h(x)>0\} and the proof of lemma 7.5 applies without change: an i.i.d. sample is again a kk-parameter exponential family, where the natural statistic is the vector of the kk sums ∑iTj⁢(Xi)\sum_{i}T_{j}(X_{i}).

Example 7.7.

By expanding the square in the exponent of the density of the normal distribution N⁢(μ,σ2)N(\mu,\sigma^{2}) from table 1.2, we can write

f⁢(x;μ,σ2)=12⁢π⁢σ2⁢exp⁡(−x22⁢σ2+μσ2⁢x−μ22⁢σ2).f(x;\mu,\sigma^{2})=\frac{1}{\sqrt{2\pi\sigma^{2}}}\exp\Bigl{(}-\frac{x^{2}}{2% \sigma^{2}}+\frac{\mu}{\sigma^{2}}\,x-\frac{\mu^{2}}{2\sigma^{2}}\Bigr{)}.

If only μ\mu is unknown, the factor (2⁢π⁢σ2)−1/2(2\pi\sigma^{2})^{-1/2} and the term −x2/(2⁢σ2)-x^{2}/(2\sigma^{2}) contain no unknown quantities and we can define the function h⁢(x)=(2⁢π⁢σ2)−1/2⁢e−x2/(2⁢σ2)h(x)=(2\pi\sigma^{2})^{-1/2}e^{-x^{2}/(2\sigma^{2})}: we have found a one-parameter exponential family with natural statistic T⁢(x)=xT(x)=x, natural parameter η⁢(μ)=μ/σ2\eta(\mu)=\mu/\sigma^{2} and B⁢(μ)=μ2/(2⁢σ2)B(\mu)=\mu^{2}/(2\sigma^{2}). If both parameters are unknown, we have to interpret the term −x2/(2⁢σ2)-x^{2}/(2\sigma^{2}) as a second product and we get a two-parameter exponential family with h⁢(x)=1h(x)=1, natural statistic (x,x2)(x,x^{2}), natural parameter (μ/σ2,−1/(2⁢σ2))\bigl{(}\mu/\sigma^{2},\,-1/(2\sigma^{2})\bigr{)} and B⁢(θ)=μ2/(2⁢σ2)+12⁢log⁡(2⁢π⁢σ2)B(\theta)=\mu^{2}/(2\sigma^{2})+\frac{1}{2}\log(2\pi\sigma^{2}). For a sample, the natural statistic is (∑ixi,∑ixi2)\bigl{(}\sum_{i}x_{i},\sum_{i}x_{i}^{2}\bigr{)}. Since ∑i(xi−x¯)2=∑ixi2−n⁢x¯2\sum_{i}(x_{i}-\bar{x})^{2}=\sum_{i}x_{i}^{2}-n\bar{x}^{2}, for fixed nn this pair and the pair (x¯,∑i(xi−x¯)2)\bigl{(}\bar{x},\sum_{i}(x_{i}-\bar{x})^{2}\bigr{)} 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 xα−1=e(α−1)⁢log⁡xx^{\alpha-1}=e^{(\alpha-1)\log x}, then the natural statistic is (log⁡x,x)(\log x,\,x) and the details are worked out in exercise 7.1. For a sample of size nn, the natural statistic is the pair (∑ilog⁡xi,∑ixi)\bigl{(}\sum_{i}\log x_{i},\sum_{i}x_{i}\bigr{)}, 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.

Definition 7.8.

A one-parameter exponential family is of full rank, if the set η⁢(Θ)={η⁢(θ)∣θ∈Θ}\eta(\Theta)=\{\eta(\theta)\mid\theta\in\Theta\} of natural parameter values contains a non-degenerate open interval. A kk-parameter exponential family is of full rank, if the set {(η1⁢(θ),…,ηk⁢(θ))|θ∈Θ}\bigl{\{}\bigl{(}\eta_{1}(\theta),\dots,\eta_{k}(\theta)\bigr{)}\mathrel{\big{% |}}\theta\in\Theta\bigr{\}} contains a non-empty open subset of ℝk\mathbb{R}^{k}.

In the one-parameter case, the condition is almost always satisfied, since the image of an interval Θ\Theta under a continuous, non-constant η\eta 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 {(η1,η2)∣η2<0}\{(\eta_{1},\eta_{2})\mid\eta_{2}<0\} (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 N⁢(θ,θ2)N(\theta,\theta^{2}) with θ>0\theta>0, where the standard deviation equals the mean, form a curve in ℝ2\mathbb{R}^{2} 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 η⁢(θ)\eta(\theta), it is often convenient to use η\eta 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.

Definition 7.9.

Let hh and TT be as in definition 7.1. Then the natural parametrisation of the family is given by

f⁢(x;η)=h⁢(x)⁢exp⁡(η⁢T⁢(x)−K⁢(η)),η∈𝒩︀.f(x;\eta)=h(x)\exp\bigl{(}\eta\,T(x)-K(\eta)\bigr{)},\qquad\eta\in\mathcal{N}.

Here the cumulant function (also called the log-partition function) is given by

K⁢(η)=log⁢∫h⁢(x)⁢eη⁢T⁢(x)⁢dx,K(\eta)=\log\int h(x)\,e^{\eta T(x)}\,\mathrm{d}x,

with a sum in place of the integral for discrete models. The natural parameter space is the set 𝒩︀={η∈ℝ∣K⁢(η)<∞}\mathcal{N}=\{\eta\in\mathbb{R}\mid K(\eta)<\infty\} of all η\eta for which the integral is finite.

Since KK makes f⁢(x;η)f(x;\eta) integrate to one, the formula defines a probability distribution for every η∈𝒩︀\eta\in\mathcal{N}, whether or not η\eta is of the form η⁢(θ)\eta(\theta); comparing with (7.1) shows that η⁢(θ)∈𝒩︀\eta(\theta)\in\mathcal{N} and B⁢(θ)=K⁢(η⁢(θ))B(\theta)=K\bigl{(}\eta(\theta)\bigr{)}, so that the original family sits inside this larger one. For the three examples of section 7.1 we find K⁢(η)=log⁡(1+eη)K(\eta)=\log(1+e^{\eta}) with 𝒩︀=ℝ\mathcal{N}=\mathbb{R} for the Bernoulli distribution, K⁢(η)=eηK(\eta)=e^{\eta} with 𝒩︀=ℝ\mathcal{N}=\mathbb{R} for the Poisson distribution and K⁢(η)=−log⁡(−η)K(\eta)=-\log(-\eta) with 𝒩︀=(−∞,0)\mathcal{N}=(-\infty,0) for the exponential distribution. In all three cases 𝒩︀\mathcal{N} is an open interval and θ↦η⁢(θ)\theta\mapsto\eta(\theta) is a bijection onto 𝒩︀\mathcal{N}, making the natural parametrisation a relabelling in the sense of proposition 5.6.

The first two derivatives of KK give the mean and the variance of T⁢(X)T(X), and the name of KK comes from a related object. The moment generating function of a random variable YY is the function s↦𝔼⁢(es⁢Y)s\mapsto\mathbb{E}(e^{sY}), defined for all ss for which the expectation is finite. Its logarithm s↦log⁡𝔼⁢(es⁢Y)s\mapsto\log\mathbb{E}(e^{sY}) is called the cumulant generating function of YY, and the derivatives of this function at s=0s=0 are called the cumulants of YY. The first two cumulants are the mean and the variance of YY. For a random variable YY with values in ℕ0\mathbb{N}_{0} the closely related probability generating function is given by

equation (7.3) (7.3)
GY⁢(z)=𝔼⁢(zY)=∑y=0∞ℙ⁢(Y=y)⁢zy,G_{Y}(z)=\mathbb{E}\bigl{(}z^{Y}\bigr{)}=\sum_{y=0}^{\infty}\mathbb{P}(Y=y)\,z% ^{y},

defined for all z≥0z\geq 0 for which the sum is finite. Substituting z=esz=e^{s} shows that s↦GY⁢(es)s\mapsto G_{Y}(e^{s}) is the moment generating function of YY. In exercise 7.6 we show that the function

s↦K⁢(η+s)−K⁢(η)s\mapsto K(\eta+s)-K(\eta)

is the cumulant generating function of T⁢(X)T(X).

Lemma 7.10.

Let η\eta be an interior point of the natural parameter space 𝒩︀\mathcal{N}. Then, in the natural parametrisation,

𝔼η⁢(T⁢(X))=K′⁢(η)andVarη(T⁢(X))=K′′⁢(η).\mathbb{E}_{\eta}\bigl{(}T(X)\bigr{)}=K^{\prime}(\eta)\qquad\text{and}\qquad% \mathop{\mathrm{Var}}\nolimits_{\eta}\bigl{(}T(X)\bigr{)}=K^{\prime\prime}(% \eta).
Proof.

Set Z⁢(η)=∫h⁢(x)⁢eη⁢T⁢(x)⁢dxZ(\eta)=\int h(x)e^{\eta T(x)}\,\mathrm{d}x, so that K=log⁡ZK=\log Z. Since the density f⁢(x;θ)=h⁢(x)⁢exp⁡(η⁢(θ)⁢T⁢(x)−B⁢(θ))f(x;\theta)=h(x)\exp\bigl{(}\eta(\theta)\,T(x)-B(\theta)\bigr{)} integrates to one, the function h≥0h\geq 0 is not identically zero. Together with eη⁢T⁢(x)>0e^{\eta T(x)}>0 this gives Z⁢(η)>0Z(\eta)>0, and thus we may divide by Z⁢(η)Z(\eta) below. Since η\eta is in the interior of 𝒩︀\mathcal{N}, 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

Z′⁢(η)=∫T⁢(x)⁢h⁢(x)⁢eη⁢T⁢(x)⁢dx.Z^{\prime}(\eta)=\int T(x)\,h(x)\,e^{\eta T(x)}\,\mathrm{d}x.

Dividing by Z⁢(η)=eK⁢(η)Z(\eta)=e^{K(\eta)} changes the integrand to T⁢(x)T(x) times the density f⁢(x;η)f(x;\eta) and thus we get

K′⁢(η)=Z′⁢(η)Z⁢(η)=∫T⁢(x)⁢h⁢(x)⁢eη⁢T⁢(x)−K⁢(η)⁢dx=𝔼η⁢(T⁢(X)).K^{\prime}(\eta)=\frac{Z^{\prime}(\eta)}{Z(\eta)}=\int T(x)\,h(x)\,e^{\eta T(x% )-K(\eta)}\,\mathrm{d}x=\mathbb{E}_{\eta}\bigl{(}T(X)\bigr{)}.

Taking derivatives again, we find

K′′⁢(η)=Z′′⁢(η)Z⁢(η)−(Z′⁢(η)Z⁢(η))2,K^{\prime\prime}(\eta)=\frac{Z^{\prime\prime}(\eta)}{Z(\eta)}-\Bigl{(}\frac{Z^% {\prime}(\eta)}{Z(\eta)}\Bigr{)}^{2},

and using the same argument as above, with T⁢(x)2T(x)^{2} in the integrand, we find Z′′⁢(η)/Z⁢(η)=𝔼η⁢(T⁢(X)2)Z^{\prime\prime}(\eta)/Z(\eta)=\mathbb{E}_{\eta}\bigl{(}T(X)^{2}\bigr{)}. Thus we have K′′⁢(η)=𝔼η⁢(T⁢(X)2)−𝔼η⁢(T⁢(X))2=Varη(T⁢(X))K^{\prime\prime}(\eta)=\mathbb{E}_{\eta}(T(X)^{2})-\mathbb{E}_{\eta}(T(X))^{2}% =\mathop{\mathrm{Var}}\nolimits_{\eta}(T(X)) and the proof is complete. ∎

The lemma allows us to compute moments by differentiation: for the Poisson distribution K⁢(η)=eηK(\eta)=e^{\eta} we find K′⁢(η)=K′′⁢(η)=eη=θK^{\prime}(\eta)=K^{\prime\prime}(\eta)=e^{\eta}=\theta, the mean and variance from table A.1, and in exercise 7.5 we consider the exponential and normal distributions. For TnT_{n}, being a sum of nn i.i.d. copies of T⁢(X)T(X), we can use the lemma to find 𝔼η⁢(Tn)=n⁢K′⁢(η)\mathbb{E}_{\eta}(T_{n})=nK^{\prime}(\eta) and Varη(Tn)=n⁢K′′⁢(η)\mathop{\mathrm{Var}}\nolimits_{\eta}(T_{n})=nK^{\prime\prime}(\eta).

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

ℓ⁢(η)=∑i=1nlog⁡h⁢(xi)+η⁢Tn−n⁢K⁢(η),\ell(\eta)=\sum_{i=1}^{n}\log h(x_{i})+\eta\,T_{n}-nK(\eta),

and thus we have ℓ′⁢(η)=Tn−n⁢K′⁢(η)\ell^{\prime}(\eta)=T_{n}-nK^{\prime}(\eta) and, by lemma 7.10, ℓ′′⁢(η)=−n⁢K′′⁢(η)=−n⁢Varη(T⁢(X))\ell^{\prime\prime}(\eta)=-nK^{\prime\prime}(\eta)=-n\mathop{\mathrm{Var}}% \nolimits_{\eta}\bigl{(}T(X)\bigr{)}. If T⁢(X)T(X) is not constant, this variance is positive and ℓ\ell is strictly concave on the interior of 𝒩︀\mathcal{N}. Since ℓ′\ell^{\prime} is then strictly decreasing, the likelihood equation ℓ′⁢(η)=0\ell^{\prime}(\eta)=0 has at most one root, and if there is a root, it is the maximum likelihood estimator for η\eta. When θ↦η⁢(θ)\theta\mapsto\eta(\theta) is a bijection, proposition 5.6 transfers this estimator back to θ\theta. The argument shows uniqueness, but not existence: for a Bernoulli sample with no successes we have Tn=0T_{n}=0, and the equation K′⁢(η)=eη/(1+eη)=0K^{\prime}(\eta)=e^{\eta}/(1+e^{\eta})=0 has no solution. This is the case s=0s=0 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 θ\theta, the density to be smooth in θ\theta and derivatives to be taken inside integrals. For an exponential family the support is fixed by definition, the density is smooth in θ\theta whenever η\eta and BB are, and the argument in the proof of lemma 7.10 allows differentiation under the integral sign whenever η⁢(θ)\eta(\theta) lies in the interior of 𝒩︀\mathcal{N}. Similarly, if η\eta is one-to-one and T⁢(X)T(X) is not constant, then different values of θ\theta give different distributions, and the parameter is identifiable in the sense of definition 4.10. Under these mild conditions on η\eta, 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 TnT_{n} and nn suggests that, once TnT_{n} is known, the individual observations carry no further information about θ\theta. 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 TnT_{n} will be the starting point whenever we look for good estimators, and again when we update our knowledge about θ\theta using the Bayesian approach in the second half of the module.

Summary.
  • •
    ​

    A one-parameter exponential family has density of the form f⁢(x;θ)=h⁢(x)⁢exp⁡(η⁢(θ)⁢T⁢(x)−B⁢(θ))f(x;\theta)=h(x)\exp\bigl{(}\eta(\theta)T(x)-B(\theta)\bigr{)}, where the natural statistic is TT, the natural parameter is η\eta and the support of the distribution does not depend on θ\theta. 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 Tn=∑iT⁢(Xi)T_{n}=\sum_{i}T(X_{i}) and the likelihood depends on the data only through TnT_{n}.

  • •
    ​

    A kk-parameter exponential family is of full rank, if the set of natural parameter values contains a non-empty open subset of ℝk\mathbb{R}^{k}. This condition is required for completeness in lecture 10. The curved exponential family N⁢(θ,θ2)N(\theta,\theta^{2}) is not of full rank.

  • •
    ​

    In the natural parametrisation f⁢(x;η)=h⁢(x)⁢exp⁡(η⁢T⁢(x)−K⁢(η))f(x;\eta)=h(x)\exp(\eta T(x)-K(\eta)) the cumulant function KK can be used to find the mean and variance of the natural statistic: we have 𝔼η⁢(T⁢(X))=K′⁢(η)\mathbb{E}_{\eta}(T(X))=K^{\prime}(\eta) and Varη(T⁢(X))=K′′⁢(η)\mathop{\mathrm{Var}}\nolimits_{\eta}(T(X))=K^{\prime\prime}(\eta).

  • •
    ​

    If T⁢(X)T(X) 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 η\eta, exponential families satisfy the smoothness conditions of the later theory.

Exercise 7.1.

Let XX be gamma distributed, X∼Gamma⁢(α,β)X\sim\text{Gamma}(\alpha,\beta) with shape α>0\alpha>0 and rate β>0\beta>0, both unknown, i.e. with density f⁢(x;α,β)=βα⁢xα−1⁢e−β⁢x/Γ⁢(α)f(x;\alpha,\beta)=\beta^{\alpha}x^{\alpha-1}e^{-\beta x}/\Gamma(\alpha) for x>0x>0, as listed in table A.2.

  1. 1.
    ​

    Show that this model is a two-parameter exponential family, as given in definition 7.6, with h⁢(x)=1h(x)=1 for x>0x>0 and h⁢(x)=0h(x)=0 otherwise, natural statistic (log⁡x,x)(\log x,\,x), natural parameter (α−1,−β)(\alpha-1,\,-\beta), and function B⁢(α,β)=log⁡Γ⁢(α)−α⁢log⁡βB(\alpha,\beta)=\log\Gamma(\alpha)-\alpha\log\beta.

  2. 2.
    ​

    Show that the set of natural parameter values is the open quadrant

    {(η1,η2)∣η1>−1,η2<0}\{(\eta_{1},\eta_{2})\mid\eta_{1}>-1,\ \eta_{2}<0\}

    and thus the family has full rank as given in definition 7.8.

  3. 3.
    ​

    Assume that the shape α\alpha is known, as in exercise 5.2. Show that then the factor xα−1x^{\alpha-1} can be incorporated into the function hh to yield a one-parameter exponential family with natural statistic T⁢(x)=xT(x)=x and natural parameter −β-\beta.

Exercise 7.2.

Consider the normal distribution N⁢(θ,θ2)N(\theta,\theta^{2}) with mean and standard deviation both equal to θ>0\theta>0.

  1. 1.
    ​

    Using example 7.7, show that this model is a curved two-parameter exponential family with natural statistic and natural parameter given by

    T⁢(x)=(x,x2)andη⁢(θ)=(1/θ,−1/(2⁢θ2)).T(x)=(x,x^{2})\qquad\text{and}\qquad\eta(\theta)=\bigl{(}1/\theta,\,-1/(2% \theta^{2})\bigr{)}.
  2. 2.
    ​

    Show that as θ\theta varies, the natural parameter values follow the curve η2=−η12/2\eta_{2}=-\eta_{1}^{2}/2 with η1>0\eta_{1}>0. Conclude that this family is not of full rank in the sense of definition 7.8.

Exercise 7.3.

Let XX be geometrically distributed with parameter p∈(0,1)p\in(0,1), i.e. f⁢(x;p)=(1−p)x−1⁢pf(x;p)=(1-p)^{x-1}p for x∈ℕx\in\mathbb{N}, as in exercises 4.2 and 5.1.

  1. 1.
    ​

    Show that this distribution is a one-parameter exponential family and identify the functions hh, TT, η\eta and BB. What is the natural statistic of an i.i.d. sample X1,…,XnX_{1},\dots,X_{n}?

  2. 2.
    ​

    Determine the natural parameter space 𝒩︀\mathcal{N} and the cumulant function KK. Check that B⁢(p)=K⁢(η⁢(p))B(p)=K\bigl{(}\eta(p)\bigr{)}. Is this family of full rank?

  3. 3.
    ​

    Using lemma 7.10, determine the mean and variance of XX and compare the result with table A.1.

Exercise 7.4.

Let XX be binomially distributed with a known number mm of trials and unknown success probability θ∈(0,1)\theta\in(0,1), i.e. f⁢(x;θ)=(mx)⁢θx⁢(1−θ)m−xf(x;\theta)=\binom{m}{x}\theta^{x}(1-\theta)^{m-x} for x∈{0,1,…,m}x\in\{0,1,\dots,m\}.

  1. 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 hh, TT and BB.

  2. 2.
    ​

    Determine the natural parameter space and the cumulant function.

  3. 3.
    ​

    Using lemma 7.10, determine the mean and variance of XX, and the mean and variance of the natural statistic TnT_{n} for an i.i.d. sample of size nn.

Exercise 7.5.
  1. 1.
    ​

    For the exponential distribution with rate θ\theta, use the cumulant function K⁢(η)=−log⁡(−η)K(\eta)=-\log(-\eta) from the text to find the mean and variance of an observation.

  2. 2.
    ​

    For the normal distribution with known variance σ2\sigma^{2} and unknown mean μ\mu, where hh, TT and η\eta are as in example 7.7, use the method of completing the square to show that K⁢(η)=σ2⁢η2/2K(\eta)=\sigma^{2}\eta^{2}/2 with 𝒩︀=ℝ\mathcal{N}=\mathbb{R} and use this to derive the mean and variance of an observation. Check that your result satisfies B⁢(μ)=K⁢(η⁢(μ))B(\mu)=K\bigl{(}\eta(\mu)\bigr{)}.

Exercise 7.6.

Let XX be a random variable with density

f⁢(x;η)=h⁢(x)⁢exp⁡(η⁢T⁢(x)−K⁢(η))f(x;\eta)=h(x)\exp\bigl{(}\eta T(x)-K(\eta)\bigr{)}

given by definition 7.9, and let ss be such that η+s∈𝒩︀\eta+s\in\mathcal{N}.

  1. 1.
    ​

    Show that 𝔼η⁢(es⁢T⁢(X))=exp⁡(K⁢(η+s)−K⁢(η))\mathbb{E}_{\eta}\bigl{(}e^{sT(X)}\bigr{)}=\exp\bigl{(}K(\eta+s)-K(\eta)\bigr{)}, i.e. that the increment C⁢(s)=K⁢(η+s)−K⁢(η)C(s)=K(\eta+s)-K(\eta) is the cumulant generating function of T⁢(X)T(X).

  2. 2.
    ​

    Let η\eta be an interior point of 𝒩︀\mathcal{N}. Then, since CC is differentiable at s=0s=0, we can find C′⁢(0)C^{\prime}(0) and C′′⁢(0)C^{\prime\prime}(0) from the first part of this exercise. Use these results to give an alternative proof of lemma 7.10.

  3. 3.
    ​

    Using the first part of this exercise, show that for the Poisson distribution with parameter θ\theta the probability generating function (7.3) is given by 𝔼θ⁢(zX)=eθ⁢(z−1)\mathbb{E}_{\theta}\bigl{(}z^{X}\bigr{)}=e^{\theta(z-1)} for all z>0z>0. This is the same identity as in exercise 5.7.

Exercise 7.7.

Let X1,…,XnX_{1},\dots,X_{n} be an i.i.d. sample from a one-parameter exponential family in its natural parametrisation, with 𝒩︀\mathcal{N} an open interval and Varη(T⁢(X1))>0\mathop{\mathrm{Var}}\nolimits_{\eta}(T(X_{1}))>0 for all η∈𝒩︀\eta\in\mathcal{N}.

  1. 1.
    ​

    Show that the likelihood equation ℓ′⁢(η)=0\ell^{\prime}(\eta)=0 from lecture 5 can be written as

    1n⁢∑i=1nT⁢(xi)=𝔼η⁢(T⁢(X1)),\frac{1}{n}\sum_{i=1}^{n}T(x_{i})=\mathbb{E}_{\eta}\bigl{(}T(X_{1})\bigr{)},

    i.e. the maximum likelihood estimator is the parameter value under which the population mean of the natural statistic equals its sample mean.

  2. 2.
    ​

    Show that every root of the likelihood equation is the unique maximum likelihood estimator for η\eta.

  3. 3.
    ​

    Apply the equation from the first part to the Poisson distribution and to the Bernoulli distribution, and use proposition 5.6 to recover the estimators found in exercise 5.7 and example 5.3.

  4. 4.
    ​

    Explain how the first part of this exercise accounts for the coincidences between the method of moments and maximum likelihood which we noted in lecture 4, and why no such coincidence is to be expected for the gamma distribution of exercise 7.1.