Tutorials › Nonlinear Mixed-Effects Models (NLME) › Approximation Bias in Sparse Sampling Designs

The Marginal Likelihood and Its Approximations · Tutorial 164 of 797

Approximation Bias in Sparse Sampling Designs

Learn how few samples per individual affect conditional-mode precision and the local likelihood approximations used by FOCE and Laplace.

Advanced 12 min read

What You'll Learn

  • Relate within-individual sample count and timing to information about random effects.
  • Distinguish weak conditional-mode information from approximation error in a marginal likelihood.
  • Calculate a conditional mode and its uncertainty in a sparse linearized example.
  • Show how local curvature changes a Laplace likelihood contribution.
  • Identify sparse-design warning signs and compare FO, FOCE, and Laplace.
  • Recognize when a better approximation cannot compensate for uninformative sampling.

Why Sparse Sampling Matters

A population model can have many individuals but still provide little information about each individual’s random effects when each contributes only one or two concentration measurements. That distinction matters for approximating the marginal likelihood: FOCE uses a conditional mode and a local linearization, while Laplace uses the mode and local curvature of the individual log posterior. With sparse data, the observations may weakly locate the mode, and a small change in the local approximation can materially change an individual’s likelihood contribution.

Sparse sampling does not automatically make either approximation biased. The issue is conditional: the amount and timing of information per individual, the model’s nonlinearity over the plausible range of random effects, and the adequacy of the local approximation all matter. A precise population-level fit cannot make an individual mode well determined when that individual’s observations contain little information about the relevant random-effect direction.

Definition: For individual \(i\), let \(\eta_i\) denote the random-effects vector, with population distribution \(N(0,\Omega)\). Given that individual’s observations \(y_i\), the conditional mode \(\hat{\eta}_i\) is the value that maximizes the individual log posterior density, or equivalently minimizes its negative log posterior \(g_i(\eta_i)\). Sparse sampling means that few observations, or observations at uninformative times, contribute to estimating \(\eta_i\). It can leave one or more random-effect directions weakly informed by the data.

Information, Conditional Modes, and Local Approximations

For clarity, suppose an individual has \(m_i\) observations, a model prediction vector \(f_i(\eta_i)\), and conditionally normal residual errors with covariance \(R_i\). Assume random effects are normally distributed with covariance \(\Omega\), observations are conditionally independent across individuals, and the model is smooth in \(\eta_i\). Up to terms that do not depend on \(\eta_i\), the individual negative log posterior is

$$ g_i(\eta_i) = \frac{1}{2}\eta_i^\mathsf{T}\Omega^{-1}\eta_i + \frac{1}{2}\{y_i-f_i(\eta_i)\}^\mathsf{T} R_i^{-1}\{y_i-f_i(\eta_i)\}. $$

The prior term penalizes random effects far from zero. The data term measures discrepancy between observed and predicted concentrations. A sparse individual can still have a unique mode because the prior contributes curvature, even when the data do not identify every component. In that case, the mode may be numerically stable while being largely driven by the prior rather than by that individual’s observations.

A useful local information description comes from linearizing \(f_i\) at a point and writing its Jacobian as \(J_i\). Under the stated normal model, the local negative-log-posterior curvature is approximately

$$ H_i \approx \Omega^{-1}+J_i^\mathsf{T}R_i^{-1}J_i. $$

The second term is the information supplied by the observations in random-effect directions. With few samples, or samples whose sensitivities point in similar directions, this matrix may have small eigenvalues. Then uncertainty is large along the corresponding combinations of random effects. The prior stabilizes the calculation but does not create subject-specific data information.

The exact marginal likelihood contribution integrates over random effects. FOCE replaces the nonlinear prediction locally by a linear approximation around the conditional mode and obtains a Gaussian-based contribution. Laplace instead approximates the integrand around the mode using its local Hessian. For an interior mode with positive-definite Hessian \(H_i=\nabla^2 g_i(\hat{\eta}_i)\), the basic Laplace form is proportional to

$$ \exp\{-g_i(\hat{\eta}_i)\}(2\pi)^{q/2}|H_i|^{-1/2}, $$

where \(q\) is the dimension of \(\eta_i\); normalizing constants from the residual and random-effects densities must also be included for a full likelihood. Thus the mode affects the height of the integrand, while curvature affects the volume around it. Under sparse sampling, a mode can move or its curvature can change substantially when the approximation point or model sensitivity changes.

Worked Example: One Observation Gives a Weakly Informed Mode

Consider a hypothetical concentration measurement at one sampling time. Near \(\eta=0\), suppose the model is linearized as \(f(\eta)=10+8\eta\) mg/L, the observed concentration is \(12\) mg/L, the residual variance is \(4\) \((\text{mg/L})^2\), and \(\eta\sim N(0,0.09)\). This is a one-random-effect illustration; the linearization is being treated as the model for this calculation.

The negative log posterior, omitting constants, is \(g(\eta)=\eta^2/(2(0.09))+(12-10-8\eta)^2/(2(4))\). Setting its derivative to zero gives a conditional mode equal to the data score divided by total precision:

$$ \hat{\eta} = \frac{8(12-10)/4}{1/0.09+8^2/4} = \frac{4}{11.1111+16} = 0.1475. $$

The posterior precision is \(11.1111+16=27.1111\), so the local posterior variance is \(1/27.1111=0.03689\). The data have moved the mode above zero, but the prior precision remains a substantial part of the total. This calculation describes the conditional mode under the stated linearized model; it is not a guarantee that one concentration measurement can distinguish all random-effect mechanisms in a richer model.

For comparison, add a second hypothetical observation with sensitivity \(5\) mg/L per unit \(\eta\), observed \(1\) mg/L above its prediction at zero, and the same residual variance \(4\). The total score becomes \(4+5(1)/4=5.25\), and the total precision becomes \(11.1111+16+25/4=33.3611\). The mode is \(5.25/33.3611=0.1574\), and the local variance is \(1/33.3611=0.02998\). The added observation increases information and reduces uncertainty; it need not move the mode dramatically to do so.

How Sparse Data Change Likelihood Contributions

In a nonlinear concentration model, the prediction’s sensitivity to a random effect can vary with sampling time and with the random effect itself. A single concentration may constrain one combination of random effects but leave another nearly unconstrained. Two observations at nearly identical times may add less information than two observations at times where the prediction responds differently to clearance and volume effects. The number of observations alone is therefore not a complete measure of informativeness.

Sparse sampling can affect approximate contributions in two related but distinct ways. First, the conditional mode can be weakly determined: small changes in the data or model may shift it, or the mode may be pulled toward zero by the random-effects distribution. Second, the local approximation can be inaccurate if the prediction changes substantially over the range of random effects that contributes to the integral. FOCE depends on local linearization; Laplace depends on local curvature. A well-computed mode does not by itself ensure either local approximation is adequate.

Worked Example: A Sparse Two-Effect Conditional Mode

Suppose one hypothetical concentration at a selected time is locally represented by \(f(\eta_1,\eta_2)=14\eta_1+\eta_2\) mg/L, with residual variance \(1\) \((\text{mg/L})^2\). The observed value is \(6.046\) mg/L, and the independent random effects have variances \(0.09\) and \(4\). This is a local linear model for illustrating the information structure, not a claim that the coefficients are universal pharmacokinetic sensitivities.

There is only one data direction, but two random effects. For this Gaussian linear model, the posterior-mode vector is \(\Omega b\,y/(1+b^\mathsf{T}\Omega b)\), where \(b=(14,1)^\mathsf{T}\) and \(\Omega=\operatorname{diag}(0.09,4)\). Here \(\Omega b=(1.26,4)^\mathsf{T}\) and \(1+b^\mathsf{T}\Omega b=1+21.64=22.64\). Thus

$$ \hat{\eta}_1 = \frac{1.26(6.046)}{22.64} \approx 0.33648, \qquad \hat{\eta}_2 = \frac{4(6.046)}{22.64} \approx 1.0682. $$

The prior penalty at this mode is

$$ \frac{0.33648^2}{2(0.09)} + \frac{1.0682^2}{2(4)} \approx 0.6290+0.1426 = 0.7716. $$

The fitted prediction is approximately \(14(0.33648)+1.0682=5.7789\) mg/L, leaving a residual of \(6.046-5.7789=0.2671\) mg/L and a data penalty of approximately \(0.2671^2/2=0.0357\). The total negative log posterior, omitting constants, is therefore about \(0.7716+0.0357=0.8073\). A single observation informs only the combination \(14\eta_1+\eta_2\); it cannot independently determine both effects from data alone. The prior covariance supplies the remaining regularization.

The difference between curvature-based contributions can be seen without confusing it with the mode height. If near the mode the negative log integrand is quadratic, its local integral is proportional to \(H^{-1/2}\) in one dimension. A sparse nonlinear model may have appreciably different local curvature under two approximations.

Worked Example: Curvature Changes a Local Contribution

Consider a hypothetical one-dimensional individual contribution for which two local calculations have the same negative log integrand value \(g(\hat{\eta})\), but different curvatures: \(H=25\) for a curvature calculation at the mode and \(H=16\) for a comparison linearized calculation. Isolating the curvature factor, their Laplace-style factors are \(\sqrt{2\pi/25}\) and \(\sqrt{2\pi/16}\). Their ratio is

$$ \frac{\sqrt{2\pi/25}}{\sqrt{2\pi/16}} = \sqrt{\frac{16}{25}} = 0.8, \qquad \log(0.8)\approx -0.2231. $$

Thus the first local contribution is 20% smaller in this isolated comparison, and its log contribution is lower by about \(0.2231\). The example does not assert that FOCE always uses curvature \(16\), or that this difference is the total FOCE–Laplace difference: actual contributions can also differ in mode, residual covariance, and normalization terms. It shows why even a curvature change, with the mode height held fixed, can matter.

Derivation: Why the Curvature Factor Appears

The Laplace curvature adjustment follows by expanding the negative log integrand near an interior mode. If \(g\) is twice differentiable, \(\nabla g(\hat{\eta})=0\), and \(H=\nabla^2g(\hat{\eta})\) is positive definite, then a second-order Taylor approximation gives

$$ g(\eta) \approx g(\hat{\eta}) + \frac{1}{2}(\eta-\hat{\eta})^\mathsf{T} H(\eta-\hat{\eta}). $$

Substituting this quadratic form into the integral of \(\exp\{-g(\eta)\}\) separates out \(\exp\{-g(\hat{\eta})\}\). The remaining integral is a centered Gaussian integral, which equals \((2\pi)^{q/2}|H|^{-1/2}\). Consequently, a larger determinant of curvature means a narrower local region and a smaller approximate integral, all else equal. This justification requires an interior mode and positive-definite local curvature; it does not establish that the quadratic approximation is accurate far from the mode.

Sparse designs can make the distinction especially visible. When the data provide little curvature in a random-effect direction, the prior may dominate that direction. If the likelihood is also noticeably nonlinear across the posterior range, the second-order expansion can represent only a small neighborhood of the mode. FOCE’s conditional linearization and Laplace’s quadratic expansion are then sensitive to the local geometry, not simply to the number of subjects in the study.

Diagnostics, Alternatives, and Limitations

A sparse-sampling concern should be assessed through information and approximation behavior, not inferred from sample count alone. Useful checks include:

  • Inspect the design sensitivity. Compare model sensitivities at actual sampling times. Similar sensitivity rows or weak response to a random effect indicate that some directions may be poorly informed.
  • Inspect conditional modes and curvature. Large changes in \(\hat{\eta}_i\) under small data perturbations, or a nearly singular \(H_i\), suggest weakly determined directions. A positive prior contribution can keep \(H_i\) nonsingular without making the data informative.
  • Check the local approximation. Compare predictions near the mode with the model’s nonlinear predictions over a plausible range around it. Large discrepancies warn that local linear or quadratic behavior may not represent the integration region.
  • Compare individual contributions under reasonable approximations. Large discrepancies can flag sensitivity, but they do not by themselves identify which approximation is closer to the exact integral.

The main alternatives have different strengths. FO is a first-order approximation around the population mean and can be computationally simple, but it does not use the same individual-specific conditional re-centering as FOCE. FOCE re-centers at the individual conditional mode and linearizes there, which can help when subject-specific deviations matter; a poorly informed mode or strong local nonlinearity can still affect it. Laplace uses the mode and Hessian and can better represent local curvature, but it is also a local approximation. No one method can restore information absent from the observations. More informative sampling times, additional measurements, or a scientifically justified simpler random-effects structure may address that design limitation more directly.

A common mistake is to conclude that a small number of samples necessarily makes Laplace biased and that FOCE must therefore be preferred. The reasoning fails because sparse sampling can weaken mode identification, but approximation error depends on the shape of the integrand as well as the design. Laplace may be accurate for a nearly quadratic integrand with sparse data, while either approximation can be inaccurate for a strongly nonquadratic integrand. Conversely, a substantial difference between FOCE and Laplace is a warning to investigate, not proof that one estimate is correct.

These checks also have limits. Conditional modes are empirical-Bayes quantities and are not direct observations of true individual effects. Their apparent stability can be produced by strong prior shrinkage. Approximation comparisons are not a substitute for evaluating the marginal integral more accurately when that is feasible, and a richer integration method cannot compensate for an intrinsically uninformative design.

Key takeaway: Sparse sampling can weaken data information about individual random effects, increase mode sensitivity or prior shrinkage, and make FOCE or Laplace contributions more dependent on local approximation choices. Separate weak subject-level information from approximation error, and examine sensitivity, curvature, and model nonlinearity before drawing conclusions.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. In a linearized model with one random effect, what happens to the local posterior variance when additional informative observations increase \(J^\mathsf{T}R^{-1}J\)?
  2. Why can one concentration observation fail to identify two random effects separately, even if the conditional mode is unique?
  3. For a one-dimensional Laplace contribution, what is the ratio of curvature factors when \(H_1=36\) and \(H_2=9\)? Which is larger?
  4. Does a large FOCE–Laplace difference prove that Laplace is biased? Explain.
  5. Name two diagnostics that can reveal weak information or a poor local approximation in a sparse design.

Solutions. (1) The local variance is the reciprocal of prior plus data precision, approximately \((\Omega^{-1}+J^\mathsf{T}R^{-1}J)^{-1}\); added informative observations increase precision and reduce variance. (2) One observation constrains one linear combination of effects, while another direction may be informed mainly by the prior; the prior can make the posterior mode unique without separate data identification. (3) The ratio is \(\sqrt{H_2/H_1}=\sqrt{9/36}=0.5\), so the contribution with \(H_1=36\) has half the curvature factor of the contribution with \(H_2=9\). (4) No. The difference signals sensitivity to approximation choices; it does not establish which method is closer to the exact marginal likelihood. (5) Examples include checking the rank or eigenvalues of the design information, perturbing data to assess mode stability, and comparing nonlinear predictions with local linear or quadratic behavior around the mode.