Tutorials › Pattern-Mixture and Selection Models › Profile Score and Curvature

Likelihood Inference and Instability · Tutorial 124 of 499

Profile Score and Curvature

Learn to differentiate a profiled log likelihood, interpret its Schur-complement curvature, and recognize when the calculation is unreliable.

Advanced 12 min read

What You'll Learn

  • State the regularity conditions for differentiating a profile log likelihood.
  • Derive the profile score using the envelope property.
  • Derive profile curvature by following the optimized nuisance-parameter path.
  • Compute effective information from scalar and matrix-valued examples.
  • Diagnose when nuisance optimization makes profile curvature unstable.
  • Distinguish profile curvature from curvature with nuisance parameters held fixed.

Why profile curvature differs from fixed-nuisance curvature

In a selection model, a selection parameter may be strongly entangled with parameters governing the outcome distribution. Profiling handles this by fixing the selection parameter in turn and re-optimizing the nuisance parameters at every fixed value. The resulting profile log likelihood describes how well each selection-parameter value can fit after the nuisance parameters have adapted. Its slope and curvature therefore need not match the corresponding derivatives with nuisance parameters held fixed.

This distinction matters because curvature measures local information. If nuisance parameters can compensate for a change in the selection parameter, the profile may be much flatter than the log likelihood looks when those nuisance parameters are artificially held still. The calculations below make that adjustment explicit.

Setup and regularity conditions

Let \(\theta\) be a scalar selection parameter and let \(\eta\) be a vector of nuisance parameters. Write the observed-data log likelihood as \(\ell(\theta,\eta)\). For each fixed \(\theta\), define \(\hat{\eta}(\theta)\) as a local maximizer over \(\eta\), and define the profile log likelihood by \(\ell_p(\theta)=\ell(\theta,\hat{\eta}(\theta))\). The hats here indicate optimization at the specified \(\theta\); they do not by themselves mean that \(\theta\) is at its joint maximum-likelihood estimate.

Definition: The profile score is the derivative \(\ell_p'(\theta)\). The profile curvature is the second derivative \(\ell_p''(\theta)\). The corresponding profile observed information is \(J_p(\theta)=-\ell_p''(\theta)\). Positive profile information means the profile log likelihood is locally concave in \(\theta\).

The formulas in this tutorial apply locally under the following conditions: \(\ell\) has continuous second derivatives near the point of interest; the nuisance optimum is an interior point; \(\ell_\eta(\theta,\hat{\eta}(\theta))=0\); and the nuisance Hessian \(\ell_{\eta\eta}\) there is nonsingular. For the nuisance point to be a strict local maximum, \(\ell_{\eta\eta}\) is negative definite. A unique smooth maximizing branch is also needed in the neighborhood considered. If there are constraints, a boundary optimum, or switching between distinct local maxima, the ordinary derivative formulas may not apply across that feature.

Subscripts denote partial derivatives: \(\ell_\theta\) is the derivative in \(\theta\) holding \(\eta\) fixed, \(\ell_{\eta\eta}\) is the nuisance Hessian, and \(\ell_{\theta\eta}\) is a row vector. All are evaluated at \((\theta,\hat{\eta}(\theta))\) when used in profile formulas.

Deriving the score and curvature

The profile log likelihood changes both because \(\theta\) changes and because the maximizing nuisance value moves. Apply the chain rule to its definition:

$$ \ell_p'(\theta) = \ell_\theta(\theta,\hat{\eta}(\theta)) + \ell_\eta(\theta,\hat{\eta}(\theta))^\mathsf{T}\hat{\eta}'(\theta). $$

The nuisance score is zero at the interior optimum for each fixed \(\theta\). The second term therefore vanishes, giving the profile score:

$$ \ell_p'(\theta)=\ell_\theta(\theta,\hat{\eta}(\theta)). $$

This is the envelope property: for the first derivative, the change in the optimizing nuisance parameters contributes no additional term. It does not mean nuisance estimation is irrelevant to curvature.

To find how the nuisance optimum moves, differentiate its defining equation \(\ell_\eta(\theta,\hat{\eta}(\theta))=0\) with respect to \(\theta\). The chain rule gives

$$ \ell_{\eta\theta}+\ell_{\eta\eta}\hat{\eta}'(\theta)=0, \qquad \hat{\eta}'(\theta)=-\ell_{\eta\eta}^{-1}\ell_{\eta\theta}. $$

Now differentiate the profile score, including the movement of \(\hat{\eta}(\theta)\):

$$ \begin{aligned} \ell_p''(\theta) &=\ell_{\theta\theta}+\ell_{\theta\eta}\hat{\eta}'(\theta)\\ &=\ell_{\theta\theta} -\ell_{\theta\eta}\ell_{\eta\eta}^{-1}\ell_{\eta\theta}. \end{aligned} $$

This is the profile curvature, also called the Schur-complement curvature. The formula is local: every derivative on its right-hand side is evaluated at the nuisance optimum for the current \(\theta\).

An equivalent expression uses observed information blocks. Define \(J=-\nabla^2\ell\), with blocks \(J_{\theta\theta}=-\ell_{\theta\theta}\), \(J_{\theta\eta}=-\ell_{\theta\eta}\), and \(J_{\eta\eta}=-\ell_{\eta\eta}\). Then

$$ J_p(\theta) = J_{\theta\theta} - J_{\theta\eta}J_{\eta\eta}^{-1}J_{\eta\theta}. $$

When \(J_{\eta\eta}\) is positive definite, the subtracted term is nonnegative because it is a quadratic form. Thus, under this condition, allowing the nuisance parameters to re-optimize cannot increase local information about \(\theta\) relative to holding them fixed. Strong cross-information between \(\theta\) and \(\eta\) can make the reduction substantial.

Worked Example: A two-parameter quadratic log likelihood

Suppose a hypothetical selection-model fit has the following local quadratic log likelihood, with both parameters measured on their stated model scales:

$$ \ell(\theta,\eta) = C-\frac12\left[ 10(\theta-\theta_0)^2 +12(\theta-\theta_0)(\eta-\eta_0) +5(\eta-\eta_0)^2 \right]. $$

Here \(\theta\) is a dimensionless selection parameter, \(\eta\) is a dimensionless nuisance parameter, and \(C,\theta_0,\eta_0\) are constants. The observed information matrix is \(\begin{pmatrix}10&6\\6&5\end{pmatrix}\), which is positive definite: its leading entry is 10 and its determinant is \(10(5)-6^2=14>0\). Thus the nuisance curvature is negative and the full quadratic is strictly concave.

For fixed \(\theta\), differentiate with respect to \(\eta\) and set the nuisance score to zero:

$$ \ell_\eta=-6(\theta-\theta_0)-5(\eta-\eta_0)=0, \qquad \hat{\eta}(\theta)=\eta_0-\frac65(\theta-\theta_0). $$

The fixed-nuisance information for \(\theta\) is \(J_{\theta\theta}=10\). The nuisance-adjusted profile information is

$$ J_p=10-\frac{6^2}{5}=10-7.2=2.8. $$

Equivalently, substituting the optimized nuisance path into the log likelihood leaves \(\ell_p(\theta)=C-1.4(\theta-\theta_0)^2\), whose second derivative is \(-2.8\). The profile is therefore less curved: as \(\theta\) moves, the nuisance parameter changes in the direction that partially offsets the loss in fit.

Worked Example: Checking curvature along a nonlinear nuisance path

Consider a hypothetical log likelihood \(\ell(\theta,\eta)=-\tfrac12(\eta-\theta^2)^2-(\theta-1)^2\), where \(\theta\) is a dimensionless selection parameter and \(\eta\) is a nuisance parameter on a dimensionless scale. For fixed \(\theta\), \(\ell_\eta=-(\eta-\theta^2)\), so \(\hat{\eta}(\theta)=\theta^2\). The nuisance Hessian is \(\ell_{\eta\eta}=-1\), confirming a strict conditional maximum.

The profile is \(\ell_p(\theta)=-(\theta-1)^2\), so its score at \(\theta=1\) is 0 and its curvature is \(-2\). Verify this with the block formula. At \((\theta,\eta)=(1,1)\), the partial score is \(\ell_\theta=2\theta(\eta-\theta^2)-2(\theta-1)=0\), and the partial derivatives are \(\ell_{\theta\theta}=2(\eta-\theta^2)-4\theta^2-2=-6\) and \(\ell_{\theta\eta}=2\theta=2\). Thus

$$ \ell_p''(1) = -6-\frac{2^2}{-1} = -6+4 = -2. $$

The fixed-nuisance curvature is \(-6\), but the profile curvature is \(-2\). The nuisance optimum moves at rate \(\hat{\eta}'(1)=2\), offsetting part of the fixed-nuisance curvature. The profile score at this point is zero, as also follows directly from the profiled expression.

Several nuisance parameters

With a vector of nuisance parameters, the same result applies using matrices. The cross-information block describes how changes in \(\theta\) are linked to the nuisance parameters jointly; the matrix inverse accounts for their curvature and dependence on one another. The scalar subtraction in the first example becomes a quadratic form.

Worked Example: Two correlated nuisance parameters

Suppose a hypothetical observed-data likelihood for 240 participants, 72 of whom have dropout recorded, has observed information blocks at a fitted point given by \(J_{\theta\theta}=12\), \(J_{\theta\eta}=(3,2)\), and \(J_{\eta\eta}=\begin{pmatrix}4&1\\1&3\end{pmatrix}\). Here \(\theta\) is a dimensionless selection parameter and \(\eta\) contains two nuisance parameters. The nuisance block is positive definite: its first diagonal entry is 4 and its determinant is \(4(3)-1^2=11>0\). Thus the required inverse exists.

The inverse nuisance block and its product with the cross-information vector are

$$ J_{\eta\eta}^{-1} = \frac1{11} \begin{pmatrix}3&-1\\-1&4\end{pmatrix}, \qquad J_{\eta\eta}^{-1}J_{\eta\theta} = \frac1{11}\begin{pmatrix}7\\5\end{pmatrix}. $$

Therefore the information reduction is \((3,2)\frac1{11}(7,5)^\mathsf{T}=31/11\approx2.818\), and the profile information is

$$ J_p=12-\frac{31}{11} =\frac{101}{11} \approx9.182. $$

The selection parameter has less local information after both nuisance parameters are allowed to adjust: the reduction is about 2.818 information units on these parameter scales. The sample size alone does not determine whether the profile will be sharply curved; the cross-information and nuisance curvature also matter.

Diagnostics, alternatives, and limitations

A useful check is to compare analytic curvature with the curvature of a numerically computed profile. At nearby values \(\theta-h,\theta,\theta+h\), re-optimize \(\eta\) each time, then compare the analytic result with \[ \frac{\ell_p(\theta+h)-2\ell_p(\theta)+\ell_p(\theta-h)}{h^2}. \] Agreement should improve over a reasonable range of step sizes, subject to numerical error. If the result changes sharply with \(h\), or the fitted nuisance values jump between evaluations, the profile may be too noisy or the optimizer may have switched branches. Integration error in a selection-model likelihood can also contaminate derivatives, so a stable optimization alone is not sufficient evidence that the curvature is accurate.

A common mistake is to report \(J_{\theta\theta}\) as the information for \(\theta\) after nuisance parameters have been estimated. That is the curvature with \(\eta\) held fixed, not the profile curvature. The correction is the Schur-complement term \(J_{\theta\eta}J_{\eta\eta}^{-1}J_{\eta\theta}\). Another mistake is to assume that the profile is always less curved. That conclusion requires a positive definite nuisance information block; if it is singular, nearly singular, or not positive definite, the inverse-based calculation can fail or be unstable.

The main alternative is joint curvature of the full log likelihood, which retains the entire parameter block rather than reducing it to a curve in \(\theta\). That is useful for understanding parameter dependence, but it does not replace profiling when the question concerns how the best attainable fit changes as \(\theta\) varies. Holding nuisance parameters fixed is simpler but answers a different question. Profile curvature is also local: it does not describe distant branches, boundary behavior, or the global shape of the likelihood. In particular, a small profile information value signals weak local curvature, not by itself a complete diagnosis of why the fit is unstable.

At a joint interior maximum, the profile score is zero because the partial score \(\ell_\theta\) is zero there. Away from that maximum, the profile score still equals the partial score evaluated at the re-optimized nuisance values. This distinction is useful when checking a calculation: the nuisance score should be zero along the profile, but the selection-parameter score need not be zero except at a stationary point of the profile.

Key takeaway: The profile score is the selection-parameter score evaluated at the optimized nuisance values. The profile curvature additionally accounts for how those nuisance values move, producing a Schur-complement adjustment to the fixed-nuisance curvature.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. Why does the nuisance-parameter path not add a term to the first derivative of the profile log likelihood?
  2. For observed information blocks \(J_{\theta\theta}=9\), \(J_{\theta\eta}=2\), and \(J_{\eta\eta}=4\), calculate the profile information.
  3. What condition makes the nuisance inverse in the profile-curvature formula well-defined?
  4. A numerical profile has a visibly discontinuous jump in its optimizing nuisance value. Why should its finite-difference curvature be treated cautiously?

Solutions. (1) The chain-rule term involving \(\hat{\eta}'(\theta)\) is multiplied by \(\ell_\eta\), which is zero at the interior nuisance optimum. (2) \(J_p=9-2^2/4=8\) information units on the specified parameter scales. (3) The nuisance Hessian must be nonsingular; for a strict conditional maximum it is negative definite, equivalently the nuisance observed-information block is positive definite. (4) The optimizer may have switched between local-maximizing branches, so nearby points may not lie on one smooth profile path; the ordinary derivative formula may not describe that jump.)

Clinical Biostats