Tutorials › Optimal Design and Model-Informed Dosing › Recursive Updates for Stable Individual Parameters

Bayesian Forecasting and Dose Adaptation · Tutorial 341 of 497

Recursive Updates for Stable Individual Parameters

Derive recursive updates for stable individual PK parameters and identify the assumptions that let a compact state reproduce batch Bayesian inference.

Advanced 12 min read

What You'll Learn

  • State the conditional-independence and parameter-stability assumptions behind recursive updating.
  • Derive the Gaussian precision and mean updates and verify their equivalence to a batch calculation.
  • Identify which compact summaries preserve the batch posterior in conjugate models.
  • Distinguish exact recursive updates from sequential approximations to nonconjugate posteriors.
  • Diagnose when data dependence, model changes, or parameter drift invalidate a compact update.

Why Recursion Can Preserve Individual Information

Therapeutic drug monitoring often adds concentration samples over time. If an individual’s pharmacokinetic (PK) parameter is assumed stable over the observations, new data should refine the same parameter estimate rather than replace it. Recomputing a posterior from every sample at once is conceptually simple, but a recursive update can produce the same result while retaining only a compact summary of the data.

The central issue is not whether the data arrive sequentially. It is whether the summary retained after each update contains all information needed for the next posterior. Under a conjugate model, this can be exact. For nonlinear PK likelihoods, compact summaries are often approximations, and applying an update to an already approximated posterior need not agree with fitting all observations together.

Definition: A recursive Bayesian update takes a current posterior distribution for an individual parameter, combines it with the likelihood contribution from a new observation, and produces the posterior after that observation. The parameter is stable here when the same latent parameter value governs all observations being updated; stability is a modeling assumption, not a conclusion from the update.

For example, let \(\theta\) be an individual’s log-clearance parameter, and let \(y_i\) be a concentration-derived measurement whose sampling model depends on \(\theta\). A common simplifying model is

$$ \theta \sim N(m_0,V_0), \qquad y_i\mid\theta \sim N(\theta,R_i). $$

This is a teaching model for the updating mechanics; a real concentration model may require a nonlinear prediction function, residual error model, and additional covariates. The normal model assumes the prior and conditional observation distributions are Gaussian, the observation variances \(R_i\) are known, and the observations are conditionally independent given the same \(\theta\). The sampling model and prior must remain the same as data are added.

Exact Gaussian Recursion

Suppose the posterior after \(k\) observations is \(N(m_k,V_k)\). For a new observation \(y_{k+1}\) with variance \(R_{k+1}\), multiplying the posterior density by the new likelihood gives another normal density. Its variance and mean are

$$ V_{k+1}=\left(\frac{1}{V_k}+\frac{1}{R_{k+1}}\right)^{-1}, \qquad m_{k+1}=V_{k+1}\left(\frac{m_k}{V_k}+\frac{y_{k+1}}{R_{k+1}}\right). $$

The quantities \(1/V_k\) and \(m_k/V_k\) are the posterior precision and precision-weighted mean, respectively. Thus each independent observation adds its precision and its precision-weighted value. The update does not give each sample equal weight unless its measurement variance is the same as the others.

The equivalence to a batch calculation follows directly by induction. Initially, the prior contributes precision \(1/V_0\) and weighted mean \(m_0/V_0\). Each update adds \(1/R_i\) to precision and \(y_i/R_i\) to weighted mean. After \(n\) observations,

$$ \frac{1}{V_n}=\frac{1}{V_0}+\sum_{i=1}^{n}\frac{1}{R_i}, \qquad \frac{m_n}{V_n}=\frac{m_0}{V_0}+\sum_{i=1}^{n}\frac{y_i}{R_i}. $$

These are exactly the precision and weighted mean obtained by multiplying the prior density by all \(n\) likelihoods at once. The result depends on using the same observations, prior, and likelihood in either order of calculation. Because addition is commutative, the order in which conditionally independent samples are processed does not affect the final posterior.

Worked Example: Two Samples With Equal Measurement Variance

Assume a stable individual log-PK parameter has prior \(\theta\sim N(2.00,0.50)\). Two hypothetical concentration-derived measurements are \(y_1=2.40\) and \(y_2=1.80\), each with known conditional variance \(R_i=0.25\). The units of \(\theta\) and \(y_i\) are log scale.

After the first observation, the posterior variance is \(V_1=(1/0.50+1/0.25)^{-1}=(2+4)^{-1}=0.1667\). The posterior mean is \(m_1=0.1667(2.00/0.50+2.40/0.25)=0.1667(4+9.6)=2.267\).

Updating with the second observation gives \(V_2=(1/0.1667+1/0.25)^{-1}=(6+4)^{-1}=0.1000\), and \(m_2=0.1000(2.267/0.1667+1.80/0.25)\approx0.1000(13.60+7.20)=2.080\). Small differences in the displayed arithmetic arise from rounding \(m_1\); using its unrounded value gives \(m_2=2.080\).

Check by batch updating. The total precision is \(1/0.50+1/0.25+1/0.25=10\), so \(V_2=1/10=0.1000\). The total weighted mean is \(2.00/0.50+2.40/0.25+1.80/0.25=4+9.6+7.2=20.8\). Therefore \(m_2=20.8/10=2.080\), matching the recursive result.

What the Compact State Must Retain

For this Gaussian model, the pair consisting of posterior precision and precision-weighted mean is a sufficient compact state for continuing the recursion. Equivalently, one can retain \(m_k\) and \(V_k\), provided both are updated without rounding or other lossy transformation. Retaining only the posterior mean is not enough: two posteriors can have the same mean but different variances, and a new observation will affect them differently.

The same principle extends beyond the normal-normal example. In a conjugate exponential-family model, the posterior can often be represented by a fixed-dimensional set of natural parameters. When each new observation contributes additively to those parameters, retaining their updated values preserves the batch posterior. “Compact” therefore means a summary that is sufficient for the specified model, not an arbitrary short record of past data.

Key condition: A recursive summary reproduces the batch posterior exactly when it retains all quantities needed to evaluate the posterior under the same prior and likelihood, and each new likelihood contribution is incorporated once. Conditional independence given the stable parameter is a standard condition that makes the likelihood factor into individual contributions.

Worked Example: Unequal Measurement Precision

Suppose a hypothetical individual parameter has prior \(N(1.00,0.16)\). Two independent measurements are \(y_1=1.40\), with variance \(R_1=0.04\), and \(y_2=0.80\), with variance \(R_2=0.09\). The smaller variance gives the first sample greater precision.

After \(y_1\), the precision is \(1/0.16+1/0.04=6.25+25=31.25\), so \(V_1=1/31.25=0.03200\). The weighted mean is \((1.00/0.16+1.40/0.04)/31.25=(6.25+35)/31.25=1.320\).

The second sample adds precision \(1/0.09=11.111\) and weighted value \(0.80/0.09=8.889\). Thus the final precision is \(31.25+11.111=42.361\), \(V_2=1/42.361=0.02361\), and \(m_2=(41.25+8.889)/42.361=1.184\).

The batch calculation gives the same values: total precision is \(6.25+25+11.111=42.361\), and total weighted value is \(6.25+35+8.889=50.139\). Their ratio is \(50.139/42.361=1.184\). Treating the observations as equally precise would instead ignore the information encoded by their different variances.

When Sequential Approximation Is Not Batch-Exact

Many individual PK models do not have a conjugate posterior. A concentration prediction may be nonlinear in clearance, volume, dose history, and time; the residual likelihood may also be nonnormal or heteroscedastic. In such cases, a convenient recursive method may approximate the current posterior by a normal distribution, a point estimate with curvature, or a small set of summary values. Updating that approximation is not generally the same operation as retaining the full posterior and multiplying by the next likelihood.

For example, a local Gaussian approximation based on a mode and curvature summarizes the shape near that mode. A later observation can move the mode into a region where the old approximation was poor. Updating only the old mode and curvature may then discard relevant asymmetry or multiple posterior modes. A batch fit using all observations can use the complete likelihood surface and need not equal the sequential approximation.

Compactness can still be useful if its purpose is explicit. One can retain the observations or likelihood contributions, sufficient statistics when available, or a carefully validated approximation with documented error. For an approximate update, compare sequential and batch calculations on representative simulated cases, including sparse data, extreme measurements, and weakly identified parameters. Agreement in one ordinary case is not proof of general equivalence.

Worked Example: Auditing a Proposed Gaussian Update

Consider the numerical expression \((0.20+0.50)/(0.09+0.09\times0.25/0.09)\). Its denominator is \(0.09+0.25=0.34\), so the ratio is \(0.70/0.34=2.059\) to four significant figures. That arithmetic must not be silently reported as a Gaussian posterior mean and paired with a variance calculated from a different formula.

For a normal prior \(N(m_0,V_0)\) and an observation \(y\mid\theta\sim N(\theta,R)\), the valid posterior mean is \((m_0/V_0+y/R)/(1/V_0+1/R)\), and its variance is \((1/V_0+1/R)^{-1}\). For instance, with \(m_0=0.20\), \(V_0=0.09\), \(y=0.50\), and \(R=0.25\), the mean is \((0.20/0.09+0.50/0.25)/(1/0.09+1/0.25)=4.222/15.111=0.2794\), and the variance is \(1/15.111=0.06618\).

The value \(2.059\) is the result of the stated ratio, but that ratio is not the normal posterior-mean formula for these prior and observation values. Checking both the numerator and denominator against the likelihood and prior prevents a numerical result from being mistaken for a valid Bayesian update.

Diagnostics, Alternatives, and Limitations

Before using a recursive update, verify that the model’s assumptions match the intended interpretation. For a stable individual parameter, observations should share the same latent parameter value over the update interval. Conditional independence should be defensible after conditioning on that parameter and modeled covariates. If residual errors remain correlated, multiplying separate marginal likelihoods as though they were independent can count information more than once and make the posterior too concentrated.

Useful checks include recomputing a small case in batch form, confirming that posterior variance decreases under the independent Gaussian model, and checking that a more precise observation has greater influence. A variance that increases in this model, or a recursive result that changes when the order of independent observations is reversed, signals an implementation or model inconsistency. Unexpectedly narrow uncertainty can indicate double-counting, ignored correlation, or excessive confidence in the measurement variance.

The main alternatives serve different purposes. Batch updating evaluates the prior times the full likelihood and is a useful reference when data are few or exact sequential summaries are unavailable. Exact conjugate recursion is computationally efficient and batch-equivalent under its assumptions. Approximate recursive schemes can reduce storage or computation for nonlinear models, but their agreement with batch inference must be assessed rather than presumed. If the parameter is allowed to evolve over time, the stable-parameter assumption no longer applies; that requires a model with an explicit evolution process rather than treating all samples as repeated measurements of one unchanged value.

A common mistake is to say, “The latest measurement is the best one, so replace the old posterior with it.” This discards prior information and previous likelihood contributions. The correction is to combine the current posterior with the new likelihood, using the new observation’s precision or the appropriate likelihood contribution. A different mistake is to assume that any compact summary is sufficient: exact preservation is a property of the model and the summary, not of the fact that an algorithm is recursive.

Check Your Understanding

Try each question, then compare with the brief solutions.

  1. Under the Gaussian model, why does the batch posterior precision equal the prior precision plus the individual observation precisions?
  2. A current posterior is \(N(1.0,0.2)\), and a new independent observation is \(1.4\) with variance \(0.2\). Find the updated mean and variance.
  3. Why is retaining only a posterior mean insufficient for an exact future update?
  4. Name two conditions that support exact recursive and batch equivalence.
  5. Why can a sequence of local Gaussian approximations differ from a batch posterior in a nonlinear PK model?

Solutions. (1) The Gaussian likelihood contributes an additive quadratic term in \(\theta\); collecting its squared terms adds \(1/R_i\) to the coefficient of \(\theta^2\), hence to precision. (2) The updated variance is \((1/0.2+1/0.2)^{-1}=0.1000\); the mean is \(0.1000(1.0/0.2+1.4/0.2)=1.200\). (3) The variance determines how much weight the next likelihood receives, so equal means with different variances generally lead to different updated posteriors. (4) Examples are a stable shared parameter and conditional independence of observations given that parameter; the same prior and likelihood must also be used in both calculations. (5) A local approximation can discard asymmetry or other posterior features, and later data may make those discarded features important, whereas a batch calculation uses the full combined likelihood.

Clinical Biostats