Why Covariance-Step Settings Matter
A fitted model gives parameter estimates, but those estimates alone do not show how precisely the data determine each parameter. A covariance step uses local curvature around the fitted optimum to estimate uncertainty: its diagonal entries yield standard errors, while its off-diagonal entries describe how estimation errors in different parameters vary together. The options chosen for that calculation can therefore affect the reported uncertainty without changing the fitted parameter values or objective function.
The earlier material on Hessian-based standard errors at the optimum introduced the inverse-curvature calculation. Here the emphasis is on what a covariance step has to choose: which curvature to estimate, how to calculate derivatives, which parameter scale to use, and whether to use a model-based or robust uncertainty estimate. These choices matter most when curvature is estimated numerically, the model is nonlinear, or the likelihood assumptions are imperfect.
This convention uses the negative log likelihood. If software instead minimizes \(Q(\theta)=-2\ell(\theta)\), then \(\nabla^2 Q=2H\), so the corresponding covariance estimate is \(2\{\nabla^2 Q(\hat{\theta})\}^{-1}\). Check the objective-function convention before comparing reported standard errors; omitting this factor would make them too small by a factor of \(\sqrt{2}\).
What a Covariance Step Calculates
A covariance step is a post-estimation calculation centered on the fitted parameter vector. It estimates local curvature, inverts the curvature matrix when appropriate, and converts the resulting covariance matrix into standard errors and correlations. Its result is conditional on the fitted optimum and on the model and data used for estimation. It is not a new parameter-estimation step.
For a covariance matrix \(\widehat{\Sigma}\), the standard error of parameter \(j\) is \(\sqrt{\widehat{\Sigma}_{jj}}\). The estimated correlation between parameters \(j\) and \(k\) is \(\widehat{\Sigma}_{jk}/\sqrt{\widehat{\Sigma}_{jj}\widehat{\Sigma}_{kk}}\), provided both estimated variances are positive. Correlation is dimensionless, whereas standard errors have the same units as their parameters. A covariance matrix must be symmetric and positive semidefinite; it need not be positive definite. A singular matrix can still be a valid covariance matrix, although it cannot provide a nonsingular full-rank inverse-information estimate.
The calculation depends on settings that are sometimes grouped under a software label such as “covariance step.” Important choices include whether the curvature is observed or expected information, how derivatives are calculated, and whether uncertainty is model-based or uses a sandwich estimator. Software may also offer controls for numerical precision or derivative step sizes. Such controls affect how curvature is approximated; they do not make a poor local quadratic approximation accurate.
Why Inverse Curvature Represents Uncertainty
The inverse-Hessian result follows from a local approximation. At an interior optimum, the gradient of \(L\) is zero. For a small change \(d=\theta-\hat{\theta}\), a second-order Taylor expansion gives
Because the likelihood is proportional to \(\exp\{-L(\theta)\}\), this approximation gives a local likelihood proportional to \(\exp\{-\frac{1}{2}d^\mathsf{T}H d\}\). A multivariate normal density has this quadratic form when its covariance matrix is \(H^{-1}\). Thus the inverse curvature estimates the covariance of the parameter estimates when the local approximation and likelihood-based assumptions are suitable. This is an approximation, not a guarantee that the sampling distribution is exactly normal.
The argument requires a well-defined interior optimum, sufficiently smooth likelihood near that optimum, and informative curvature in the parameter directions being estimated. For the ordinary full-rank inverse-information estimate, \(H\) must be nonsingular; positive curvature in all directions is expected at a well-behaved local minimum of \(L\). Boundary estimates, weakly informed directions, or a poor local approximation can make the resulting standard errors misleading even if software returns numbers.
Worked Example: Standard Errors and Correlation From a Hessian
Suppose a hypothetical model estimates clearance \(CL=5.00\) L/h and volume \(V=20.0\) L. The fitted negative log likelihood has the following observed Hessian, calculated on these original parameter scales:
The determinant is \(8(5)-2(2)=36\), so the inverse is
The standard error for clearance is \(\sqrt{0.1389}=0.3727\) L/h, and the standard error for volume is \(\sqrt{0.2222}=0.4714\) L. Their estimated correlation is \(-0.05556/\sqrt{0.1389(0.2222)}=-0.3162\). Under the local model-based approximation, the fitted errors in clearance and volume are negatively correlated. This is not a claim that the two biological quantities themselves have a negative correlation.
Alternative Curvature and Uncertainty Calculations
The observed information is the curvature of the realized negative log likelihood at the estimate. Expected Fisher information instead averages the information over data generated by the fitted model. In regular, well-specified settings and with sufficient information, these approaches are often similar, but they are not generally numerically identical in a finite sample. Expected information may be analytically available or calculated by averaging over the model; observed information uses the curvature at the data actually observed.
A separate choice is how to obtain derivatives. Analytic second derivatives, when available and correctly implemented, avoid finite-difference approximation error. Numerical differentiation estimates curvature using changes in the objective at nearby parameter values; its result can depend on step size and numerical precision. Two derivative methods aim at the same observed Hessian, but may yield different estimates because their approximations differ. A small numerical discrepancy is not itself evidence that either result is correct; compare methods on the same objective and scale and check that estimates are stable to reasonable computational settings.
A sandwich estimate addresses a different issue: it replaces the model-based variance calculation with an estimate designed to remain valid under some forms of likelihood misspecification. For independent observational units, let \(s_i\) be the score contribution from unit \(i\), the derivative of its log likelihood. Let \(B=\sum_i s_i s_i^\mathsf{T}\), and let \(H\) be the observed Hessian of the total negative log likelihood. The sandwich estimate is \(H^{-1}BH^{-1}\). If observations are clustered, the score contributions used for \(B\) should be summed within independent clusters before forming the outer products. The sandwich approach relies on suitable independence, regularity, and asymptotic conditions; it does not repair a structurally inadequate model or weak information in the data.
Worked Example: Observed Versus Expected Information
For the same hypothetical fitted parameter values, suppose the expected-information calculation gives
Its determinant is \(10(4)-1(1)=39\), giving the expected-information covariance estimate
The resulting standard errors are \(0.3203\) L/h for clearance and \(0.5064\) L for volume; their estimated correlation is \(-0.1581\). These differ from the observed-information results even though the parameter estimates are unchanged. Both calculations are internally coherent under their respective information estimates; the difference should be reported and understood, not interpreted as a change in the fitted model.
Worked Example: A Sandwich Uncertainty Estimate
Continue with the observed Hessian from the first example, and suppose a hypothetical set of independent-unit score contributions gives \(B=\begin{pmatrix}10&0\\0&4\end{pmatrix}\). The inverse Hessian is \(A=H^{-1}=\frac{1}{36}\begin{pmatrix}5&-2\\-2&8\end{pmatrix}\). The sandwich covariance estimate is \(ABA\). Multiplying the matrices gives
The corresponding standard errors are \(\sqrt{0.2052}=0.4530\) L/h and \(\sqrt{0.2284}=0.4779\) L. The estimated correlation is \(-0.1265/\sqrt{0.2052(0.2284)}=-0.5845\). Here the robust estimate is larger for clearance than the observed-information estimate and gives a more negative correlation. That numerical comparison alone does not establish which estimate is preferable: the choice depends on the sampling structure and the assumptions one is prepared to make.
| Approach | Calculation | Key interpretation |
|---|---|---|
| Observed information | Invert the Hessian of the realized negative log likelihood | Model-based local uncertainty from the observed data |
| Expected information | Invert information averaged under the fitted model | Model-based uncertainty using expected rather than realized curvature |
| Numerical derivatives | Approximate derivatives from nearby objective evaluations | A computational route to curvature, not a separate sampling assumption |
| Sandwich estimate | Combine inverse curvature with score-variation information | Can allow some likelihood misspecification, subject to sampling and regularity conditions |
Parameter Scales, Diagnostics, and Limitations
Curvature depends on the parameter scale. If \(z=g(\theta)\) is a smooth reparameterization, covariance estimates on the new scale should be transformed back using the Jacobian. Locally, if \(\theta=h(z)\) and \(J=\partial\theta/\partial z^\mathsf{T}\), then \(\widehat{\Sigma}_\theta\) is approximately \(J\widehat{\Sigma}_zJ^\mathsf{T}\). This matters when estimation uses transformed parameters but results are reported in the original units. A covariance matrix on a log scale is not itself a covariance matrix in the original units.
Before interpreting a covariance-step result, check that it corresponds to the intended optimum and objective convention, that the reported parameter scale is clear, and that the matrix is symmetric and positive semidefinite up to numerical rounding. Check that diagonal entries used for standard errors are nonnegative and that correlations lie between \(-1\) and \(1\), allowing for small rounding error. A symmetric positive semidefinite matrix may be singular; singularity means a full-rank inverse estimate is unavailable, not automatically that the matrix is an invalid covariance matrix. A substantially negative eigenvalue or a correlation outside the valid range indicates an invalid or numerically unreliable result that should not be reported as an ordinary covariance estimate.
Also compare uncertainty estimates across reasonable derivative calculations or information choices when appropriate. Large changes can indicate sensitivity to numerical approximation or to the information assumption. Numerical stability is necessary for confidence in the calculation, but it is not sufficient: a stable local estimate can still be misleading near a boundary or when the likelihood is poorly approximated by a quadratic. These standard errors are local, asymptotic summaries, not guaranteed measures of uncertainty in every finite sample.
State whether the estimate uses observed or expected information, the derivative method, the parameter scale, and whether it is model-based or sandwich.
Confirm symmetry and positive semidefiniteness within numerical tolerance; inspect variances and correlations before converting them into standard errors and interpretations.
Report the estimate and units, then describe the standard error as local approximate uncertainty under the stated calculation and assumptions.
Common Pitfall
A common mistake is to say that a covariance matrix must be positive definite, and therefore any singular covariance matrix is invalid. The correction is that covariance matrices must be symmetric and positive semidefinite; positive definiteness is an additional full-rank property. For example, if two random quantities are identical and each has variance \(1\), their covariance matrix is \(\begin{pmatrix}1&1\\1&1\end{pmatrix}\), which is valid but singular. In an inverse-information calculation, singularity prevents an ordinary nonsingular inverse and signals that the calculation does not yield a full-rank estimate; it does not by itself prove that every covariance matrix with a zero eigenvalue is invalid.
A second pitfall is to treat different standard errors as evidence that the parameter estimates changed. Observed, expected, numerical, and sandwich calculations can produce different uncertainty estimates around the same fitted parameters. Report which calculation produced the uncertainty and why it is appropriate; do not silently select the smallest standard error.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions below.
- If a software package minimizes \(-2\ell(\theta)\), how does its Hessian relate to the negative-log-likelihood Hessian, and what covariance factor follows?
- A reported covariance matrix has diagonal entries \(0.16\) and \(0.25\), and off-diagonal entry \(-0.10\). Find both standard errors and the correlation.
- Why can observed- and expected-information estimates differ even when they use the same fitted parameter values?
- Does a singular covariance matrix necessarily fail to be a valid covariance matrix? Explain.
- Which uncertainty calculation is intended to allow some likelihood misspecification, and what sampling condition should be considered when forming it?
Solutions. (1) The Hessian of \(-2\ell\) is twice the Hessian of \(-\ell\), so the covariance is twice the inverse Hessian of the \(-2\ell\) objective. (2) The standard errors are \(\sqrt{0.16}=0.400\) and \(\sqrt{0.25}=0.500\); the correlation is \(-0.10/\sqrt{0.16(0.25)}=-0.500\). (3) Observed information is curvature for the realized data, whereas expected information averages curvature under the fitted model; those matrices need not be equal in a finite sample. (4) No. A covariance matrix must be symmetric positive semidefinite, and a singular matrix can satisfy both conditions, although it cannot be inverted as a full-rank information matrix. (5) The sandwich estimate; its score contributions should respect the independent sampling units, using cluster-summed scores when observations are dependent within clusters.