Documentation

18.14 Laplace approximation

Laplace approximates the ETA integral using the conditional mode and local curvature. For subject \(i\), nlmx uses

OFV_i = J_i(eta_hat) + log|OMEGA| + log|H_i/2|,
H_i = d²J_i/deta² at eta_hat.

The approximation is accurate when conditional density is concentrated and locally close to Gaussian. It can handle user-likelihood and censored F_FLAG records that linearized Gaussian methods cannot. nlmx therefore requires Laplace or SAEM for such records.

The exact conditional Hessian is computed by central differences of automatic-differentiation gradients. If it is not positive definite, nlmx falls back to Gauss–Newton curvature when possible. That stabilizes calculation but is also a diagnostic about local geometry.

Laplace is local: multimodality, strong skewness or heavy tails can be poorly represented by one mode and Hessian. Higher ETA dimension also magnifies curvature/numerical demands.

Practical interpretation

In one ETA dimension, draw a quadratic matching the conditional objective at its minimum. Laplace integrates the bell shape implied by that quadratic. Compare it with the true curve several SDs away. Agreement near the mode is not enough when tails or another mode contribute appreciable area. Numerical quadrature of small toy problems is therefore an excellent regression test for the Laplace implementation.

When curvature fallback occurs, record the subject and whether estimates or OFV change materially under alternative starts or SAEM. A fallback can be numerically useful while still identifying a case outside the clean exact-Hessian assumption.

Common mistakes

Do not call Laplace exact integration, ignore curvature fallback, or compare it with FOCE-I under different likelihood records. A good local quadratic cannot capture a distant second mode.

Checklist

  • Confirm every conditional mode converged.
  • Check Hessian positive definiteness/fallback.
  • Inspect skewness or multimodality risks.
  • Use Laplace for supported F_FLAG likelihoods.
  • Compare against stochastic/numerical references where pivotal.

Further reading

Read F_FLAG likelihoods, nonlinear failure modes, and Chapter 19.