Tutorials › Model-Informed Drug Development (MIDD) › Representing Model Discrepancy in Decision Predictions

Communicating Uncertainty and Sensitivity of Decisions · Tutorial 403 of 596

Representing Model Discrepancy in Decision Predictions

Represent systematic lack of fit explicitly and assess how it changes the predictions and probabilities used in a development decision.

Intermediate 12 min read

What You'll Learn

  • Distinguish model discrepancy from parameter uncertainty and ordinary residual variability.
  • Identify residual patterns that may indicate systematic lack of fit.
  • Represent discrepancy as a correction function and propagate its uncertainty.
  • Recalculate a decision-relevant predictive probability after including discrepancy.
  • Recognize when residual evidence is too weak to support extrapolation.

Why Model Discrepancy Matters for Decisions

A pharmacometric model can be estimated precisely and still make systematically inaccurate predictions. Parameter uncertainty describes uncertainty about the values of parameters within the chosen model. Model discrepancy is systematic lack of fit that remains because the model’s predictions do not fully represent the data-generating process. If a decision prediction is based only on parameter uncertainty, this remaining mismatch can make its apparent precision misleading.

For example, a model might capture average response across the observed dose range but consistently underpredict response at higher doses. A narrow interval for its parameters does not make that high-dose prediction reliable. Residual patterns can provide evidence of this problem; an explicit discrepancy term can represent a correction and uncertainty about that correction. Neither step proves that the model is wrong in a particular way. Data issues, a poorly specified observation model, or an unrepresented feature of the study can also produce residual patterns.

Definition: Model discrepancy is a systematic difference between the model’s prediction and the process it is intended to represent, after accounting for uncertainty in the model parameters. A common representation for an observation \(Y_i\) at inputs \(x_i\) is $$ Y_i = f(x_i;\theta) + \delta(x_i) + \epsilon_i, $$ where \(f(x_i;\theta)\) is the model prediction, \(\theta\) is its parameter vector, \(\delta(x_i)\) is discrepancy at those inputs, and \(\epsilon_i\) is residual variability around the discrepancy-adjusted mean. The discrepancy may be represented by a fixed correction, an uncertain function, or a structured stochastic term.

The terms describe different sources of uncertainty. Parameter uncertainty concerns \(\theta\); discrepancy concerns systematic differences between \(f\) and the process of interest; residual variability concerns deviations of individual observations around the discrepancy-adjusted mean. A future-observation prediction may include all three. A prediction of a latent mean response generally excludes the future observation’s residual variability. The decision target therefore determines which uncertainty components belong in the prediction.

Discrepancy and parameter uncertainty may be difficult to distinguish: a parameter change can sometimes compensate for a systematic mismatch. They are not automatically identifiable from the data. Their separation depends on the model, the data’s coverage of relevant conditions, and any defensible assumptions used to constrain the discrepancy. Residual patterns are evidence to investigate, not a unique diagnosis.

From Residual Patterns to a Decision Prediction

Residuals compare observations with fitted predictions. If residuals show a trend with dose, time, exposure, or another relevant input, the model may be systematically missing a relationship. A plot can make such structure visible: residuals should not display an obvious pattern if the model adequately captures the mean relationship, though random residuals alone do not establish that the model is correct.

Before treating a pattern as discrepancy, check the data, units, study design, and observation model. Consider whether the pattern could reflect an influential observation, a protocol difference, or an inappropriate residual structure. Then ask whether the pattern occurs in a region relevant to the decision. A mismatch far from the decision’s target conditions may have little impact; a small bias near a go/no-go threshold may change the decision materially.

For a decision-relevant prediction \(Y^*\), a general representation is \(Y^* = f(x^*;\theta)+\delta(x^*)+\epsilon^*\). When the components are independent and the residual has mean zero, the predictive mean and variance are

$$ E(Y^*) = E\{f(x^*;\theta)\} + E\{\delta(x^*)\}, $$
$$ \operatorname{Var}(Y^*) = \operatorname{Var}\{f(x^*;\theta)\} +\operatorname{Var}\{\delta(x^*)\} +\operatorname{Var}(\epsilon^*). $$

The variance expression is not a license to assume independence. In general, the variance also includes twice each pairwise covariance, such as \(2\operatorname{Cov}\{f(x^*;\theta),\delta(x^*)\}\). If discrepancy is correlated across inputs, its covariance structure matters when predicting several outcomes or a function of outcomes. For a decision about a latent mean, omit \(\epsilon^*\); for a decision about an individual future observation, include it if it is part of the target.

A useful justification follows from the variance decomposition. For independent components, subtract the predictive mean from \(Y^*\), square, and take expectations. The cross-products have expectation zero because each centered component is independent of the others and has mean zero. The remaining expected squares are the component variances, giving the expression above. Thus adding discrepancy uncertainty can widen a prediction even when the discrepancy’s expected value is zero; a nonzero expected discrepancy can also shift the prediction itself.

Worked Example: A Residual Trend at Higher Doses

Suppose a hypothetical model predicts response reductions of 20%, 30%, and 40% at doses of 10, 20, and 40 mg. The corresponding observed reductions are 22%, 35%, and 51%. Define each residual as observed minus predicted response, in percentage points.

The residuals are \(2\), \(5\), and \(11\) percentage points. They increase with dose, which is a pattern to investigate rather than evidence, by itself, of a particular mechanism. To illustrate a simple correction, anchor a linear discrepancy at 10 mg: \(\delta(d)=b(d-10)\). A least-squares slope through this anchor, using the three residuals, is

$$ \hat b = \frac{(10-10)(2)+(20-10)(5)+(40-10)(11)} {(10-10)^2+(20-10)^2+(40-10)^2} = \frac{0+50+330}{0+100+900} =0.38\ \text{percentage points per mg}. $$

At 60 mg, this fitted correction is \(\hat\delta(60)=0.38(60-10)=19.0\) percentage points. If the model’s parameter-based prediction at 60 mg is 43%, the discrepancy-adjusted point prediction is \(43+19=62\%\). This is an extrapolation beyond the doses shown, not a validated high-dose prediction. Three residuals are not enough to establish that the trend persists to 60 mg.

For an illustrative decision calculation, suppose the parameter-based prediction has standard deviation 4 percentage points, and uncertainty about the discrepancy slope is represented by a standard deviation of \(0.12\) percentage points per mg. Assume these sources are independent, and consider a decision rule requiring the latent mean response to exceed 55%. At 60 mg, discrepancy uncertainty has standard deviation \(50(0.12)=6\) percentage points. The adjusted prediction has mean 62% and standard deviation \(\sqrt{4^2+6^2}=\sqrt{52}=7.211\) percentage points. Under a normal predictive approximation,

$$ P(Y^*>55\%) = 1-\Phi\left(\frac{55-62}{7.211}\right) = 1-\Phi(-0.9707) \approx 0.834. $$

Using parameter uncertainty alone would give \(1-\Phi((55-43)/4)=1-\Phi(3)\approx0.00135\). The large difference is driven by the assumed extrapolated correction. It demonstrates why discrepancy can change a decision prediction, not that this particular correction is trustworthy. Its form and uncertainty would need scientific justification and further data.

Representing Discrepancy Without Overstating What Is Known

A discrepancy term should match the evidence and the decision target. It may be a constant offset over a relevant range, a smooth function of an input, or a structured random function whose values at nearby inputs are related. The choice should be explicit: it determines how observed residual patterns affect predictions at unobserved conditions. A correction estimated at one dose does not automatically justify extrapolating a slope across all doses.

For an uncertain discrepancy, state its expected correction and uncertainty at the decision-relevant inputs. If the discrepancy is represented as a random function, its covariance describes how uncertainty at one input relates to uncertainty at another. If it is a fixed correction, explain how the correction was selected and what uncertainty remains around it. Avoid silently treating a discrepancy estimate as known exactly.

Parameter and discrepancy uncertainty can also be dependent. For example, a parameter value that fits the observed data well may be associated with a larger discrepancy correction. In that case, propagating each uncertainty separately and then adding variances as if independent is not justified. The joint dependence must be preserved or the independence assumption stated as a simplifying approximation.

Worked Example: A Constant Bias Changes a Threshold Probability

In a hypothetical analysis, the model predicts a latent mean response of 28% at the target regimen, with parameter uncertainty represented by a normal standard deviation of 4 percentage points. A residual review supports a possible constant downward discrepancy of 5 percentage points, with standard deviation 3 percentage points. For this calculation, assume both components are normal and independent, and exclude future observation variability because the decision concerns the latent mean.

Without discrepancy, the probability that the latent mean exceeds a 25% threshold is

$$ P(Y^*>25\%) = 1-\Phi\left(\frac{25-28}{4}\right) = 1-\Phi(-0.75) \approx 0.773. $$

Including the discrepancy shifts the mean to \(28-5=23\%\). Its predictive standard deviation is \(\sqrt{4^2+3^2}=5\) percentage points. Therefore,

$$ P(Y^*>25\%) = 1-\Phi\left(\frac{25-23}{5}\right) = 1-\Phi(0.4) \approx 0.3446. $$

Under the stated assumptions, the threshold-exceedance probability falls from about 77.3% to 34.5%. These are probabilities under the specified predictive model, not probabilities that the model or the threshold is correct. The calculation also shows why reporting only parameter uncertainty could mislead a decision-maker when evidence supports a systematic bias.

Worked Example: A Time Pattern Can Matter Even When Residuals Average Zero

Suppose a hypothetical model’s residuals at times 0, 1, 2, 3, and 4 days are \(2, 1, 0, -1,\) and \(-2\) percentage points. Their mean is zero, but they form a clear declining pattern. Fit the illustrative linear discrepancy \(\delta(t)=a+bt\) by least squares. The mean time is 2 days and the mean residual is 0, so the fitted intercept is \(a=0-2b\). The slope is

$$ \hat b = \frac{\sum (t_i-\bar t)(r_i-\bar r)} {\sum (t_i-\bar t)^2} = \frac{(-2)(2)+(-1)(1)+(0)(0)+(1)(-1)+(2)(-2)} {4+1+0+1+4} = \frac{-10}{10} =-1\ \text{percentage point per day}, $$

and \(\hat a=2\) percentage points. Thus \(\hat\delta(6)=2-6=-4\) percentage points. Suppose the model’s parameter-based latent mean prediction at day 6 is 30%, with standard deviation 1.5 percentage points. For illustration, suppose uncertainty in \(a\) is 0.5 percentage points, uncertainty in \(b\) is 0.2 percentage points per day, and these quantities and the model prediction are independent. The discrepancy-adjusted mean is \(30-4=26\%\). Its standard deviation is \(\sqrt{1.5^2+0.5^2+6^2(0.2^2)}=\sqrt{3.94}=1.985\) percentage points. For a 28% threshold,

$$ P(Y^*>28\%) = 1-\Phi\left(\frac{28-26}{1.985}\right) \approx 0.157. $$

Ignoring discrepancy gives \(1-\Phi((28-30)/1.5)\approx0.909\). The residuals’ zero average does not remove their time structure. As in the dose example, predicting at day 6 extends the fitted pattern beyond the observed times, so the correction and its uncertainty require scrutiny.

Diagnostics, Alternatives, and Limitations

Useful diagnostics include residual plots against important inputs, time, fitted values, and study or occasion; checks for persistent runs of residuals with the same sign; and comparison of predictions with held-out or external data when available. Inspect whether a pattern is concentrated in a particular study or measurement range. Check the influence of individual observations and whether the pattern is large enough to affect the decision. If repeated measurements or related outcomes are involved, examine whether residual dependence has been represented appropriately.

These checks are imperfect. A residual plot may fail to reveal discrepancy when data are sparse, noisy, or poorly distributed over the decision-relevant region. Conversely, a visible pattern may reflect data quality or an inadequate residual model rather than a missing systematic correction. A discrepancy function can be weakly identified, especially outside the observed input range. Its uncertainty should generally increase when a decision requires extrapolation unsupported by data.

ApproachWhat it representsDecision implication
Parameter uncertainty onlyUncertainty in \(\theta\) while treating the model form as adequate.Can understate uncertainty or preserve bias if systematic lack of fit remains.
Residual variability onlyObservation-to-observation variation around the modeled mean.Accounts for noisy outcomes, but iid noise does not correct a systematic pattern.
Alternative model structuresUncertainty about which structural representation is appropriate.Compares predictions across candidate structures; it does not by itself quantify residual mismatch shared by them.
Explicit discrepancy termA systematic correction, with uncertainty and dependence specified as needed.Can adjust and widen decision predictions, but relies on defensible assumptions about the correction.

The earlier material on structural uncertainty addresses uncertainty among candidate model structures. Discrepancy is related but distinct: it represents lack of fit not captured by the selected model, and may remain even if one structure is chosen. In practice, structural uncertainty and discrepancy can coexist. This tutorial’s calculation should not be read as a substitute for comparing scientifically credible model structures or investigating data and design.

A common mistake is to say, “The parameter estimates are precise, so the decision prediction must be precise.” This is wrong because precision conditional on a model does not account for systematic model mismatch. The correction is to assess residual patterns and represent relevant discrepancy and its uncertainty when forming the decision prediction. The opposite mistake is to add a large arbitrary error term “to be conservative.” That may obscure evidence and distort decisions; discrepancy assumptions need a rationale, and their influence should be reported transparently.

Key takeaway: A decision prediction is only as credible as the representation of both parameter uncertainty and systematic model mismatch. Diagnose residual structure, define the discrepancy term and its uncertainty, and show how the decision changes without presenting an assumed correction as established truth.

Check Your Understanding

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

  1. What distinguishes model discrepancy from parameter uncertainty?
  2. Why can residuals with a mean of zero still signal systematic lack of fit?
  3. A latent mean prediction is 40% with parameter standard deviation 3 percentage points. An independent discrepancy has mean \(-2\) percentage points and standard deviation 4 percentage points. What are the adjusted mean and standard deviation?
  4. Why is it risky to extend a residual trend beyond the range of observed doses?

Solutions. (1) Parameter uncertainty concerns unknown values within the selected model; discrepancy is systematic mismatch between that model’s predictions and the process of interest. (2) Positive residuals in one region and negative residuals in another can cancel in the average while retaining a pattern, such as a trend over time. (3) The adjusted mean is \(40-2=38\%\). Under the stated independence assumption, the standard deviation is \(\sqrt{3^2+4^2}=5\) percentage points. (4) The observed pattern may not persist outside the data range, and the discrepancy function is then weakly supported; an extrapolated correction can materially alter a decision without being validated.