Tutorials › Quantitative Systems Pharmacology (QSP) › Blocked MCMC for Correlated Mechanistic Parameters

Bayesian Calibration and Uncertainty Quantification · Tutorial 644 of 799

Blocked MCMC for Correlated Mechanistic Parameters

Learn to design and evaluate Metropolis–Hastings parameter blocks that move along posterior dependence in a QSP model.

Advanced 10 min read

What You'll Learn

  • Define a Metropolis–Hastings update for a block conditional on the current values of other parameters.
  • Use posterior correlations and mechanistic coupling to propose blocks for binding and turnover parameters.
  • Calculate acceptance probabilities for symmetric and asymmetric block proposals.
  • Compare joint and single-parameter moves along a correlated posterior ridge.
  • Recognize when block size, scaling, or proposal orientation is causing poor exploration.

Why Update Correlated Parameters Together?

In QSP calibration, distinct parameter combinations can produce similar predicted biomarker trajectories. For example, a change in binding affinity may be offset by a change in target turnover, leaving much of the model output nearly unchanged. The posterior can then have a narrow, tilted region of high density: moving one parameter alone may leave that region, even though moving several parameters together along it is plausible.

Metropolis–Hastings can update one parameter at a time or propose changes to several parameters jointly. A block update changes a selected group of coordinates in one proposal while holding the remaining coordinates fixed. Its purpose is not simply to update more parameters at once; a well-designed block can move in directions that respect posterior dependence.

Definition: Let \(\theta=(\theta_1,\ldots,\theta_d)\) denote the parameter vector and let \(\pi(\theta\mid y)\) be its posterior density given data \(y\). A block \(B\) is a selected subset of parameter coordinates. A block Metropolis–Hastings update proposes new values \(\theta'_B\) conditional on the current block values and the fixed complement \(\theta_{-B}\), then accepts or rejects the proposal using the Metropolis–Hastings rule.

The density used in that rule must be the posterior density in the coordinates actually sampled. If parameters are transformed, any required change-of-variables factor belongs in that density. For instance, when sampling a log parameter instead of a positive parameter, the target density must reflect the prior and transformation used in the model.

Acceptance Rule for a Block

Write the proposal density for a block as \(q(\theta'_B\mid\theta_B,\theta_{-B})\). With all coordinates outside the block fixed, the acceptance probability is

$$ \alpha(\theta,\theta')= \min\left\{1,\, \frac{\pi(\theta'\mid y)\,q(\theta_B\mid\theta'_B,\theta_{-B})} {\pi(\theta\mid y)\,q(\theta'_B\mid\theta_B,\theta_{-B})} \right\}. $$

The proposal densities in the numerator and denominator account for possible asymmetry. For a symmetric random-walk proposal, such as adding a zero-mean multivariate normal increment with a fixed covariance matrix, the forward and reverse proposal densities are equal. The acceptance probability then reduces to \(\min\{1,\pi(\theta'\mid y)/\pi(\theta\mid y)\}\). In computation, the log form is often safer: for a symmetric proposal, accept when \(\log U < \min\{0,\log\pi(\theta'\mid y)-\log\pi(\theta\mid y)\}\), where \(U\) is drawn uniformly from \((0,1)\).

A block can be updated by itself, leaving the other parameters unchanged for that step. A sequence of such updates, one block after another, is valid when each update uses its correct conditional target and Metropolis–Hastings acceptance rule. Updating blocks does not make the parameters independent; it is a way to construct transitions that can move more effectively through a dependent posterior.

Choosing Blocks From Posterior and Mechanistic Structure

A practical starting point is to examine posterior dependence from preliminary sampling or other posterior-geometry work. Correlations are useful clues, but they are not a complete description of nonlinear dependence. Mechanistic knowledge can also suggest which parameters may compensate for one another. For example, binding and target-turnover rates can jointly influence the duration and magnitude of target engagement.

Blocks should usually be small enough to propose and evaluate efficiently, but large enough to include important dependencies. A single very large block may be difficult to scale and may have low acceptance if its proposal covariance is poorly estimated. Conversely, leaving strongly coupled parameters in separate blocks can require small, cautious moves. These are design trade-offs to assess by examining proposed movement and acceptance, not rules that can be decided from parameter names alone.

Worked Example: Grouping Binding and Turnover Parameters

Suppose a hypothetical QSP calibration has four sampled log-scale coordinates: \(u\), log binding dissociation constant; \(v\), log target internalization rate; \(w\), log drug elimination rate; and \(z\), log biomarker turnover rate. A preliminary, hypothetical posterior exploration gives the following correlation matrix:

$$ \begin{array}{c|rrrr} & u & v & w & z\\ \hline u & 1.00 & 0.92 & 0.10 & 0.08\\ v & 0.92 & 1.00 & -0.05 & 0.12\\ w & 0.10 & -0.05 & 1.00 & 0.78\\ z & 0.08 & 0.12 & 0.78 & 1.00 \end{array} $$

The largest off-diagonal correlations are \(0.92\) between binding and target internalization, and \(0.78\) between drug elimination and biomarker turnover. One reasonable initial partition is therefore \(B_1=(u,v)\) and \(B_2=(w,z)\). This lets the first proposal change binding and target internalization together, and the second change elimination and biomarker turnover together.

This partition is a testable design, not a conclusion that the pairs are biologically or statistically independent. Correlations between the proposed blocks remain, and the full posterior density is still used for each acceptance decision. The choice should be revisited if the resulting chain rarely accepts, makes very small movements, or fails to explore plausible combinations.

Why Joint Proposals Can Help: A Short Derivation

Consider a standardized bivariate normal target with correlation \(\rho\). Its density, apart from a constant, is

$$ \pi(x,y)\propto \exp\left\{ -\frac{x^2-2\rho xy+y^2}{2(1-\rho^2)} \right\}. $$

Assume a symmetric random-walk proposal. At the current point \((0,0)\), compare a joint proposal to \((a,a)\) with a single-coordinate proposal to \((a,0)\). Because the proposal is symmetric, the acceptance ratio is the target density ratio. At \((a,a)\), the quadratic expression in the exponent is \(2a^2(1-\rho)\); at \((a,0)\), it is \(a^2\). Thus the log target-density changes are

$$ \log\frac{\pi(a,a)}{\pi(0,0)} =-\frac{a^2}{1+\rho}, \qquad \log\frac{\pi(a,0)}{\pi(0,0)} =-\frac{a^2}{2(1-\rho^2)}. $$

For positive \(\rho\) near one, the joint move follows the direction of dependence and incurs a smaller density penalty than the single-coordinate move of the same size. This calculation explains a possible advantage of blocking. It does not prove that every block proposal will be efficient: proposal scale, orientation, posterior shape, and computational cost still matter.

Worked Example: Comparing Joint and Single-Parameter Acceptance

For illustration, use the bivariate target above with hypothetical correlation \(\rho=0.95\), and let \(a=0.4\). From \((0,0)\), first consider the joint proposal \((0.4,0.4)\). Its log target-density ratio is

$$ -\frac{0.4^2}{1+0.95} =-\frac{0.16}{1.95} \approx -0.08205. $$

The target-density ratio is \(\exp(-0.08205)\approx 0.9212\), so the symmetric-proposal acceptance probability is \(0.9212\).

Now consider changing only the first coordinate, proposing \((0.4,0)\). Its log target-density ratio is

$$ -\frac{0.4^2}{2(1-0.95^2)} =-\frac{0.16}{0.195} \approx -0.8205. $$

The corresponding acceptance probability is \(\exp(-0.8205)\approx 0.4400\). In this particular comparison, the joint move has a higher acceptance probability because it follows the positively correlated direction. The result is illustrative, not a general performance guarantee: the comparison fixes particular proposals and does not account for how often proposals are made or how far the chain travels over time.

Computing a Block Acceptance Probability

For a symmetric block random walk, a proposal can be written as \(\theta'_B=\theta_B+\varepsilon\), with \(\varepsilon\) drawn from a multivariate distribution symmetric about zero. The proposal covariance determines the scale and orientation of the proposed changes. The next example shows the acceptance calculation directly from log posterior values.

Worked Example: Accepting or Rejecting a Two-Parameter Proposal

Suppose a hypothetical two-parameter block currently has log posterior density \(-12.4\). A symmetric block proposal changes the binding and turnover coordinates together and has log posterior density \(-12.9\). The log posterior difference is

$$ \Delta=-12.9-(-12.4)=-0.5. $$

Because the proposal is symmetric, its acceptance probability is

$$ \alpha=\min\{1,\exp(\Delta)\} =\min\{1,\exp(-0.5)\} \approx 0.6065. $$

If the hypothetical uniform draw for this step is \(U=0.40\), then \(U<0.6065\), so the block proposal is accepted. If instead \(U=0.80\), it is rejected and the chain remains at its current parameter values. A lower posterior density does not make acceptance impossible; it makes acceptance less likely according to the specified rule.

If this same proposal had an asymmetric proposal density, the log acceptance calculation would also include \(\log q(\theta_B\mid\theta'_B,\theta_{-B})-\log q(\theta'_B\mid\theta_B,\theta_{-B})\). Omitting that correction can give the wrong stationary distribution.

Diagnostics, Alternatives, and Limitations

A useful block design should produce substantive movement in the parameters it updates, not merely a high acceptance rate. In practice, inspect proposals and accepted states on the sampled parameter scale, and check whether paired parameters move together in the expected directions. A very low acceptance rate may indicate proposals that are too large, poorly oriented, or incompatible with the target’s shape. A very high acceptance rate accompanied by tiny changes can indicate proposals that are too conservative. Neither rate alone establishes that the chain explores the posterior adequately.

Single-parameter updates are a useful alternative when posterior dependence is weak, when parameters are easy to update separately, or when estimating a joint proposal covariance is impractical. They are also easier to implement and can isolate which coordinate causes frequent rejections. Their disadvantage is that, in a strongly correlated posterior, useful movement may require many small coordinate changes.

Joint blocks can address that problem, but introduce their own limitations. As the block grows, the proposal covariance becomes harder to estimate and scale, and a poor proposal can change several parameters in an implausible combination. Very strong nonlinear dependence may not be captured by a fixed covariance matrix. Blocks also do not repair structural non-identifiability or make a poorly specified likelihood informative. They are a proposal design choice, not a substitute for examining the model and the information in the data.

  • Check proposal orientation. If accepted proposals repeatedly move away from the observed posterior dependence, reconsider the covariance or the block membership.
  • Check parameter scaling. Coordinates with very different scales can make a shared proposal step inappropriate; choose scales in the coordinates being sampled.
  • Check block size. If joint proposals are frequently rejected, test whether a smaller block or a better-scaled covariance gives more useful movement.
  • Compare movement, not acceptance alone. A proposal can be accepted often but make negligible changes, or be accepted less often while making useful moves.
Key takeaway: Group parameters when posterior dependence makes coordinated changes plausible. Use the full Metropolis–Hastings ratio, assess proposal scale and orientation, and compare blocks with single-coordinate updates by the movement they achieve—not by acceptance rate alone.

Check Your Understanding

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

  1. A symmetric block proposal has log posterior density \(-8.2\) at the proposed point and \(-8.0\) at the current point. What is its acceptance probability?
  2. Why might a joint update of positively correlated binding and turnover parameters be more effective than changing either parameter alone?
  3. A block proposal is asymmetric. Which additional terms must be included in its acceptance ratio?
  4. A sampler has a high acceptance rate, but accepted parameter values change only slightly at each step. What should be investigated?
  5. Does placing two parameters in the same block mean that they are independent of parameters outside the block? Explain.

Solutions. (1) The log posterior difference is \(-8.2-(-8.0)=-0.2\), so \(\alpha=\min\{1,\exp(-0.2)\}\approx 0.8187\). (2) A coordinated move can follow the tilted region of high posterior density, avoiding some of the density loss caused by changing one coordinate while holding its correlated partner fixed. (3) Include the reverse proposal density divided by the forward proposal density, \(q(\theta_B\mid\theta'_B,\theta_{-B})/q(\theta'_B\mid\theta_B,\theta_{-B})\), as well as the posterior-density ratio. (4) Investigate whether the proposal scale is too small; acceptance alone does not show that useful movement is occurring. (5) No. Blocking specifies which coordinates change together in a transition. Other parameters can remain dependent in the full posterior.

Clinical Biostats