Tutorials › Pharmacometric Workflows and Reproducible Modeling › Screening Implausible Parameter Draws

Simulation Pipelines · Tutorial 243 of 399

Screening Implausible Parameter Draws

Learn to screen pharmacometric parameter draws with explicit scientific and computational checks while documenting the consequences of excluding them.

Advanced 12 min read

What You'll Learn

  • Distinguish invalid parameter values, implausible predictions, and numerical failures.
  • Define screening criteria before examining simulation results.
  • Apply vector-level checks to a hypothetical pharmacokinetic model.
  • Calculate how rejection changes retained draws and their summaries.
  • Compare rejection with transformation, flagging, and truncation.
  • Record screening decisions so the resulting uncertainty is interpretable and reproducible.

Why Screen Parameter Draws?

A parameter draw can be mathematically sampleable yet unsuitable for the intended simulation. A draw might assign a negative value to clearance, produce a prediction outside a scientifically defensible range, or cause the model to return a non-finite result. Screening is the explicit process of detecting and handling such cases. Its purpose is not to make an inconvenient simulation look reasonable; it is to identify what the draw implies and make any exclusion rule visible.

A crucial distinction is whether a draw is invalid under the model or implementation, or merely implausible for the scientific question. For example, a negative clearance is incompatible with the usual interpretation of clearance in a standard pharmacokinetic model. A very high but positive clearance might instead be unusual under a particular fitted model or target population. The latter cannot be rejected just because its prediction is surprising: the rule needs a scientific justification tied to the intended use.

The earlier material on posterior draws and parameter uncertainty provides the sampled parameter vectors to be evaluated. Screening acts on those vectors and their implications. It does not by itself provide a new source of uncertainty or establish that the retained draws represent the original uncertainty without change.

Definition: A screening rule is a pre-specified, reproducible criterion that classifies a sampled parameter vector as retained, rejected, or flagged for review. A rule may check parameter-domain requirements, model execution, or scientifically justified behavior of model predictions. Truncation means retaining draws only when they fall in a specified subset of parameter space; it changes the distribution represented by the retained draws unless that subset already has probability one under the intended distribution.

Specify What Counts as a Failure

A useful screening plan separates checks into layers. First, check whether parameter values satisfy the model's mathematical domain: for example, positive clearance and volume in a standard one-compartment model. Second, check whether model execution succeeded: outputs should be finite, and any required state variables should obey the model's structural constraints. Third, evaluate scientific plausibility using criteria appropriate to the intended scenario, such as a justified prediction range at a specified time. A draw that fails one layer should not be described as failing another.

The rules should be chosen before reviewing which draws pass. Record the parameterization, units, model version, simulation settings, numerical tolerances, each criterion, and the disposition of every draw. If a prediction-based bound is used, state its endpoint, time, scenario, and scientific rationale. A bound is not universal merely because it is convenient. Also retain the original draws and a record of rejected ones; otherwise, the screening decision cannot be audited or its effect on uncertainty assessed.

Checks should usually apply to the whole parameter vector. A combination of individually plausible values may imply implausible behavior, particularly when the model is nonlinear. Conversely, screening each component separately can destroy the dependence structure represented by joint draws. When one criterion fails, retain the original vector in the audit record rather than replacing its failing component with a boundary value.

A Prediction-Based Check in a Simple Model

For a transparent illustration, suppose a hypothetical model describes an instantaneous intravenous bolus in a one-compartment system with first-order elimination. Let Dose be the administered amount, \(V\) the volume of distribution, and \(CL\) clearance. Under these assumptions, concentration at time \(t\) is:

$$ C(t)=\frac{\mathrm{Dose}}{V}\exp\left(-\frac{CL}{V}t\right). $$

Here Dose is in mg, \(V\) in L, \(CL\) in L/h, \(t\) in h, and \(C(t)\) in mg/L. The formula assumes instantaneous distribution, a constant volume, and first-order elimination; it is an illustration of screening, not a general concentration model. For this hypothetical screening exercise, suppose the model owner has specified component bounds \(1 \leq CL \leq 10\) L/h and \(10 \leq V \leq 80\) L, and a scenario-specific check that \(C(24)\) must be between 0.05 and 2.00 mg/L. Those limits are stipulated for the example and should not be taken as clinical standards.

Worked Example: Screening Four Hypothetical Parameter Vectors

Consider a hypothetical 100 mg bolus and four sampled vectors. Apply the stated component and 24-hour concentration rules. A vector is retained only if it passes all three checks.

DrawCL (L/h)V (L)
A440
B810
C-130
D2100

Draw A. Both components meet their bounds. The prediction is \[ C(24)=\frac{100}{40}\exp\left(-\frac{4}{40}\times24\right) =2.5\exp(-2.4) \approx 0.2268\ \mathrm{mg/L}. \] This is between 0.05 and 2.00 mg/L, so draw A is retained.

Draw B. Both components meet their bounds, but its predicted concentration is \[ C(24)=\frac{100}{10}\exp\left(-\frac{8}{10}\times24\right) =10\exp(-19.2) \approx 4.587\times10^{-8}\ \mathrm{mg/L}. \] This falls below the stipulated lower prediction bound. Draw B is rejected under the example's stated rule, with the reason recorded as a failed prediction check, not a failed parameter-domain check.

Draw C. Its clearance is \(-1\) L/h, outside the specified component bounds and incompatible with the intended clearance interpretation. It fails before any concentration prediction is needed. Record it as a domain failure; do not silently change its clearance to a positive number.

Draw D. Its volume, 100 L, exceeds the specified upper bound of 80 L. It fails the component check. It is not necessary to use its prediction to justify rejection, though a diagnostic report could include that prediction as supplementary information.

Of these four hypothetical vectors, one is retained and three are rejected, for an acceptance fraction of \(1/4=0.25\). This fraction describes this small set only; it is not an estimate of a general acceptance rate.

Why Rejection Changes the Distribution

The effect of rejection can be stated precisely. Let \(\theta\) denote a random parameter vector with density \(f(\theta)\), and let \(A\) be the set that passes the screening rule. If draws are repeatedly generated from \(f\) and only those in \(A\) are kept, the retained draws have the conditional density:

$$ f(\theta\mid \theta\in A) = \frac{f(\theta)\,\mathbf{1}(\theta\in A)}{P(\theta\in A)}, \qquad P(\theta\in A)>0, $$

where \(\mathbf{1}(\theta\in A)\) equals 1 inside \(A\) and 0 outside. This follows from the definition of a conditional density: the joint density of \(\theta\) and the event \(\theta\in A\) is \(f(\theta)\mathbf{1}(\theta\in A)\); dividing by the event probability normalizes the density over the retained region. Thus, unless the rule excludes only impossible or erroneous draws that were never part of the intended distribution, rejection represents a conditional distribution, not the original one. In a Bayesian setting, rejecting posterior draws can be interpreted as conditioning on the additional restriction, but that is a change in the inferential target and needs justification.

Worked Example: Quantifying the Effect of a Cutoff

Suppose five hypothetical draws of clearance, in L/h, are \(1.8,\ 2.1,\ 2.5,\ 4.0,\ 11.0\). For illustration, apply a pre-specified upper cutoff of 8 L/h, retaining values from 0 to 8 L/h. The cutoff is assumed to have a scientific rationale for this hypothetical analysis.

The original sample mean is \[ \bar{x}=\frac{1.8+2.1+2.5+4.0+11.0}{5} =\frac{21.4}{5}=4.28\ \mathrm{L/h}. \] The original sample standard deviation is \[ s=\sqrt{\frac{59.308}{5-1}} =\sqrt{14.827} \approx 3.851\ \mathrm{L/h}, \] where 59.308 is the sum of squared deviations from 4.28.

The 11.0 L/h draw fails the cutoff, leaving four draws. Their mean is \[ \bar{x}_{\mathrm{retained}}=\frac{1.8+2.1+2.5+4.0}{4} =\frac{10.4}{4}=2.600\ \mathrm{L/h}. \] Their sample standard deviation is \[ s_{\mathrm{retained}} =\sqrt{\frac{(1.8-2.6)^2+(2.1-2.6)^2+(2.5-2.6)^2+(4.0-2.6)^2}{3}} =\sqrt{\frac{2.86}{3}} \approx 0.9764\ \mathrm{L/h}. \] The retained fraction is \(4/5=0.80\). In this small illustrative sample, both the mean and standard deviation change substantially. The retained mean and spread summarize the retained values, not the original set of draws. In a real simulation, the number and characteristics of draws rejected should be reported alongside the retained results.

Diagnostics and Alternatives

A screening procedure needs diagnostics of its own. Report the fraction retained and tabulate rejection reasons; a single total can conceal whether most failures arose from a parameter-domain check, a numerical issue, or a scientific prediction rule. Inspect the distribution of rejected and retained draws, the locations of failures in parameter space, and whether failures cluster in combinations of parameters. For prediction-based screening, examine which times, scenarios, and outputs trigger the rule. A sharp change in conclusions under small, defensible changes to a cutoff is evidence that results depend strongly on the screening choice.

Unexpectedly frequent numerical failures may indicate an implementation problem rather than implausible parameter uncertainty. Check input units, parameter mapping, initial conditions, solver settings, and model execution. A non-finite result should be diagnosed and recorded; it should not automatically be called scientifically impossible. The earlier material on model execution and cross-software equivalence is relevant when the same vectors behave differently across implementations.

Screening is one option among several, and the appropriate choice depends on why draws fail:

ApproachWhat it doesMain implication
Flag and retainMarks unusual draws for review without removing them.Preserves the original draw set but may leave unresolved outputs.
Reject with a stated ruleRemoves vectors that fail a defined criterion.Retained draws represent a conditional distribution when the rejected region had positive probability.
Transform parametersUses a parameterization that enforces a constraint during sampling.Can respect constraints by construction, but the implied distribution and dependence still require care.
Clip or replace valuesMoves failing values to a boundary or substitutes another value.Alters the draws and can create artificial concentrations at boundaries or distort dependence.

A transformation may be preferable when a parameter must be positive by definition; the earlier material on transforming parameter draws covers that construction. It does not justify transforming a draw after seeing an undesirable result without assessing the induced distribution. Clipping is especially hard to interpret: replacing a clearance of 11 L/h by 8 L/h does not preserve the original draw or implement ordinary rejection. If rejection is needed to obtain a fixed number of usable draws, generate additional draws under the same documented rule and report both the number attempted and the number retained.

Common Pitfall: Treating a Cutoff as Harmless Cleanup

The wrong reasoning is: “These few draws look extreme, so I will drop them; the remaining draws still represent the same parameter uncertainty.” That conclusion does not follow. If the draws came from an intended distribution and the cutoff excludes a region with positive probability, the retained distribution is conditional on passing the rule. Its mean, spread, correlations, and downstream predictions can all differ. The correction is to define and justify the rule, quantify how many and which draws it affects, state the target distribution after screening, and compare conclusions with and without the restriction when both are scientifically meaningful.

A second mistake is to reject a whole vector because one simulated output is surprising, without checking whether the output is genuinely impossible, simply rare, or caused by a coding or solver issue. Diagnose the failure first. If the draw is rare but valid under the intended parameter distribution, excluding it changes uncertainty rather than repairing an error.

Key takeaway: A defensible screen is an explicit, reproducible scientific rule applied to intact parameter vectors. Record failures and their causes, and treat rejection as a change in the represented distribution whenever it removes draws that had positive probability under the intended distribution.

Check Your Understanding

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

  1. A positive-volume model returns a negative simulated concentration. Name two distinct checks you should make before deciding that the parameter vector is scientifically implausible.
  2. If a rule retains only vectors with \(CL\leq 8\) L/h, what distribution do repeated retained draws represent when the original distribution assigned positive probability above 8 L/h?
  3. Why is replacing every rejected clearance by 8 L/h not equivalent to rejection sampling?
  4. A simulation retains 920 of 1,000 draws under a pre-specified rule. What is the observed acceptance fraction, and what additional information should be reported?

Solutions. (1) Check the model equations, parameter mapping, units, initial conditions, and numerical solver behavior; separately verify whether the negative concentration is excluded by the model's scientific assumptions. A numerical or implementation error is not automatically a scientific failure. (2) They represent the original distribution conditional on \(CL\leq 8\) L/h, not the unconditioned distribution. (3) Replacement creates boundary values at 8 L/h and changes the draw distribution; rejection discards failing vectors and retains the remaining vectors without altering their component values. (4) The observed acceptance fraction is \(920/1000=0.920\), or 92.0%. Report the rule, the number attempted and retained, the rejection reasons, and the relevant model and simulation settings.

Clinical Biostats