Tutorials › Physiologically-Based Pharmacokinetics (PBPK) › Plausibility-Constrained Sampling of Parameter Sets

Biological Plausibility and Parameter Uncertainty · Tutorial 178 of 799

Plausibility-Constrained Sampling of Parameter Sets

Learn to encode physiological constraints in parameter sampling and assess how joint, conditional, and rejection methods affect the uncertainty distribution.

Advanced 10 min read

What You'll Learn

  • Distinguish a hard physiological constraint from a plausible range or a dependence assumption.
  • Define constrained parameter sampling as a target joint distribution restricted to an admissible set.
  • Calculate the acceptance rate and changed marginal distribution under rejection sampling.
  • Use conditional sampling without unintentionally changing the intended joint distribution.
  • Construct a jointly constrained set of tissue fractions with a Dirichlet distribution.
  • Diagnose inefficient sampling and unintended distortions in parameter uncertainty.

Why constrain sampled parameter sets?

A PBPK uncertainty analysis samples values for multiple inputs and evaluates the model for each set. Sampling each parameter from a marginal distribution can produce combinations that are individually in range but physiologically impossible together. For example, two tissue fractions may each be below one while their sum exceeds the fraction of body mass available to those tissues. Such sets are not merely unusual values: they violate a relationship that the model is meant to respect.

The earlier material on sampling parameter sets and representing correlated parameter uncertainty establishes why the joint distribution matters. Here the key question is how to sample while also enforcing a known constraint, and what distribution the resulting samples represent. A constraint should be stated in terms of the quantities and physiology it governs; an arbitrary cutoff can silently replace the intended uncertainty model with a different one.

Definition: Let \(\boldsymbol{\theta}\) be the vector of uncertain PBPK parameters, with a specified joint probability distribution \(p(\boldsymbol{\theta})\). Let \(\mathcal{C}\) be the set of parameter vectors satisfying the chosen physiological constraints. Plausibility-constrained sampling targets a distribution supported only on \(\mathcal{C}\). If the intended target is the original distribution conditional on the constraints, its density is \(p(\boldsymbol{\theta}\mid\boldsymbol{\theta}\in\mathcal{C}) = p(\boldsymbol{\theta})I(\boldsymbol{\theta}\in\mathcal{C})/P(\boldsymbol{\theta}\in\mathcal{C})\), where \(I\) is one when the constraint is met and zero otherwise, and the constraint set must have positive probability under \(p\).

This definition makes an important distinction. A hard constraint specifies which combinations are impossible or inadmissible under the model definition. A soft plausibility judgment, such as “this combination seems unlikely,” usually belongs in the joint distribution or in a sensitivity analysis, rather than being turned into a hard rejection rule without justification. Constraints may encode nonnegativity, a sum limit, a conservation relationship, or a known algebraic dependence. They do not by themselves establish that the remaining values or their probabilities are scientifically well supported.

Three ways to enforce constraints

There are three common strategies. Their results are not interchangeable unless they are constructed to target the same joint distribution.

  • Joint distribution: Specify a distribution whose support already lies inside the admissible set. This can represent dependence directly and can be efficient, but requires defensible assumptions about the joint distribution.
  • Conditional sampling: Sample from a specified distribution conditional on meeting the constraint. This is useful when the conditional distribution can be sampled correctly. Conditioning changes probabilities; it is not simply “sample one parameter, then truncate another” in every model.
  • Rejection sampling: Draw from a proposal distribution and retain only draws satisfying the constraint. If the proposal is the intended unconstrained distribution, the accepted draws follow that distribution conditional on acceptance. Rejection is straightforward but can be inefficient when few draws pass.

If the constraint set has probability \(a=P(\boldsymbol{\theta}\in\mathcal{C})\) under the proposal, then the expected number of accepted draws from \(M\) independent proposals is \(Ma\). The expected number of proposals per accepted draw is \(1/a\). This calculation concerns computational efficiency; a high acceptance rate does not prove that the chosen proposal or constraint is scientifically appropriate.

Worked Example: Rejecting Incompatible Tissue Fractions

Suppose, for illustration, two uncertain tissue fractions \(f_1\) and \(f_2\) are independently proposed from \(U(0,0.8)\). These hypothetical fractions must satisfy \(f_1+f_2\leq 1\), with the remaining fraction assigned to other tissues. Find the rejection acceptance rate and the mean accepted value of \(f_1\).

The proposal density is constant on a square of side \(0.8\), with area \(0.8^2=0.64\). The inadmissible region is the right triangle above \(f_1+f_2=1\), with leg lengths \(0.8-0.2=0.6\). Its area is \(\tfrac12(0.6)(0.6)=0.18\). Therefore,

$$ P(f_1+f_2\leq 1)=\frac{0.64-0.18}{0.64} =\frac{0.46}{0.64}=0.71875. $$

About 71.9% of proposals are retained, so generating 1,000 accepted draws requires about \(1000/0.71875=1391\) proposals on average. To calculate the accepted mean of \(f_1\), use the area-weighted integral over the admissible region. For a fixed \(f_1=x\), the allowed length for \(f_2\) is \(0.8\) when \(0\leq x\leq0.2\), and \(1-x\) when \(0.2<x\leq0.8\). The common uniform density cancels in the ratio:

$$ E(f_1\mid f_1+f_2\leq1) =\frac{\int_0^{0.2}0.8x\,dx+\int_{0.2}^{0.8}x(1-x)\,dx}{0.46} =\frac{0.016+0.132}{0.46} =0.3217. $$

The unconstrained mean is \(0.4\), whereas the mean among accepted draws is approximately \(0.322\). Rejection has not merely removed invalid sets: conditioning has shifted the marginal distribution toward smaller fractions. The accepted draws are appropriate only if the intended target is the original independent proposal conditional on this sum constraint.

Conditional sampling must preserve the target

A tempting alternative is to draw \(f_1\) from its original distribution, then draw \(f_2\) from its distribution truncated to values that satisfy the constraint. This always generates admissible pairs, but in general it does not generate the original joint distribution conditional on admissibility. For that conditional distribution, the probability of drawing \(f_1=x\) must also account for how much probability of \(f_2\) remains admissible at that \(x\).

For a joint density \(p(x,y)\) and constraint \(C\), the conditional density of the first component is proportional to \(p_X(x)P(C\mid X=x)\). Once \(x\) is drawn from this reweighted density, draw \(y\) from its conditional distribution given \(x\) and \(C\). This factorization follows directly from the definition of conditional probability:

$$ p(x\mid C)=\frac{p_X(x)P(C\mid X=x)}{P(C)},\qquad p(y\mid x,C)=\frac{p(x,y)I((x,y)\in C)}{\int p(x,u)I((x,u)\in C)\,du}. $$

The following example uses the same simple proposal as above, so the weighting can be seen explicitly. It also shows why an algorithm can obey a constraint while still targetting the wrong distribution.

Worked Example: Correct Conditional Sampling for a Sum Constraint

Continue with independent \(f_1,f_2\sim U(0,0.8)\) and \(C=\{f_1+f_2\leq1\}\). For \(x=f_1\), the admissible length for \(f_2\) is \(L(x)=0.8\) for \(0\leq x\leq0.2\), and \(L(x)=1-x\) for \(0.2<x\leq0.8\). The correct conditional density for \(f_1\) is proportional to this length. Since the integral of \(L(x)\) is the admissible area \(0.46\), the density is \(L(x)/0.46\).

For example, the probability that \(f_1\leq0.2\) under the correctly conditioned distribution is

$$ P(f_1\leq0.2\mid C)=\frac{\int_0^{0.2}0.8\,dx}{0.46} =\frac{0.16}{0.46}=0.3478. $$

If instead \(f_1\) is drawn uniformly from \((0,0.8)\) and only \(f_2\) is truncated after that draw, the probability \(f_1\leq0.2\) remains \(0.2/0.8=0.25\). The result is different, even though all generated pairs satisfy the sum constraint. To sample the conditional target correctly, first draw \(f_1\) with density \(L(x)/0.46\), then draw \(f_2\sim U(0,L(x))\). This produces joint density \(1/0.46\) throughout the admissible region, which is exactly the original uniform joint density conditioned on \(C\).

Build relationships into a joint distribution

When parameters form a composition, a joint distribution can be more natural than independent marginal distributions followed by repair. Consider \(K\) nonnegative fractions \(f_1,\ldots,f_K\) that together exhaust a defined whole, so \(\sum_{k=1}^K f_k=1\). A Dirichlet distribution is supported on this simplex and therefore respects nonnegativity and the exact sum by construction. Its parameters must still be chosen to reflect the intended uncertainty and dependence; satisfying the sum alone does not guarantee that its marginal shapes are suitable.

Definition: If \((f_1,\ldots,f_K)\sim\mathrm{Dirichlet}(\alpha_1,\ldots,\alpha_K)\), where each \(\alpha_k>0\), then \(f_k\geq0\) and \(\sum_k f_k=1\). Its component means are \(E(f_k)=\alpha_k/\alpha_0\), where \(\alpha_0=\sum_k\alpha_k\). One construction draws independent \(G_k\sim\mathrm{Gamma}(\alpha_k,1)\) and sets \(f_k=G_k/\sum_jG_j\).

An exact sum constraint is not appropriate if the modeled fractions cover only part of a total. In that case, include a residual component for the remainder, or use a distribution and constraint that represent the actual accounting relationship. Forcing a set of partial tissue fractions to sum to one would be a modeling error, even though the resulting samples are mathematically valid.

Worked Example: Sampling Fractions on a Simplex

Suppose three hypothetical fractions are intended to partition a defined total. Use a Dirichlet distribution with parameters \((2,3,5)\). Its total concentration is \(\alpha_0=2+3+5=10\), so the component means are \(0.2\), \(0.3\), and \(0.5\). For one illustrative gamma draw, let \(G_1=1.6\), \(G_2=2.4\), and \(G_3=4.0\), all in arbitrary common gamma units. Their sum is \(8.0\), giving

$$ (f_1,f_2,f_3)=\left(\frac{1.6}{8.0},\frac{2.4}{8.0},\frac{4.0}{8.0}\right) =(0.20,0.30,0.50). $$

The sampled fractions are nonnegative and sum to \(1.00\), as required. This single draw illustrates the construction; it does not establish that the chosen Dirichlet parameters are empirically justified. In particular, the concentration controls dispersion around the mean composition, so different concentration choices can preserve the same means but imply different uncertainty.

Check the target, not only the constraint

After implementing a constraint, inspect both whether every sample is admissible and whether the retained or generated values have the intended distribution. Useful checks include the acceptance rate, the number of failed draws, marginal summaries before and after conditioning, pairwise relationships, and whether boundary values accumulate unexpectedly. For a joint construction, verify the constraint numerically for every sampled set and check that the implied marginal means and variability agree with the specification.

When the acceptance rate is very low, rejection may be computationally wasteful and may make a finite simulation vulnerable to too few retained draws. A direct joint model or a correctly derived conditional sampler may be preferable. Conversely, a convenient joint distribution should not be selected only because it enforces a constraint: compare its implied dependence and marginal behavior with the scientific information available.

A common mistake is to sample all parameters independently, discard invalid combinations, and then report the original marginal distributions as if they still described the accepted sets. The accepted distribution is conditional on passing the rule, so its marginals and dependence can change. The correction is to define the target distribution explicitly, state whether the constraint is part of that target or a conditioning event, and summarize the actual distribution used for model runs.

Another failure mode is repairing a draw by changing one value after a constraint violation—for example, reducing \(f_2\) until \(f_1+f_2=1\). This deterministic repair can create a new, often unexamined dependence and concentrate samples on a boundary. Unless the repair transformation is itself the specified sampling model, it should not be treated as equivalent to conditioning or to sampling from a joint distribution.

1
State the physiological relationship.
Write the constraint mathematically and identify whether it is an exact relationship, a bound, or a softer plausibility judgment.
2
Specify the target joint distribution.
Record the marginal assumptions and dependence structure before choosing an algorithm; do not let the sampling convenience define the scientific target implicitly.
3
Choose and verify a sampler.
Use a joint construction, correctly weighted conditional sampling, or rejection from a stated proposal. Check admissibility and compare the resulting summaries with the intended target.

Limitations and interpretation

A plausible parameter set is not necessarily a probable one, and a mathematically constrained sample is not proof that its input distributions are well calibrated. The constraint only removes or excludes combinations according to its definition. If the assumed constraint is too strict, valid uncertainty may be omitted; if it is incomplete, implausible combinations may remain. Report the constraint, the distribution before conditioning, the sampling method, the acceptance rate when relevant, and summaries of the resulting parameter sets.

Plausibility-constrained sampling is most useful when it makes the relationship between uncertain inputs explicit and preserves the distinction between uncertainty about parameters and variability in individuals. It should not be used to conceal a conflict among inputs or to force model outputs into an expected range. The resulting PBPK predictions depend on both the model and the constrained distribution chosen to represent its uncertain inputs.

Check Your Understanding

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

  1. If a proposal accepts 40% of draws, how many proposals are expected, on average, to obtain 500 accepted draws?
  2. Why can drawing \(f_1\) from its original marginal and then truncating \(f_2\) produce the wrong distribution conditional on \(f_1+f_2\leq1\)?
  3. Three fractions must sum to one. What property makes a Dirichlet distribution a suitable candidate, and what does that property fail to establish?
  4. Why can reducing one sampled parameter to repair a violated constraint change the uncertainty model?

Solutions. (1) The expected proposal count is \(500/0.40=1250\). (2) The admissible probability for \(f_2\) depends on \(f_1\), so the conditional distribution of \(f_1\) must be weighted by \(P(C\mid f_1)\); retaining its original marginal omits that weighting. (3) The Dirichlet distribution has nonnegative components summing to one, but that support property does not justify its parameters, marginal shapes, or scientific fit. (4) The repair maps original draws to new values and can induce dependence or boundary concentration; it is not generally equivalent to sampling from the intended conditional distribution.