Why Likelihood Curvature Matters
In binary logistic regression, the likelihood records how well a coefficient vector agrees with the observed outcomes. Its slope indicates a direction in which the likelihood increases; its curvature describes how quickly that increase slows near a maximum. That curvature provides a direct measure of how much information the data contain about the coefficients and, under suitable conditions, an approximation to their sampling uncertainty.
The key calculation is especially useful in logistic regression: the negative Hessian of the log-likelihood has the form of a weighted cross-product of the design matrix. Each weight depends on a fitted probability, and is largest when that probability is near one half. We derive this form, establish the concavity it implies, and work through numerical information matrices.
Score, Hessian, and Fisher Information
Suppose \(Y_1,\ldots,Y_n\) are independent Bernoulli responses, with fixed predictor vectors \(\mathbf{x}_i\in\mathbb{R}^q\). Write the coefficient vector as \(\boldsymbol{\beta}\), the linear predictor as \(\eta_i=\mathbf{x}_i^\mathsf{T}\boldsymbol{\beta}\), and the success probability as \(p_i=\{1+\exp(-\eta_i)\}^{-1}\). Let \(X\) be the \(n\) by \(q\) matrix whose \(i\)th row is \(\mathbf{x}_i^\mathsf{T}\). The log-likelihood for the observed values \(y_i\in\{0,1\}\), omitting no terms that depend on the coefficients, is
Differentiating with respect to \(\boldsymbol{\beta}\) gives the score vector. Differentiating again gives the Hessian matrix, the matrix of second partial derivatives.
To derive the result, first note that \(d p_i/d\eta_i=p_i(1-p_i)\). The derivative of a single log-likelihood contribution with respect to \(\eta_i\) is \(y_i-p_i\). Since \(d\eta_i/d\boldsymbol{\beta}=\mathbf{x}_i\), summing the individual gradients gives
Differentiating this score once more, the derivative of \(p_i\) with respect to \(\boldsymbol{\beta}\) is \(p_i(1-p_i)\mathbf{x}_i\). Therefore
This Hessian does not depend on the observed \(y_i\) once \(\boldsymbol{\beta}\) is fixed. Consequently its negative equals its own expectation, giving \(\mathcal{I}(\boldsymbol{\beta})=X^\mathsf{T}WX\). The same expression also follows from the covariance of the score: the responses are independent, \(E[Y_i]=p_i\), and \(\operatorname{Var}(Y_i)=p_i(1-p_i)\), so
Thus, in this model, observed information and expected information coincide at every finite coefficient vector. This equality is a property of the logistic likelihood; it does not mean information is constant as the coefficients change, because the \(p_i\), and hence the diagonal entries of \(W\), change with \(\boldsymbol{\beta}\).
Worked Example: Curvature From One Observation
Take one Bernoulli observation with \(y_1=1\) and predictor vector \(\mathbf{x}_1=(1,1)^\mathsf{T}\). Evaluate the score and Hessian at \(\boldsymbol{\beta}=(0,0)^\mathsf{T}\).
The linear predictor is \(\eta_1=1(0)+1(0)=0\), so \(p_1=1/(1+\exp(0))=1/2\) and \(p_1(1-p_1)=1/4\). The score is
The Hessian is the negative weighted outer product:
This matrix has rank one: this single observation supplies curvature in the direction \((1,1)^\mathsf{T}\), but cannot distinguish changes to the two coefficients that leave their sum unchanged.
Concavity and What It Does Not Guarantee
The information matrix is positive semidefinite. For any vector \(\mathbf{v}\in\mathbb{R}^q\),
Because the Hessian is the negative of this matrix, the log-likelihood is concave over the coefficient space. For finite coefficients and finite predictor values, every \(p_i(1-p_i)\) is strictly positive. The Hessian is then negative definite at every coefficient vector precisely when \(X\) has full column rank. If \(X\) is rank deficient, there is a nonzero vector \(\mathbf{v}\) with \(X\mathbf{v}=0\); moving the coefficients along that direction does not change any linear predictor or the likelihood.
The rank condition gives a statement about curvature, not a guarantee that the data yield a finite maximum. For example, in a separable data set, coefficients can move farther in a direction that improves the likelihood while the fitted probabilities approach zero or one. The likelihood can approach its supremum without attaining it at any finite coefficient vector. In that situation, strict concavity at finite coefficient vectors does not produce a finite maximum.
Worked Example: Information for a Three-Row Design
Consider the design matrix with rows \((1,0)\), \((1,1)\), and \((1,2)\), and evaluate information at \(\boldsymbol{\beta}=(0,0)^\mathsf{T}\). All three linear predictors are zero, so all three probabilities are \(1/2\), and all weights are \(1/4\).
The cross-product of the design matrix is
For illustration, let the observed outcomes be \((0,1,1)^\mathsf{T}\). The score at this coefficient vector is
The information determinant is \((3/4)(5/4)-(3/4)^2=6/16=3/8\), so the matrix is invertible. Its inverse is
If these coefficients were the fitted coefficients, this inverse would be the local covariance approximation. Here the calculation is specifically at \((0,0)^\mathsf{T}\); the observed score is not zero there, so this is not a covariance estimate evaluated at a fitted maximum.
From Information to a Covariance Approximation
Near a finite maximum-likelihood estimate \(\hat{\boldsymbol{\beta}}\), the score is zero. A second-order Taylor expansion of the log-likelihood around that estimate gives, for a nearby coefficient vector \(\boldsymbol{\beta}\),
The quadratic term describes the local curvature. A direction with large curvature is one in which a small coefficient change lowers the log-likelihood sharply; a direction with little curvature allows more variation without a comparable likelihood decrease. When the model is correctly specified and standard large-sample maximum-likelihood conditions hold, including a finite true coefficient vector, fixed dimension, full-rank design, and increasing information, this local quadratic approximation motivates the familiar covariance approximation
The approximation is not an exact finite-sample covariance identity. It uses curvature at the fitted coefficients as a measure of sampling uncertainty. It also requires an invertible information matrix. If the design is rank deficient, the inverse does not exist; if some fitted probabilities are very close to zero or one, their weights are small and the information may be weak in relevant directions.
Worked Example: How Fitted Probabilities Affect Information
Use two predictor vectors, \((1,0)^\mathsf{T}\) and \((1,1)^\mathsf{T}\), and evaluate information at \(\boldsymbol{\beta}=(0,\log 3)^\mathsf{T}\). The corresponding linear predictors are \(0\) and \(\log 3\), so the probabilities are \(1/2\) and \(3/4\). Their weights are \(1/4\) and \((3/4)(1/4)=3/16\).
The information matrix is the sum of the two weighted outer products:
Its determinant is \((21-9)/256=3/64\), and therefore
The second observation has probability \(3/4\), so its weight \(3/16\) is smaller than the maximum possible weight \(1/4\), attained at probability \(1/2\). Its contribution to information is correspondingly reduced. The inverse is again a local covariance approximation at the stated coefficient vector; for a fitted covariance approximation, the probabilities must be evaluated at the fitted coefficients.
Common Mistake: Treating Inverse Information as Exact
A tempting but incorrect argument is: “The inverse Hessian is the covariance matrix, so it is exact whenever the Hessian can be inverted.” The Hessian describes curvature of the observed log-likelihood at a particular coefficient vector; it does not by itself equal the finite-sample sampling covariance of the estimator. The correction is to call its inverse a local or large-sample covariance approximation, and to check that the fitted information is invertible and the model’s regularity conditions are plausible. A highly curved likelihood may still be a poor normal approximation in a small or unusual sample.
Check Your Understanding
Use the definitions and calculations above to answer these questions.
- Why does the logistic score have the form \(X^\mathsf{T}(\mathbf{y}-\mathbf{p})\)?
- What condition on the design matrix makes the Hessian negative definite at finite coefficient vectors?
- For which probability \(p\) is the Bernoulli information weight \(p(1-p)\) largest, and what is that maximum?
- Why can a concave logistic log-likelihood fail to have a finite maximizer?
- Why should the inverse information matrix be described as a covariance approximation rather than an exact covariance?