Why Approximate a Sparse-Data Posterior?
Individual pharmacokinetic data are often sparse: a patient may have only a few measured concentrations, while the model contains several individual parameters. Bayesian updating combines the individual likelihood with a population-based prior to obtain a posterior distribution. The posterior mode gives one useful summary, but it does not by itself describe how uncertain the individual parameters remain.
The Laplace approximation summarizes that uncertainty by fitting a Gaussian distribution near the posterior mode. Its key input is local curvature: a sharply curved log posterior implies a narrow approximation, while a flatter one implies a wider approximation. The approximation can be convenient for uncertainty calculations and forecasting, but local curvature is not a substitute for examining the whole posterior. With sparse data, the posterior may be skewed, bounded, or have multiple separated regions of high density.
The Hessian is the matrix of second partial derivatives of the log posterior. Its negative, \(J\), is sometimes called the observed posterior curvature matrix. The approximation is based on a second-order Taylor expansion at the mode. It requires a smooth log posterior near that mode, a finite, isolated interior maximum, and positive curvature in every direction there. Those are local mathematical conditions; for the approximation to summarize the posterior well, the posterior mass must also be concentrated in a region that is reasonably represented by that local quadratic shape.
From the Hessian to a Gaussian
Write \(\boldsymbol{\delta}=\boldsymbol{\eta}-\hat{\boldsymbol{\eta}}\). Because the gradient of \(g\) is zero at an interior mode, the second-order Taylor expansion is
Exponentiating gives a density proportional to \(\exp[-\boldsymbol{\delta}^{T}J\boldsymbol{\delta}/2]\). This is the kernel of a multivariate normal density centered at \(\hat{\boldsymbol{\eta}}\), with precision matrix \(J\) and covariance matrix \(J^{-1}\). In one dimension, if the log posterior has second derivative \(g''(\hat{\eta})<0\), the approximate variance is \(-1/g''(\hat{\eta})\).
The derivation identifies both the strength and the limitation of the method. It uses the posterior’s height and curvature at one point. It does not use the full shape of distant tails, detect a second mode from the curvature at the first, or guarantee that a locally Gaussian approximation gives sensible probabilities far from the mode.
Worked Example: A Gaussian Posterior and Its Curvature
Suppose \(x=\log(CL)\), where \(CL\) is an individual clearance in L/h. In a deliberately simplified hypothetical model, the prior is \(x\sim N(\log 5,0.25)\), and a log-scale concentration-derived observation is \(y=1.80\), with \(y\mid x\sim N(x,0.25)\). The variance terms are in squared log units. Find the posterior mode and the Laplace variance.
The log posterior, up to an additive constant, is
Differentiating and setting the derivative to zero gives \(g'(x)=-4(x-\log 5)+4(1.80-x)=0\). Thus \(\hat{x}=(\log 5+1.80)/2=(1.60944+1.80)/2=1.70472\). The second derivative is \(g''(x)=-4-4=-8\), so \(J=8\) and the Laplace variance is \(J^{-1}=0.1250\), with standard deviation \(\sqrt{0.1250}=0.3536\) log units.
Here the log posterior is exactly quadratic, so the Gaussian approximation is exact, not merely local. The corresponding clearance at the log-scale mode is \(\exp(1.70472)=5.50\) L/h. This example is a simplified illustration of the calculation; real PK likelihoods need not be Gaussian or quadratic in log parameters.
Intervals and Parameter Coordinates
For a scalar parameter in the chosen coordinates, an approximate central 95% posterior interval is \(\hat{\eta}\pm1.96\sqrt{J^{-1}}\). For a vector, the approximate covariance \(J^{-1}\) supplies marginal standard deviations and correlations. A multivariate Gaussian also defines joint ellipsoidal regions, but a marginal interval for one parameter is not the same object as a joint region for the whole vector.
The coordinates matter. Positive parameters are often represented on a log scale, and correlated random effects may be represented in unconstrained coordinates. If a density is transformed, it must include the appropriate change-of-variables Jacobian. The mode of a density generally changes under a nonlinear transformation; transforming a mode in one coordinate system is not necessarily the mode of the density in another.
Worked Example: A Log-Clearance Interval
Suppose a hypothetical sparse-data analysis gives a log-clearance posterior mode \(\hat{x}=\log(5)\) and negative Hessian \(J=7/4\), in squared log units. Construct the Laplace 95% interval for \(x=\log(CL)\), then transform its endpoints to L/h.
The approximate variance is \(J^{-1}=4/7=0.571429\), and the standard deviation is \(\sqrt{4/7}=0.755929\). Therefore the log-scale endpoints are \(\log(5)\pm1.96\sqrt{4/7}\). Substitution gives \(1.60944\pm1.48162\), or approximately \([0.12782,3.09106]\).
Exponentiating the endpoints gives \([\exp(0.12782),\exp(3.09106)]\approx[1.136,22.00]\) L/h. Under the Gaussian approximation on the log scale, this interval contains approximately 95% of posterior probability. It is asymmetric on the clearance scale, as expected after exponentiating a symmetric interval in log units. This is an approximate credible interval conditional on the Laplace approximation, not a frequentist confidence interval.
When Sparse-Data Uncertainty Is Poorly Approximated
Sparse information can leave some parameter directions weakly constrained by the likelihood. The prior may then have substantial influence, and the posterior can retain features that a local quadratic expansion does not capture. Even if the Hessian can be computed and is positive definite, that alone does not establish that the approximation is accurate.
Common warning signs include a visibly skewed marginal posterior, a long tail, a parameter close to a constraint, strong curvature changes across the region of interest, or separated regions of high posterior density. A nearly flat direction can also make the Hessian ill-conditioned: small numerical errors may produce large changes in its inverse. If the Hessian has a non-positive eigenvalue at a purported mode, it is not a valid positive-definite precision matrix for this approximation; investigate the optimization, parameterization, and local posterior shape rather than treating the inverse as a covariance.
Worked Example: A Boundary and a Skewed Clearance Posterior
Consider a hypothetical posterior that is exactly \(x=\log(CL)\sim N(0,1)\). In log coordinates, the mode is \(x=0\), the negative Hessian is 1, and the Laplace approximation is exact. The corresponding clearance is \(CL=\exp(x)\), so its posterior is lognormal and cannot take negative values.
To find the density in clearance coordinates \(c>0\), use the change of variables \(x=\log(c)\), whose Jacobian is \(1/c\). Apart from a constant, \(p(c\mid\mathbf{y})=\exp[-(\log c)^2/2]/c\). Its log density is \(h(c)=-(\log c)^2/2-\log c+\text{constant}\). Differentiation gives \(h'(c)=-(\log c+1)/c\), so the clearance-density mode is \(c=\exp(-1)=0.3679\), not \(\exp(0)=1\).
At that mode, \(h''(c)=(\log c)/c^2=-\exp(2)\). A clearance-scale Laplace approximation therefore has variance \(\exp(-2)\), standard deviation \(\exp(-1)=0.3679\), and a nominal central 95% interval \(0.3679\pm1.96(0.3679)=[-0.3532,1.089]\) L/h. Its negative lower endpoint is impossible for clearance. By contrast, the exact central interval obtained from the lognormal posterior is \([\exp(-1.96),\exp(1.96)]\approx[0.1409,7.099]\) L/h. The issue is not a failed Hessian calculation: it is using a local Gaussian in a strongly skewed, constrained coordinate. The log-coordinate approximation respects positivity after transformation and is exact in this example.
Diagnostics, Alternatives, and Limits
A Laplace approximation is most useful when the posterior has one dominant, smooth, interior mode and is close to quadratic over the region containing most of its mass. Before relying on it for an individual forecast or dose decision, check that the optimization found a genuine mode, that the Hessian is symmetric and positive definite up to numerical tolerance, and that its eigenvalues are not so small or ill-conditioned that the estimated covariance is unstable. Inspect the implied intervals for impossible values and compare summaries across sensible parameterizations when transformation is relevant.
The principal alternatives answer the same uncertainty question with different compromises. Direct numerical integration can characterize a low-dimensional posterior without imposing a Gaussian shape, although it becomes difficult as dimension grows. Posterior simulation can represent skewness and multiple modes when exploration is adequate, at additional computational and diagnostic cost. A Gaussian approximation is fast and compact, but can miss tails and modes. None of these methods repairs a misspecified likelihood, an inappropriate prior, or data that do not identify a parameter; they represent the posterior implied by the specified model.
State the individual parameter vector and the density being approximated. For transformed parameters, use the density, including its Jacobian, in those coordinates.
Optimize the log posterior and verify that its gradient is near zero and the solution is an interior maximum.
Evaluate \(J=-\nabla^2g(\hat{\boldsymbol{\eta}})\), then check positive definiteness and numerical conditioning before calculating \(J^{-1}\).
Review intervals and constraints, and consider a method that represents the full posterior if skewness, multiple modes, or unstable curvature is material.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A scalar log posterior has \(g''(\hat{\eta})=-5\). What is the Laplace variance and standard deviation?
- If a two-parameter Hessian-based precision matrix is not positive definite, can its inverse be reported as the Laplace covariance? Explain.
- In the clearance example with \(x=\log(CL)\sim N(0,1)\), why is the mode of the clearance density not \(\exp(0)\)?
- What does a nominal 95% Laplace interval mean, and what does it not mean?
Solutions. (1) The precision is \(J=-g''(\hat{\eta})=5\), so the variance is \(1/5=0.2000\) and the standard deviation is \(\sqrt{0.2}=0.4472\) in the parameter’s units. (2) No. A Laplace covariance requires a positive-definite precision matrix; a non-positive eigenvalue means the local curvature is not suitable for this Gaussian approximation, so the mode, parameterization, or calculation needs investigation. (3) A density changes under transformation: the clearance density includes the Jacobian \(1/c\). Its log density is maximized at \(c=\exp(-1)\), whereas transforming the log-coordinate mode gives 1, which is not the clearance-density mode. (4) It means that approximately 95% of posterior probability lies in the interval under the fitted Gaussian approximation. It is not a claim that there is a 95% repeated-sampling probability that a fixed parameter lies in this particular interval, nor does it establish that the approximation accurately represents the full posterior.