Tutorials › Generalized Linear Models › Consistency of GLM Maximum-Likelihood Estimators

Large-Sample Likelihood Theory · Tutorial 245 of 981

Consistency of GLM Maximum-Likelihood Estimators

Learn why uniform convergence and a uniquely separated expected likelihood maximum make a GLM maximum-likelihood estimator consistent, and how to check those conditions in canonical-link models.

Intermediate 10 min read

What You'll Learn

  • State conditions under which a maximum-likelihood estimator is consistent.
  • Prove a uniform law of large numbers for a compact parameter space.
  • Explain why a separated expected likelihood maximum controls the sample maximizer.
  • Verify the required conditions for a canonical-link GLM with random design.
  • Work through Bernoulli, Poisson, and Gaussian consistency examples.
  • Recognize why pointwise convergence alone does not justify consistency of a maximizer.

Why Consistency Requires More Than a Good Fit

A maximum-likelihood estimator is computed by maximizing the likelihood in the observed sample. Consistency asks a different question: as the sample grows, does that maximizer approach the parameter that generated the data? The key difficulty is that the maximizing parameter itself depends on the sample. Convergence of the log-likelihood at each fixed parameter does not, by itself, control its random maximizer.

A useful consistency argument combines two facts. First, the sample average log-likelihood must converge uniformly over the parameter space to its expectation. Second, the expected log-likelihood must have a uniquely separated maximum at the true parameter. Uniform convergence then prevents the sample maximizer from remaining far from that maximum.

Definition: An estimator \(\hat{\theta}_n\) is consistent for \(\theta_0\) if \(\hat{\theta}_n\xrightarrow{p}\theta_0\); that is, for every \(\epsilon>0\), \(P(\|\hat{\theta}_n-\theta_0\|\geq\epsilon)\to0\) as \(n\to\infty\).

A Uniform-Convergence Consistency Theorem

Let \(Z_1,\ldots,Z_n\) be independent and identically distributed observations, and let \(q_\theta(Z_i)\) be the log-likelihood contribution at parameter \(\theta\in\Theta\). Write the sample average and its expectation as

$$ Q_n(\theta)=\frac{1}{n}\sum_{i=1}^n q_\theta(Z_i), \qquad Q(\theta)=E[q_\theta(Z_1)]. $$

The theorem below makes explicit the conditions needed for the argument. Compactness is imposed here to give a simple separation and uniform-convergence result; applications with an unrestricted parameter space need additional conditions that keep the maximizer in a suitable bounded region.

Theorem: Suppose \(\Theta\) is a compact subset of a finite-dimensional Euclidean space, and \(\theta_0\in\Theta\). Assume:
  • For almost every \(z\), \(\theta\mapsto q_\theta(z)\) is continuous, and the suprema used below are measurable.
  • There is a measurable function \(M\) such that \(|q_\theta(Z_1)|\leq M(Z_1)\) for all \(\theta\in\Theta\), with \(E[M(Z_1)]<\infty\).
  • \(Q(\theta)\) has a unique maximum over \(\Theta\) at \(\theta_0\).
  • \(\hat{\theta}_n\in\Theta\) is an exact maximizer of \(Q_n\), or an approximate maximizer satisfying \(Q_n(\hat{\theta}_n)\geq\sup_{\theta\in\Theta}Q_n(\theta)-r_n\), where \(r_n\xrightarrow{p}0\).
Then \(\hat{\theta}_n\xrightarrow{p}\theta_0\).

The proof has two parts: a uniform law of large numbers and an argument showing that uniform approximation preserves the location of a separated maximum.

Proof of the Uniform Law of Large Numbers

Under the first two assumptions of the theorem,

$$ \sup_{\theta\in\Theta}|Q_n(\theta)-Q(\theta)|\xrightarrow{p}0. $$

To prove this, define the modulus \(\omega_\delta(z)=\sup\{|q_\theta(z)-q_{\theta'}(z)|:\theta,\theta'\in\Theta,\ \|\theta-\theta'\|\leq\delta\}\). For almost every \(z\), continuity on compact \(\Theta\) implies uniform continuity, so \(\omega_\delta(z)\to0\) as \(\delta\downarrow0\). Also, \(\omega_\delta(z)\leq2M(z)\). The dominated convergence theorem therefore gives \(E[\omega_\delta(Z_1)]\to0\).

Fix \(\delta>0\) and choose a finite \(\delta\)-net \(\theta_1,\ldots,\theta_K\) in \(\Theta\): every \(\theta\in\Theta\) lies within distance \(\delta\) of at least one net point. For such a point \(\theta_j\), the triangle inequality gives

$$ \sup_{\theta\in\Theta}|Q_n(\theta)-Q(\theta)| \leq \max_{1\leq j\leq K}|Q_n(\theta_j)-Q(\theta_j)| +\frac{1}{n}\sum_{i=1}^n\omega_\delta(Z_i) +E[\omega_\delta(Z_1)]. $$

For fixed \(\delta\), the first term converges to zero in probability by the weak law of large numbers at the finitely many net points. The second term converges in probability to \(E[\omega_\delta(Z_1)]\), again by the weak law, since \(\omega_\delta\leq2M\) is integrable. Given any positive tolerance, choose \(\delta\) so that \(E[\omega_\delta(Z_1)]\) is sufficiently small. The displayed bound then proves the asserted uniform convergence. \(\square\)

Why a Separated Maximum Gives Consistency

Fix \(\epsilon>0\), and consider the parameters at least \(\epsilon\) away from the true value. If this set is nonempty, it is a closed subset of compact \(\Theta\), hence compact. Continuity of \(Q\) and uniqueness of its maximum imply a strictly positive gap:

$$ \Delta_\epsilon = Q(\theta_0)- \sup_{\substack{\theta\in\Theta\\\|\theta-\theta_0\|\geq\epsilon}}Q(\theta) >0. $$

Continuity of \(Q\) follows from the continuity of \(q_\theta(Z_1)\) and the integrable envelope, by dominated convergence. Let \(U_n=\sup_{\theta\in\Theta}|Q_n(\theta)-Q(\theta)|\). On the event \(U_n<\Delta_\epsilon/4\) and \(r_n<\Delta_\epsilon/4\), any \(\hat{\theta}_n\) outside the \(\epsilon\)-ball would satisfy

$$ Q_n(\hat{\theta}_n) \leq Q(\theta_0)-\Delta_\epsilon+U_n < Q_n(\theta_0)-\Delta_\epsilon+2U_n < Q_n(\theta_0)-r_n. $$

This contradicts the approximate-maximizer condition, since \(\sup_{\theta\in\Theta}Q_n(\theta)\geq Q_n(\theta_0)\). Uniform convergence gives \(U_n\xrightarrow{p}0\), and \(r_n\xrightarrow{p}0\), so the probability that either required bound fails tends to zero. Thus \(P(\|\hat{\theta}_n-\theta_0\|\geq\epsilon)\to0\). If the outside set is empty, that probability is already zero. This proves consistency. \(\square\)

Checking the Argument for a Canonical-Link GLM

Consider independent and identically distributed random-design observations \(Z_i=(X_i,Y_i)\) from a GLM with known dispersion \(\phi\). Suppose the conditional response distribution is a one-parameter exponential family with log-density or log-mass

$$ \log f(y\mid x;\beta) = \frac{y x^\mathsf{T}\beta-b(x^\mathsf{T}\beta)}{a(\phi)} +c(y,\phi), \qquad a(\phi)>0. $$

Here the canonical link makes the natural parameter \(\eta=x^\mathsf{T}\beta\). Assume the parameter space for \(\beta\) is compact, the true value \(\beta_0\) belongs to it, and all linear predictors in the parameter space lie in the natural-parameter domain. For a direct verification of the uniform law, assume \(X\) is bounded and \(E[|Y|]<\infty\). On the resulting bounded range of predictors, assume \(b\) is continuous and finite. The log-likelihood contribution, omitting the term \(c(Y,\phi)\), is

$$ q_\beta(X,Y) = \frac{Y X^\mathsf{T}\beta-b(X^\mathsf{T}\beta)}{a(\phi)}. $$

Bounded \(X\) and compactness of the parameter space bound \(|X^\mathsf{T}\beta|\). Consequently, for some finite constants \(C_1,C_2\), \(|q_\beta(X,Y)|\leq C_1|Y|+C_2\) for every \(\beta\). This is an integrable envelope. Continuity in \(\beta\) follows from continuity of \(b\). The uniform law therefore applies.

It remains to identify the unique expected maximum. For a regular exponential family, \(E[Y\mid X]=b'(X^\mathsf{T}\beta_0)\). Conditional on \(X=x\), the expected log-likelihood difference from the true value is

$$ E[q_\beta-q_{\beta_0}\mid X=x] = \frac{ b'(\eta_0)(\eta-\eta_0)-b(\eta)+b(\eta_0) }{a(\phi)}, \qquad \eta=x^\mathsf{T}\beta,\quad \eta_0=x^\mathsf{T}\beta_0. $$

Convexity of \(b\) implies \(b(\eta)\geq b(\eta_0)+b'(\eta_0)(\eta-\eta_0)\), so this conditional difference is nonpositive. If \(b\) is strictly convex on the predictor range, equality holds only when \(\eta=\eta_0\). If \(E[XX^\mathsf{T}]\) is positive definite, then \(X^\mathsf{T}(\beta-\beta_0)=0\) almost surely is possible only when \(\beta=\beta_0\): indeed,

$$ E\!\left[\{X^\mathsf{T}(\beta-\beta_0)\}^2\right] = (\beta-\beta_0)^\mathsf{T}E[XX^\mathsf{T}](\beta-\beta_0)>0 \quad\text{if }\beta\ne\beta_0. $$

Thus the expected log-likelihood has a unique maximum at \(\beta_0\). Together with the uniform law, these conditions give consistency of the global maximum-likelihood estimator over the stated compact parameter space. The argument concerns a global maximizer; it does not claim that a numerical algorithm has found one.

Worked Example: Bernoulli Logistic Regression With an Intercept

Let \(Y_i\) be independent Bernoulli responses with success probability \(p_0=0.6\), and use the logistic model \(p_\beta=e^\beta/(1+e^\beta)\) with \(\beta\in[-2,2]\). The true value is \(\beta_0=\log(0.6/0.4)=\log(3/2)\), which lies in the parameter space.

The per-observation log-likelihood is \(q_\beta(y)=y\beta-\log(1+e^\beta)\). It is continuous in \(\beta\), and bounded on \([-2,2]\) for \(y\in\{0,1\}\), so an integrable envelope exists. Its expectation is

$$ Q(\beta)=0.6\beta-\log(1+e^\beta), \qquad Q'(\beta)=0.6-p_\beta, \qquad Q''(\beta)=-p_\beta(1-p_\beta)<0. $$

The unique maximum solves \(p_\beta=0.6\), hence is \(\beta_0=\log(3/2)\). For example, at \(\beta=0\), the expected log-likelihood loss relative to the maximum is

$$ Q(0)-Q(\beta_0) = 0.6\log(5/6)+0.4\log(5/4) \approx -0.0201<0. $$

Strict concavity and compactness ensure a positive gap outside every fixed neighborhood of \(\beta_0\). The consistency theorem therefore applies. If a sample happens to contain only zeros or only ones, the unconstrained logistic maximum may not exist as a finite number; on the stated compact parameter space an exact maximum does exist. The theorem concerns that compact-space estimator.

Worked Example: Poisson Regression With a Binary Covariate

Let \(X\) equal 0 or 1 with probability \(1/2\) each, and suppose \(Y\mid X=x\) is Poisson with mean \(\exp(x\beta_0)\), where \(\beta_0=\log 2\). Fit the canonical Poisson model over \(\beta\in[-0.5,1]\). The conditional means are 1 when \(X=0\) and 2 when \(X=1\).

Ignoring terms independent of \(\beta\), the log-likelihood contribution is \(q_\beta(X,Y)=YX\beta-\exp(X\beta)\). Since \(X\) is bounded, \(\beta\) lies in a compact interval, and \(E[Y]=(1+2)/2=1.5\), this criterion has an integrable envelope and is continuous in \(\beta\).

When \(X=0\), the criterion does not depend on \(\beta\). When \(X=1\), its conditional expectation is \(2\beta-\exp(\beta)\). Therefore

$$ Q(\beta)-Q(\beta_0) = \frac12\{2(\beta-\log 2)-\exp(\beta)+2\}. $$

The expression in braces is zero at \(\beta=\log2\), has derivative \(2-\exp(\beta)\), and has second derivative \(-\exp(\beta)<0\). It is strictly concave and uniquely maximized at \(\log2\). Because \(P(X=1)=1/2>0\), this unique maximum is also the unique maximum of the full expected criterion. Uniform convergence and separation give consistency of the compact-space maximum-likelihood estimator.

Worked Example: Gaussian Regression With a Known Variance

Let \(X\) take values \(-1\) and \(1\) with equal probabilities, and let \(Y\mid X\sim N(X\beta_0,1)\), where \(\beta_0=0.5\). Fit \(\beta\in[-1,1]\). The conditional normal density has canonical parameter \(X\beta\) and \(b(\eta)=\eta^2/2\).

Ignoring terms independent of \(\beta\), the log-likelihood contribution is \(q_\beta(X,Y)=YX\beta-(X\beta)^2/2\). Since \(X^2=1\), \(E[Y^2]\) is finite, and \(\beta\) is bounded, the criterion has an integrable envelope. Also, \(E[XY]=\beta_0\) and \(E[X^2]=1\), so direct calculation gives

$$ Q(\beta)-Q(\beta_0) = (\beta-\beta_0)E[XY] -\frac12(\beta^2-\beta_0^2)E[X^2] = -\frac12(\beta-\beta_0)^2. $$

This is strictly negative for every \(\beta\ne\beta_0\), establishing a unique, separated expected maximum on the compact parameter space. In fact, the unconstrained sample maximizer is \(\sum_{i=1}^n X_iY_i/\sum_{i=1}^nX_i^2=n^{-1}\sum_{i=1}^nX_iY_i\), since \(X_i^2=1\). The weak law gives \(n^{-1}\sum_iX_iY_i\xrightarrow{p}E[XY]=0.5\). Restricting the maximizer to \([-1,1]\) does not change this limit, so the compact-space estimator is consistent as well.

Common Pitfall: Pointwise Convergence Is Not Enough

A tempting argument is: “For every fixed \(\theta\), \(Q_n(\theta)\) converges to \(Q(\theta)\), and \(Q\) is maximized at \(\theta_0\), so the maximizer of \(Q_n\) must approach \(\theta_0\).” This skips the key issue. Pointwise convergence controls each fixed parameter separately, not the maximum over parameters that can change with the sample. A random maximizer could select a location where the sample criterion deviates substantially from its expectation.

The correction is to establish uniform convergence over the parameter space and a positive expected-likelihood gap outside every neighborhood of \(\theta_0\). The compactness, continuity, and integrable-envelope conditions above are one standard route to uniform convergence. In applications where parameters are unrestricted, it is not valid simply to assume those compact-space arguments still apply: one must also justify that the estimator cannot escape to arbitrarily large parameter values.

Key takeaway: Consistency follows when the sample average log-likelihood converges uniformly to an expected criterion whose unique maximum is separated from all parameters outside any fixed neighborhood of the truth. For a canonical-link GLM, strict convexity of the cumulant function and an identifiable design provide the central part of that separation argument.

Check Your Understanding

Use the uniform-convergence and separation argument to answer these questions.

  1. Why does convergence of \(Q_n(\theta)\) at every fixed \(\theta\) not, on its own, prove consistency of a maximizer?
  2. What role does compactness play in establishing the positive gap outside an \(\epsilon\)-neighborhood?
  3. For a canonical-link GLM, which property of \(b\) makes the conditional expected log-likelihood difference nonpositive?
  4. Why is positive definiteness of \(E[XX^\mathsf{T}]\) a sufficient design condition for identifying \(\beta\)?
  5. In the Bernoulli example, find the value of \(\beta\) that maximizes \(Q(\beta)\) by solving \(Q'(\beta)=0\).
Clinical Biostats