Tutorials › Quantitative Systems Pharmacology (QSP) › Posterior Geometry in Nonlinear ODE Models

Bayesian Calibration and Uncertainty Quantification · Tutorial 640 of 799

Posterior Geometry in Nonlinear ODE Models

Interpret posterior ridges and parameter correlations in nonlinear ODE models, and assess their consequences for sampling and uncertainty summaries.

Advanced 12 min read

What You'll Learn

  • Explain how different parameter combinations can produce similar ODE predictions.
  • Relate local posterior curvature to parameter sensitivities and observation error.
  • Interpret parameter correlations along a curved posterior ridge.
  • Recognize when marginal intervals conceal important joint uncertainty.
  • Identify numerical and modeling problems that can distort posterior geometry.

Why Posterior Geometry Matters

In a nonlinear ODE model, several parameters can compensate for one another: changing one rate may be offset by changing an initial condition, capacity, or another rate. The resulting posterior can concentrate near a narrow, curved region rather than around a roughly circular cloud. This geometry is not merely a plotting feature. It affects which parameter combinations are well determined, how efficiently posterior sampling can explore the distribution, and whether separate summaries of each parameter represent plausible joint values.

A posterior is the distribution of unknown parameters conditional on the observed data and the specified model. Let \(\boldsymbol{\theta}\) denote the parameter vector, \(y\) the observed data, \(L(y\mid\boldsymbol{\theta})\) the likelihood, and \(\pi(\boldsymbol{\theta})\) the prior density. Bayes' rule gives

$$ \pi(\boldsymbol{\theta}\mid y) = \frac{L(y\mid\boldsymbol{\theta})\pi(\boldsymbol{\theta})} {\int L(y\mid\boldsymbol{\theta})\pi(\boldsymbol{\theta})\,d\boldsymbol{\theta}}, $$

when the denominator is finite and nonzero. The posterior geometry depends on the ODE predictions, the observation model, and the prior, not on the ODE alone. For interpretation, assume the ODE solution is uniquely defined for parameter values under consideration, the numerical solver is accurate enough for the likelihood calculation, and the observation-error model is appropriate. If any of these conditions fails, apparent geometry may reflect a modeling or computational artifact.

Definition: A posterior ridge is an elongated region of relatively high posterior density in which changes in one or more parameters can be offset by changes in other parameters. A parameter correlation describes how uncertainty in parameters varies jointly; it may be positive, negative, or nonlinear. A ridge can curve, so a single linear correlation coefficient may not fully describe it.

A Simple ODE Model and a Curved Ridge

Consider a hypothetical response following a one-compartment-type rise toward a plateau:

$$ x(t;A,k)=A(1-e^{-kt}), $$

where \(x(t)\) is the response in concentration units, \(A>0\) is the plateau concentration, \(k>0\) is a rate constant in inverse time, and \(t\) is time. This is a simplified illustration, not a claim that a particular biological system follows this mechanism. With only one exact observation \(x(4)=8\), every pair satisfying

$$ A(1-e^{-4k})=8 $$

has the same predicted observation. Solving for \(k\) gives a curve in the \((A,k)\) plane:

$$ k(A)=-\frac{1}{4}\ln\left(1-\frac{8}{A}\right), \qquad A>8. $$

As the plateau \(A\) increases, the rate \(k\) needed to reach the observed value by time 4 decreases. The resulting dependence is negative and nonlinear. With noisy measurements and a prior, the posterior generally has a finite-width band around such a curve rather than an infinitely thin line.

Worked Example: Two Parameter Pairs Fit One Observation

Suppose a hypothetical response is observed to be 8 concentration units at time 4. Compare parameter pairs with \(A=10.96\) and \(A=12\), using the model above.

For \(A=10.96\), solve the observation equation:

$$ k=-\frac{\ln(1-8/10.96)}{4} =-\frac{\ln(0.270073)}{4} \approx \frac{1.30906}{4} \approx 0.3273. $$

For \(A=12\):

$$ k=-\frac{\ln(1-8/12)}{4} =-\frac{\ln(1/3)}{4} \approx \frac{1.09861}{4} \approx 0.2747. $$

Substitution confirms the match: \(10.96(1-e^{-4(0.3273)})\approx 8.00\), and \(12(1-e^{-4(0.2747)})\approx 8.00\). These pairs differ in both parameters but make essentially the same prediction at the one observed time. The data at time 4 alone therefore do not precisely distinguish their values.

Local Curvature and ODE Sensitivities

The local orientation of a posterior ridge can be understood through sensitivities: derivatives of model predictions with respect to parameters. For the illustrative response,

$$ \frac{\partial x}{\partial A}=1-e^{-kt}, \qquad \frac{\partial x}{\partial k}=At e^{-kt}. $$

Near a parameter value, a small change in prediction is approximately the sum of each sensitivity multiplied by its parameter change. If one observation is to remain nearly unchanged, parameter changes must approximately satisfy

$$ \frac{\partial x}{\partial A}\,\Delta A+ \frac{\partial x}{\partial k}\,\Delta k \approx 0. $$

This is a local, linear approximation to the curved equal-prediction contour. With multiple observations, the sensitivities at each observed time contribute information about different directions in parameter space. If their effects are similar across all observation times, some combinations remain difficult to separate.

Worked Example: The Local Trade-Off at One Observation Time

Use the parameter pair \(A=12\), \(k=0.274653\) at \(t=4\), which predicts \(x(4)=8\). Calculate the sensitivity-based trade-off between small changes in \(A\) and \(k\).

Since \(e^{-4k}=1/3\), the sensitivities are

$$ \frac{\partial x}{\partial A}=1-\frac{1}{3}=\frac{2}{3}, \qquad \frac{\partial x}{\partial k}=12(4)\left(\frac{1}{3}\right)=16. $$

Keeping the prediction approximately fixed requires \((2/3)\Delta A+16\Delta k\approx0\), so

$$ \Delta k\approx-\frac{2/3}{16}\Delta A =-0.04167\Delta A. $$

Thus, locally, increasing the plateau by one concentration unit can be offset by decreasing the rate by about \(0.04167\) inverse time units. The units matter: \(A\) is a concentration and \(k\) is an inverse time. This slope describes the local contour at this parameter pair; it is not a universal linear relationship between the parameters.

For independent Gaussian observation errors with known standard deviations \(\sigma_i\), the log likelihood, apart from constants, is

$$ \log L(y\mid\boldsymbol{\theta}) = -\frac{1}{2}\sum_i \frac{[y_i-x(t_i;\boldsymbol{\theta})]^2}{\sigma_i^2}. $$

Near a well-fitting parameter value, the curvature of this log likelihood is often approximated by the sensitivity matrix weighted by the observation precisions. In a locally Gaussian approximation, this curvature describes the orientation and relative narrowness of the posterior cloud; prior curvature also contributes. This approximation is most informative when the posterior is concentrated in one smooth region. It can be misleading for strongly curved, bounded, or multimodal posteriors, and it does not replace inspection of the full joint distribution.

Worked Example: A Second Observation Helps Separate Parameters

Suppose hypothetical measurements are \(y(1)=3.00\) and \(y(4)=8.00\), with independent Gaussian errors of standard deviation \(0.10\) concentration units. The two parameter pairs from the earlier example both fit the time-4 measurement. Compare their time-1 predictions and residuals, where residual means observed minus predicted.

For \((A,k)=(10.96,0.3273)\), the prediction at time 1 is

$$ x(1)\approx10.96(1-e^{-0.3273}) \approx10.96(1-0.7209) \approx3.059. $$

Its time-1 residual is \(3.00-3.059=-0.059\) concentration units. For \((A,k)=(12,0.2747)\),

$$ x(1)\approx12(1-e^{-0.2747}) \approx12(1-0.7598) \approx2.882, $$

so its time-1 residual is \(3.00-2.882=0.118\) concentration units. Both pairs match the time-4 observation, but their time-1 predictions differ. The time-1 data therefore provide information that the single time-4 measurement cannot. Neither pair is established as the posterior estimate by this comparison alone: the full likelihood uses both measurements, and the posterior also incorporates the prior.

Reading Joint and Marginal Uncertainty

A joint posterior describes combinations of parameter values. A marginal posterior for one parameter is obtained by integrating the joint distribution over the other parameters. Marginal summaries are useful, but they discard information about which values occur together. For example, separate credible intervals for \(A\) and \(k\) do not imply that every combination inside the two intervals is plausible. On a narrow ridge, many such cross-combinations may have very low posterior density.

Worked Example: Separate Means Can Miss the Ridge

Return to the exact time-4 observation \(x(4)=8\). Three points on its equal-prediction curve are \((A,k)\approx(9,0.5493)\), \((12,0.2747)\), and \((40,0.05579)\). These are illustrative points on a curve, not posterior draws and not equally probable estimates.

If they were given equal weight just for illustration, their coordinate-wise averages would be

$$ \bar A=\frac{9+12+40}{3}=20.33, \qquad \bar k=\frac{0.5493+0.2747+0.05579}{3}\approx0.2933. $$

At that average pair, the model predicts

$$ x(4;20.33,0.2933) \approx20.33(1-e^{-1.1732}) \approx20.33(1-0.3093) \approx14.04, $$

not 8. This calculation does not show that posterior means are generally wrong; it shows that averaging coordinates along a curved set can produce a pair far from that set. In an actual analysis, marginal means and intervals must be interpreted alongside joint structure and the scientific quantity of interest.

Diagnostics, Alternatives, and Limitations

Useful diagnostics begin with the model predictions and the joint posterior, not with a correlation coefficient alone. Examine pairwise plots on meaningful parameter scales, overlay model predictions from representative joint draws, and check whether apparent ridges persist under tighter ODE solver tolerances. Compare posterior regions with parameter bounds and prior support. A ridge terminating at a boundary may reflect a constraint or prior as much as the data. If predictions change irregularly when solver tolerances are tightened, numerical error may be distorting the apparent likelihood surface.

A linear correlation summarizes only linear association on the chosen scale. A curved ridge can have weak overall correlation even though the parameters are strongly dependent. Conversely, a high correlation does not by itself establish a biological compensation mechanism. It describes the posterior under the stated model, data, and prior. Re-expressing parameters, for example using a log scale for a positive rate, can change the visual shape and numerical correlation; it does not by itself create new information in the observations.

A local covariance or Hessian approximation is compact and useful when the posterior is approximately elliptical near its center. A joint posterior plot can reveal curvature that a single ellipse misses. Profile likelihoods can describe how fit changes as one parameter is fixed and the others are optimized, but they are not posterior distributions and do not include prior weighting in the same way. Marginal intervals provide compact parameter-specific summaries, while joint plots preserve dependence. These approaches answer related but different questions; none removes uncertainty caused by weakly informative data.

Ridges can make sampling difficult because a sampler must move along a narrow, possibly bending region while avoiding directions that lead to poor fit. This can result in slow exploration or a chain that appears to remain in a small part of the posterior. Geometry alone does not diagnose convergence: sampling diagnostics and adequate exploration are still necessary. Nor does a ridge prove that the model is structurally unidentifiable. It may reflect limited observations, noise, parameter bounds, or prior information; structural identifiability concerns what can be distinguished in principle under a specified model and idealized data.

Common pitfall: “The separate credible intervals for two parameters overlap broadly, so any pair of values within them is plausible.” This is incorrect because marginal intervals do not preserve dependence. On a curved ridge, plausible values may occur only in coordinated combinations. Inspect joint uncertainty and assess predictions for parameter combinations before interpreting separate summaries.

Check Your Understanding

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

  1. For \(x(t)=A(1-e^{-kt})\), with \(x(4)=8\), does increasing \(A\) require increasing or decreasing \(k\) to keep the prediction fixed?
  2. At \(A=12\), \(k=0.274653\), and \(t=4\), calculate \(\partial x/\partial A\) and \(\partial x/\partial k\). What local trade-off keeps \(x\) approximately constant?
  3. Why can separate marginal credible intervals fail to describe plausible joint parameter combinations?
  4. Name two checks that can help determine whether an apparent posterior ridge is a genuine feature of the fitted model rather than a numerical artifact.

Solutions. (1) Decreasing \(k\): the equal-prediction curve is \(k(A)=-\ln(1-8/A)/4\), which decreases as \(A\) increases. (2) Since \(e^{-4k}=1/3\), the derivatives are \(2/3\) and \(16\); setting \((2/3)\Delta A+16\Delta k\approx0\) gives \(\Delta k\approx-0.04167\Delta A\). (3) Marginal intervals summarize each parameter separately and omit dependence; a pair assembled from values in both intervals can lie far from the high-density ridge. (4) Check whether the geometry persists with tighter ODE solver tolerances, and inspect joint posterior plots together with predictions from representative parameter combinations. These checks do not replace assessment of the observation model, prior, or sampling adequacy.

Clinical Biostats