Lecture 16 Consistency of the MLE

In lecture 5 we have seen that the maximum likelihood estimator can be biased, that it may not be unique and that it may not even exist. The following two lectures present the results which, despite these problems, allow us to justify the use of the MLE: for large sample size the maximum likelihood estimator converges to the true parameter value, and does so with minimal spread. In this lecture we will prove the first of these two results, the consistency of the MLE, from a set of assumptions which we will explicitly state. The proof of the asymptotic normality in lecture 17 builds on these same assumptions and on the consistency result. The numerical aspects, concerning estimates and standard errors, will be discussed in lecture 18.

16.1 The Regularity Conditions

Throughout this and the following lectures, X1,…,XnX_{1},\dots,X_{n} are i.i.d. with density or probability weights f⁢(x;θ)f(x;\theta), the parameter θ\theta is one-dimensional and the parameter space Θ⊆ℝ\Theta\subseteq\mathbb{R} is an open interval. As in lecture 11, the log-likelihood is the sum ℓ⁢(θ)=∑i=1nℓi⁢(θ)\ell(\theta)=\sum_{i=1}^{n}\ell_{i}(\theta) of the terms ℓi⁢(θ)=log⁡f⁢(Xi;θ)\ell_{i}(\theta)=\log f(X_{i};\theta), and for random data the ℓi⁢(θ)\ell_{i}(\theta) are i.i.d. random variables. We write θ0\theta_{0} for the true parameter value, and ℙθ0\mathbb{P}_{\theta_{0}} and 𝔼θ0\mathbb{E}_{\theta_{0}} for probabilities and expectations under this value.

The large-sample results are true for most models of interest, but not for all of them. The following assumptions are what the theorems require.

Definition 16.1.

The model (f⁢(x;θ)|θ∈Θ)\bigl{(}f(x;\theta)\!\mathrel{\big{|}}\!\theta\in\Theta\bigr{)} satisfies the regularity conditions, if the following four statements hold.

  1. (R1)
    ​

    The parameter is identifiable in the sense of definition 4.10, i.e. different values of θ\theta lead to different distributions.

  2. (R2)
    ​

    The support {x∣f⁢(x;θ)>0}\{x\mid f(x;\theta)>0\} does not depend on θ\theta.

  3. (R3)
    ​

    The conditions of section 11.1 hold, for every xx the function θ↦f⁢(x;θ)\theta\mapsto f(x;\theta) is three times continuously differentiable on Θ\Theta, and the Fisher information ℐ︀⁢(θ)\mathcal{I}(\theta) of a single observation is a continuous function of θ\theta with ℐ︀⁢(θ)>0\mathcal{I}(\theta)>0 for all θ∈Θ\theta\in\Theta.

  4. (R4)
    ​

    For every θ0∈Θ\theta_{0}\in\Theta there are a δ>0\delta>0 and a function M⁢(x)M(x) such that 𝔼θ0⁢(M⁢(X1))<∞\mathbb{E}_{\theta_{0}}\bigl{(}M(X_{1})\bigr{)}<\infty and

    |∂3∂θ3⁢log⁡f⁢(x;θ)|≤M⁢(x)for all x and all θ with |θ−θ0|<δ.\Bigl{|}\frac{\partial^{3}}{\partial\theta^{3}}\log f(x;\theta)\Bigr{|}\leq M(% x)\qquad\text{for all $x$ and all $\theta$ with $|\theta-\theta_{0}|<\delta$.}

The four conditions play different roles. Condition (R1) is needed for the question to make sense: if two parameter values give the same distribution, no estimator can converge to both. Condition (R2) excludes models like the uniform distribution from example 5.5, where the parameter moves the edge of the support and the likelihood jumps to zero. The arguments of this lecture fail for such models, as we will see in section 16.4. Condition (R3) is the smoothness needed to differentiate the log-likelihood. Since it includes the conditions of section 11.1, it also makes the two identities of lecture 11 available (lemma 11.1 and lemma 11.3),

equation (16.1) (16.1)
𝔼θ⁢(ℓi′⁢(θ))=0andℐ︀⁢(θ)=Varθ(ℓi′⁢(θ))=−𝔼θ⁢(ℓi′′⁢(θ)).\mathbb{E}_{\theta}\bigl{(}\ell_{i}^{\prime}(\theta)\bigr{)}=0\qquad\text{and}% \qquad\mathcal{I}(\theta)=\mathop{\mathrm{Var}}\nolimits_{\theta}\bigl{(}\ell_% {i}^{\prime}(\theta)\bigr{)}=-\mathbb{E}_{\theta}\bigl{(}\ell_{i}^{\prime% \prime}(\theta)\bigr{)}.

Condition (R4), and the parts of (R3) beyond the differentiability of the likelihood, are not needed in this lecture. Condition (R4) controls the remainder term in the Taylor expansion in the proof of asymptotic normality in lecture 17, and it is listed here so that both lectures work from the same definition. Although the condition looks technical, it is usually easy to verify, because the third derivative of the log-likelihood is an explicit function of xx and θ\theta; exercise 16.1 does this for the exponential distribution.

The one-parameter models from tables 1.1 and 1.2, and the two-parameter models with one parameter held fixed (with mm known for the binomial distribution), satisfy the regularity conditions, with the exception of the uniform distribution. The same is true for the tt location model from section 5.3, despite the fact that the likelihood equation may have more than one solution. We will return to this problem in section 16.4.

16.2 Comparing the True Value with a Wrong Value

If θ0\theta_{0} is the true value, it seems natural that for a large sample the likelihood L⁢(θ0)L(\theta_{0}) should be larger than L⁢(θ)L(\theta) for each fixed wrong value θ\theta. This is the main step in the consistency proof, and thus we prove it first.

Lemma 16.2.

Suppose that (R1) and (R2) hold. Let θ≠θ0\theta\neq\theta_{0} and assume that log⁡(f⁢(X1;θ)/f⁢(X1;θ0))\log\bigl{(}f(X_{1};\theta)/f(X_{1};\theta_{0})\bigr{)} has finite expectation under ℙθ0\mathbb{P}_{\theta_{0}}. Then

limn→∞ℙθ0⁢(L⁢(θ0)>L⁢(θ))=1.\lim_{n\to\infty}\mathbb{P}_{\theta_{0}}\bigl{(}L(\theta_{0})>L(\theta)\bigr{)% }=1.
Proof.

Let Zi=f⁢(Xi;θ)/f⁢(Xi;θ0)Z_{i}=f(X_{i};\theta)/f(X_{i};\theta_{0}) for i=1,…,ni=1,\dots,n, where, by (R2), the ratios are well defined and positive for all observations. Using logarithms and dividing by nn, we can rewrite the event L⁢(θ0)>L⁢(θ)L(\theta_{0})>L(\theta) as

1n⁢∑i=1nlog⁡Zi<0.\frac{1}{n}\sum_{i=1}^{n}\log Z_{i}<0.

The left-hand side is the sample mean of the i.i.d. random variables log⁡Zi\log Z_{i} and by the law of large numbers, proposition A.14, converges in probability to μ=𝔼θ0⁢(log⁡Z1)\mu=\mathbb{E}_{\theta_{0}}(\log Z_{1}). Therefore, we only need to show that μ\mu is strictly negative: then on the event that the sample mean is non-negative, it differs from μ\mu by at least |μ||\mu|, and by definition A.12 the probability of this event tends to zero.

To study the expectation μ\mu, let Z=Z1Z=Z_{1}, so that μ=𝔼θ0⁢(log⁡Z)\mu=\mathbb{E}_{\theta_{0}}(\log Z). Writing the expectation of ZZ as an integral over the common support, we can cancel the density f⁢(x;θ0)f(x;\theta_{0}) and get

𝔼θ0⁢(Z)=∫f⁢(x;θ)f⁢(x;θ0)⁢f⁢(x;θ0)⁢dx=∫f⁢(x;θ)⁢dx=1,\mathbb{E}_{\theta_{0}}(Z)=\int\frac{f(x;\theta)}{f(x;\theta_{0})}\,f(x;\theta% _{0})\,\mathrm{d}x=\int f(x;\theta)\,\mathrm{d}x=1,

with a sum instead of an integral for a discrete model. Since ZZ has finite mean and the function g⁢(z)=−log⁡zg(z)=-\log z is strictly convex on (0,∞)(0,\infty), we can use Jensen’s inequality, lemma A.7, to get

−μ=𝔼θ0⁢(−log⁡Z)≥−log⁡𝔼θ0⁢(Z)=−log⁡1=0,-\mu=\mathbb{E}_{\theta_{0}}\bigl{(}-\log Z\bigr{)}\geq-\log\mathbb{E}_{\theta% _{0}}(Z)=-\log 1=0,

and the inequality is strict unless ZZ is constant with probability one. If ZZ were constant, we would have f⁢(x;θ)=c⁢f⁢(x;θ0)f(x;\theta)=c\,f(x;\theta_{0}) on the common support and, since both functions have integral one, this would imply c=1c=1, i.e. the two distributions would be the same, which (R1) excludes for θ≠θ0\theta\neq\theta_{0}. Thus the inequality is strict and we have μ<0\mu<0. This completes the proof. ∎

The quantity −𝔼θ0⁢(log⁡Z)=𝔼θ0⁢(log⁡(f⁢(X1;θ0)/f⁢(X1;θ)))-\mathbb{E}_{\theta_{0}}(\log Z)=\mathbb{E}_{\theta_{0}}\bigl{(}\log(f(X_{1};% \theta_{0})/f(X_{1};\theta))\bigr{)} from the proof is called the Kullback–Leibler divergence. The proof shows that, on average, each observation increases the log-likelihood of the truth by this positive amount, compared to the log-likelihood of the competitor θ\theta; the amount depends on θ\theta. Note that the lemma compares θ0\theta_{0} with one fixed value θ\theta at a time. It does not state that L⁢(θ0)L(\theta_{0}) eventually exceeds L⁢(θ)L(\theta) for all θ≠θ0\theta\neq\theta_{0} at once, and it says nothing directly about the maximiser of the likelihood. In the next section we apply the lemma to the two fixed values θ0±ε\theta_{0}\pm\varepsilon and turn the result into a statement about the MLE.

16.3 Consistency

From definition 2.9 we know that an estimator θ^n\hat{\theta}_{n} is consistent for θ\theta, if θ^n→pθ\hat{\theta}_{n}\xrightarrow{\ \mathrm{p}\ }\theta for all possible true values. In lecture 2 we have already seen how to prove consistency using the mean squared error. For the maximum likelihood estimator this approach is not feasible in general, because there is no general formula for the mean squared error. Instead, we will use the likelihood equation from lecture 5 to show that with probability tending to one there is a root of the equation which is close to θ0\theta_{0}. If we assume that the root is unique and is the MLE, it follows that the MLE is close to θ0\theta_{0}.

Theorem 16.3.

Suppose that the regularity conditions (R1), (R2) and (R3) hold and that, in addition, the following two statements hold.

  1. 1.
    ​

    For all θ,θ′∈Θ\theta,\theta^{\prime}\in\Theta the log-likelihood ratio log⁡(f⁢(X1;θ)/f⁢(X1;θ′))\log\bigl{(}f(X_{1};\theta)/f(X_{1};\theta^{\prime})\bigr{)} has finite expectation under ℙθ′\mathbb{P}_{\theta^{\prime}}.

  2. 2.
    ​

    For every sample size n≥1n\geq 1 and every sample whose observations lie in the common support from (R2), the likelihood equation ℓ′⁢(θ)=0\ell^{\prime}(\theta)=0 has a unique root, and this root is the maximum likelihood estimator θ^n\hat{\theta}_{n}.

Then θ^n\hat{\theta}_{n} is a consistent estimator for θ\theta.

Proof.

Let the true value be θ0\theta_{0} and let ε>0\varepsilon>0 be small enough that the closed interval [θ0−ε,θ0+ε][\theta_{0}-\varepsilon,\theta_{0}+\varepsilon] is contained in the open set Θ\Theta. Let θ1=θ0−ε\theta_{1}=\theta_{0}-\varepsilon and θ2=θ0+ε\theta_{2}=\theta_{0}+\varepsilon and consider the event

Sε={L⁢(θ1)<L⁢(θ0)⁢ and ⁢L⁢(θ2)<L⁢(θ0)}.S_{\varepsilon}=\bigl{\{}L(\theta_{1})<L(\theta_{0})\text{ and }L(\theta_{2})<% L(\theta_{0})\bigr{\}}.

By the assumptions of the theorem, lemma 16.2 applies to both θ1\theta_{1} and θ2\theta_{2}, and thus the two events L⁢(θ1)≥L⁢(θ0)L(\theta_{1})\geq L(\theta_{0}) and L⁢(θ2)≥L⁢(θ0)L(\theta_{2})\geq L(\theta_{0}) have probability tending to zero. Since the complement of SεS_{\varepsilon} is the union of these two events, we find

ℙθ0⁢(Sε)≥1−ℙθ0⁢(L⁢(θ1)≥L⁢(θ0))−ℙθ0⁢(L⁢(θ2)≥L⁢(θ0))⟶1\mathbb{P}_{\theta_{0}}(S_{\varepsilon})\geq 1-\mathbb{P}_{\theta_{0}}\bigl{(}% L(\theta_{1})\geq L(\theta_{0})\bigr{)}-\mathbb{P}_{\theta_{0}}\bigl{(}L(% \theta_{2})\geq L(\theta_{0})\bigr{)}\longrightarrow 1

as n→∞n\to\infty.

We now show that on the event SεS_{\varepsilon} the MLE is within ε\varepsilon of θ0\theta_{0}. Assume that the sample lies in SεS_{\varepsilon}. By (R3) the likelihood LL is a continuous function of θ\theta, and a continuous function on a closed, bounded interval attains its maximum. Thus there is a point θ∗∈[θ1,θ2]\theta^{*}\in[\theta_{1},\theta_{2}] with L⁢(θ∗)≥L⁢(θ)L(\theta^{*})\geq L(\theta) for all θ∈[θ1,θ2]\theta\in[\theta_{1},\theta_{2}]. Since L⁢(θ0)L(\theta_{0}) is larger than both L⁢(θ1)L(\theta_{1}) and L⁢(θ2)L(\theta_{2}), the maximum is not attained at either end of the interval, i.e. we have θ∗∈(θ1,θ2)\theta^{*}\in(\theta_{1},\theta_{2}). The function LL is differentiable and has a maximum at the interior point θ∗\theta^{*}, and thus L′⁢(θ∗)=0L^{\prime}(\theta^{*})=0. Since the observations lie in the common support, we have L>0L>0, and thus θ∗\theta^{*} is also a root of the likelihood equation ℓ′⁢(θ)=L′⁢(θ)/L⁢(θ)=0\ell^{\prime}(\theta)=L^{\prime}(\theta)/L(\theta)=0. By assumption, this root is unique and equals the MLE, and thus θ^n=θ∗\hat{\theta}_{n}=\theta^{*}. Since θ∗\theta^{*} is in (θ1,θ2)(\theta_{1},\theta_{2}), we have shown that

Sε⊆{|θ^n−θ0|<ε}.S_{\varepsilon}\subseteq\bigl{\{}|\hat{\theta}_{n}-\theta_{0}|<\varepsilon% \bigr{\}}.

Taking probabilities we find ℙθ0⁢(|θ^n−θ0|<ε)≥ℙθ0⁢(Sε)→1\mathbb{P}_{\theta_{0}}\bigl{(}|\hat{\theta}_{n}-\theta_{0}|<\varepsilon\bigr{% )}\geq\mathbb{P}_{\theta_{0}}(S_{\varepsilon})\to 1, i.e. ℙθ0⁢(|θ^n−θ0|≥ε)→0\mathbb{P}_{\theta_{0}}\bigl{(}|\hat{\theta}_{n}-\theta_{0}|\geq\varepsilon% \bigr{)}\to 0 as n→∞n\to\infty. At the start of the proof we restricted ε\varepsilon to small values, but this is no loss, since the probability ℙθ0⁢(|θ^n−θ0|≥ε)\mathbb{P}_{\theta_{0}}\bigl{(}|\hat{\theta}_{n}-\theta_{0}|\geq\varepsilon% \bigr{)} is non-increasing in ε\varepsilon. Since θ0\theta_{0} was an arbitrary point of Θ\Theta, this is the statement θ^n→pθ\hat{\theta}_{n}\xrightarrow{\ \mathrm{p}\ }\theta for every true value. This completes the proof. ∎

In the standard examples, the uniqueness of the root is typically proved by showing that the log-likelihood is strictly concave, as for the exponential distribution in example 5.2; exercise 16.1 carries out the argument for this model.

Remark.

The assumption that the likelihood equation has a unique root for every sample is slightly stronger than required: the proof is unchanged if the condition only holds on an event with probability tending to one, since we can intersect SεS_{\varepsilon} with such an event. This covers the Bernoulli distribution of example 5.3, where the likelihood equation has no root when all observations are equal, an event of probability θ0n+(1−θ0)n→0\theta_{0}^{n}+(1-\theta_{0})^{n}\to 0. It also covers the Poisson distribution, where the same happens when all observations are zero, an event of probability e−n⁢θ0→0e^{-n\theta_{0}}\to 0.

16.4 When the Assumptions Fail

We now look at what happens when the main hypotheses of theorem 16.3 fail. These are the cases where more care is needed in practice.

If the support of the model depends on the parameter, i.e. if (R2) fails, the likelihood is not a smooth function of θ\theta and the MLE is typically not a root of the likelihood equation. For example, for the uniform distribution on (0,θ)(0,\theta), the MLE is the sample maximum, as shown in example 5.5, and the theorem does not apply in this case. Nevertheless, the estimator is consistent: the mean squared error of the estimator goes to zero as the sample size increases, as shown in exercise 2.2, and thus lemma 2.11 applies; exercise 16.3 gives a direct proof of the same fact. We have seen in lecture 13 that for this model the Cramér–Rao bound can be violated, and in lecture 17 we will see that the limiting distribution of the MLE is not normal.

If the likelihood equation has several roots, the regularity conditions may all hold and the theorem still does not apply, because we cannot identify the root found in the proof with the MLE; the tt location model of section 5.3 is of this type. What survives is this: under the other assumptions of the theorem, for each fixed ε\varepsilon, with probability tending to one there is a root within ε\varepsilon of θ0\theta_{0}. What is lost is the guarantee that the root we find, or the global maximiser, is this one. The practical consequence of this is that numerical maximisation of the likelihood should be started with a simple consistent estimator, so that the iteration converges to the nearby root. This is a lesson we will take up in lecture 18.

Summary.
  • •
    ​

    The regularity conditions (R1) to (R4) from definition 16.1 state that the parameter must be identifiable, the support of the model must not depend on θ\theta, the log-likelihood must be three times differentiable with finite and positive Fisher information, and the third derivative of the log-likelihood must be bounded near each θ0\theta_{0} by a function with finite expectation.

  • •
    ​

    For a fixed wrong value θ\theta, the likelihood of the true value θ0\theta_{0} exceeds the likelihood of θ\theta with probability tending to one. The proof uses the law of large numbers and Jensen’s inequality.

  • •
    ​

    Under conditions (R1) to (R3), if the log-likelihood ratios have finite expectations and the likelihood equation has a unique root which is the MLE, then the MLE is consistent. The proof applies the lemma at θ0±ε\theta_{0}\pm\varepsilon and finds a maximum of the likelihood, and thus a root of the likelihood equation, between these two points.

  • •
    ​

    The theorem does not apply if the support of the model depends on the parameter (since then the MLE is typically not a root of the likelihood equation, as for the uniform distribution, even though it may still be consistent), or if the likelihood equation has multiple roots (since then we only know that, with probability tending to one, there is a root near θ0\theta_{0}).

Exercise 16.1.

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. exponentially distributed with rate θ>0\theta>0, i.e. f⁢(x;θ)=θ⁢e−θ⁢xf(x;\theta)=\theta e^{-\theta x} for all x≥0x\geq 0.

  1. 1.
    ​

    Show that the regularity conditions (R1) to (R4) hold for this model. Hint: For (R3) you can use the value ℐ︀⁢(θ)=1/θ2\mathcal{I}(\theta)=1/\theta^{2} from example 11.8 and the fact from lecture 11 that exponential families satisfy the conditions of section 11.1. For (R4) you should take derivatives of log⁡f⁢(x;θ)\log f(x;\theta) with respect to θ\theta and then find a bound M⁢(x)M(x).

  2. 2.
    ​

    Show that the likelihood equation has only one root for each sample with ∑ixi>0\sum_{i}x_{i}>0 and that this root is the MLE. Use theorem 16.3 and the remark after its proof to conclude that θ^n=1/X¯\hat{\theta}_{n}=1/\bar{X} is consistent for θ\theta.

  3. 3.
    ​

    Find an alternative proof of the consistency of 1/X¯1/\bar{X}, using the law of large numbers (proposition A.14), the continuous mapping theorem (proposition A.17), and any other arguments you need.

Exercise 16.2.

Let X1X_{1} be the only observation of a Bernoulli random variable with success probability θ0∈(0,1)\theta_{0}\in(0,1), and let θ∈(0,1)\theta\in(0,1) be another parameter value.

  1. 1.
    ​

    Compute the expectation 𝔼θ0⁢(log⁡(f⁢(X1;θ)/f⁢(X1;θ0)))\mathbb{E}_{\theta_{0}}\bigl{(}\log\bigl{(}f(X_{1};\theta)/f(X_{1};\theta_{0})% \bigr{)}\bigr{)} from the proof of lemma 16.2, as an explicit function of θ\theta and θ0\theta_{0}.

  2. 2.
    ​

    Using the inequality log⁡y≤y−1\log y\leq y-1 for y>0y>0, with equality only for y=1y=1, show that this expectation is negative for all θ≠θ0\theta\neq\theta_{0}.

Exercise 16.3.

Let X1,…,XnX_{1},\dots,X_{n} be i.i.d. uniformly distributed on the interval (0,θ)(0,\theta) and let θ^n=maxi⁡Xi\hat{\theta}_{n}=\max_{i}X_{i} be the MLE from example 5.5.

  1. 1.
    ​

    Show that for 0<ε<θ0<\varepsilon<\theta we have ℙθ⁢(|θ^n−θ|≥ε)=(1−ε/θ)n\mathbb{P}_{\theta}\bigl{(}|\hat{\theta}_{n}-\theta|\geq\varepsilon\bigr{)}=(1% -\varepsilon/\theta)^{n} and thus θ^n\hat{\theta}_{n} is consistent for θ\theta.

  2. 2.
    ​

    Which of the assumptions of theorem 16.3 are violated for this model? Why can the theorem not be applied in this case, despite the fact that the conclusion is still true?