Tutorials › Model-Informed Drug Development (MIDD) › Cross-Model Posterior Predictive Checks

Evidence Integration Across Models · Tutorial 59 of 596

Cross-Model Posterior Predictive Checks

Learn to generate coherent integrated replications, choose interface-specific summaries, interpret predictive comparisons, and recognize when a check is misleading.

Advanced 10 min read

What You'll Learn

  • Define cross-model posterior predictive checks for a linked evidence chain.
  • Generate replicated data while propagating posterior and predictive uncertainty.
  • Match exposure, response, and trial-outcome summaries to their observed counterparts.
  • Calculate and interpret posterior predictive tail areas and intervals.
  • Diagnose misleading checks caused by mismatched estimands, missing uncertainty, or reuse of fitting data.
  • Distinguish predictive checks from formal tests and other model-evaluation approaches.

Why Check an Integrated Prediction at Its Interfaces?

An integrated model can produce a plausible final trial prediction even when one of the links feeding it is not describing its data well. For example, a population PK component may generate an implausible distribution of exposure, while a downstream exposure-response component compensates with a different response relationship. Checking only the final outcome can conceal that mismatch. Cross-model posterior predictive checks examine predictions at selected interfaces as well as at the end of the chain.

The aim is not to prove that a model is true. It is to ask whether data generated under the fitted, integrated model resemble the observations in features that matter for its intended use. The earlier material on calibrating integrated predictions with external data addresses calibration; here the emphasis is on designing and interpreting these predictive comparisons across linked components.

Definition: A cross-model posterior predictive check compares an observed summary at an interface in an integrated model chain with the distribution of the same summary calculated from replicated data generated under the joint posterior predictive distribution. An interface may be an exposure distribution passed from a PK model, a response pattern conditional on exposure, or a trial outcome generated downstream.

What Must Be Replicated?

Let \(D\) denote the data used to fit the integrated model, \(c\) the relevant design and covariates, and \(\theta\) the collection of model parameters and latent quantities. A posterior predictive replicate is generated by first drawing \(\theta\) from its posterior distribution given \(D\), then generating new data under the model and design:

$$ p(Y^{\mathrm{rep}}\mid D,c) = \int p(Y^{\mathrm{rep}}\mid \theta,c)\,p(\theta\mid D)\,d\theta. $$

In a linked model, \(p(Y^{\mathrm{rep}}\mid\theta,c)\) represents the full generative chain needed for the check. A replicate may include an exposure quantity generated by the upstream component and a response generated conditional on that exposure by a downstream component. Parameters and shared latent quantities must be drawn jointly as specified by the fitted model; replacing them with separate marginal draws can destroy their dependence. This is particularly important when the observed interface contains uncertainty that was carried across the handoff.

The comparison is meaningful only when the observed and replicated summaries refer to the same target. If observed exposure is estimated from sparse concentration samples, for example, comparing it directly with a perfectly observed model-generated exposure metric omits the observation and estimation process. Instead, simulate data through the corresponding process or define the check on a genuinely comparable latent quantity. Likewise, use the same dosing regimen, covariate distribution, follow-up, endpoint definition, and sampling scheme as the observations being checked.

Assumptions and conditions: The fitted posterior must represent the specified integrated model and fitting data; the simulation must reproduce the relevant design and observation process; and the chosen summary must measure the same feature in observed and replicated data. Posterior predictive interpretation also depends on the model’s structural assumptions. A check can reveal conflict with those assumptions, but cannot establish that the model is correct.

Choose Summaries That Target the Handoff

A check starts with a prespecified summary \(T\), calculated in the same way for the observations and for each replicate. Useful summaries are tied to a decision-relevant feature of the interface rather than chosen solely because they are easy to calculate. Examples include an exposure quantile, the proportion responding in each of a few exposure strata, or a treatment-control difference in a simulated trial.

For observed data \(Y\), compare \(T(Y)\) with the empirical distribution of \(T(Y^{\mathrm{rep}})\). A predictive interval places the observed summary in context, while a tail area summarizes the fraction of replications at least as extreme in a specified direction. For an upper-tail check based on \(M\) replicates, a common Monte Carlo estimate is:

$$ \widehat{p}_{\mathrm{upper}} = \frac{1}{M}\sum_{m=1}^{M} I\!\left\{T(Y^{\mathrm{rep},m})\geq T(Y)\right\}. $$

Here \(I\{\cdot\}\) equals 1 when the condition holds and 0 otherwise. This tail area is a descriptive posterior predictive quantity, not a conventional frequentist p-value: it is not the probability that the model is true, nor generally a uniformly distributed test statistic under a null hypothesis. Its value depends on the chosen summary, direction, model, and data used to form the posterior.

Worked Examples Across the Chain

Worked Example: Checking an Exposure Distribution

In a hypothetical study, exposure is summarized by an AUC measure in mg·h/L for 120 participants. The observed 90th percentile is 8.4 mg·h/L. The integrated model is used to generate \(M=1{,}000\) replicate datasets with the same dosing and participant covariates; the exposure observation process is included. The 90th percentiles across replications have a central 90% predictive interval from 7.1 to 9.0 mg·h/L, and 73 replicated percentiles are at least 8.4 mg·h/L.

The upper-tail estimate is:

$$ \widehat{p}_{\mathrm{upper}}=\frac{73}{1{,}000}=0.073. $$

The observed 90th percentile, 8.4 mg·h/L, lies inside the 7.1 to 9.0 mg·h/L interval. The upper-tail estimate indicates that 7.3% of these replicated percentiles were at least as large as the observed value. Neither comparison signals a conspicuous mismatch in this particular feature of exposure. It does not show that all parts of the exposure distribution, or the downstream response model, are adequate.

Worked Example: Checking a Response Pattern by Exposure

In a hypothetical dataset, 60 participants are classified into each of two prespecified exposure strata. The observed response counts are 18 of 60 in the lower stratum and 39 of 60 in the higher stratum. Use the difference in response proportions as the check statistic, with higher exposure minus lower exposure.

The observed proportions and difference are:

$$ \hat{p}_{\mathrm{low}}=\frac{18}{60}=0.300,\qquad \hat{p}_{\mathrm{high}}=\frac{39}{60}=0.650,\qquad T(Y)=0.650-0.300=0.350. $$

For each integrated posterior predictive replicate, the model generates exposure and response under the study design, and the same two-stratum difference is calculated. Suppose the 1,000 replicated differences have a central 90% predictive interval from 0.12 to 0.43, with mean 0.28; 84 are at least 0.350. Then:

$$ \widehat{p}_{\mathrm{upper}}=\frac{84}{1{,}000}=0.084. $$

The observed difference of 0.350 falls inside the predictive interval, and 8.4% of replicated differences are at least that large. This check finds no striking conflict for the chosen contrast. It does not establish a causal effect of exposure: the comparison is a predictive check of the integrated model’s response pattern under the stated design and assumptions.

Worked Example: Checking a Simulated Trial Outcome

Suppose a hypothetical trial has 100 participants per arm and a binary response endpoint. The observed response counts are 58 in the treatment arm and 40 in the control arm. The fitted integrated model generates 1,000 trial replications using the same allocation, sample sizes, endpoint, and follow-up. The treatment-minus-control response difference is the summary.

The observed treatment proportion is \(58/100=0.580\), and the control proportion is \(40/100=0.400\). Therefore:

$$ T(Y)=0.580-0.400=0.180. $$

Suppose the replicated differences have a central 90% predictive interval from \(-0.04\) to \(0.24\), and 220 of the 1,000 differences are at least 0.180. The upper-tail estimate is:

$$ \widehat{p}_{\mathrm{upper}}=\frac{220}{1{,}000}=0.220. $$

The observed difference of 0.180 is within the predictive interval, and 22.0% of simulated differences are at least as large. The outcome is not unusual under this particular predictive distribution. This does not show that the model will predict every future trial well; it checks one outcome summary at the specified design.

Why the Predictive Distribution Has This Form

The posterior predictive distribution averages predictions over uncertainty about model quantities rather than treating one fitted parameter estimate as known. To see how this works in computation, draw \(M\) parameter sets \(\theta^{(m)}\) from \(p(\theta\mid D)\). For each draw, simulate \(Y^{\mathrm{rep},m}\) from \(p(Y^{\mathrm{rep}}\mid\theta^{(m)},c)\), then calculate \(T(Y^{\mathrm{rep},m})\). The empirical distribution of those \(M\) summaries approximates the integral defining the predictive distribution.

$$ \widehat{p}_{\mathrm{upper}} = \frac{1}{M}\sum_{m=1}^{M} I\!\left\{T(Y^{\mathrm{rep},m})\geq T(Y)\right\} \ \longrightarrow\ P\!\left(T(Y^{\mathrm{rep}})\geq T(Y)\mid D,c\right) $$

The convergence is a Monte Carlo approximation as the number of simulated replicates increases, assuming the draws correctly represent the posterior predictive distribution. It does not remove uncertainty or misspecification in the model itself. If only a point estimate \(\hat{\theta}\) is used, the simulation instead approximates \(p(Y^{\mathrm{rep}}\mid\hat{\theta},c)\); it omits posterior parameter uncertainty and is not the full posterior predictive check.

Design, Diagnostics, and Common Pitfalls

A useful check makes its target and simulation recipe explicit. Before interpreting results, verify that each replicate passes through the components needed to produce the checked quantity and that the same summary is computed on observed and replicated data. Then examine whether the result is robust to Monte Carlo noise, and whether several prespecified summaries tell a coherent story. A tail area near 0 or 1 can flag tension for a chosen summary, but is not a stand-alone decision rule.

  • Omitting uncertainty at a handoff. Passing a single estimated exposure value downstream can make simulated responses too concentrated. Generate or propagate the exposure uncertainty required by the integrated model.
  • Comparing unlike quantities. A model-predicted latent AUC and a noisy estimate derived from sparse samples are not automatically comparable. Include the relevant observation process or choose a shared estimand.
  • Simulating the wrong design. A check can appear to fail because replicate datasets use a different dose, covariate mix, follow-up, or endpoint definition. Match the design that produced the observations.
  • Relying on a single aggregate. A plausible trial-level response rate can coexist with a poor exposure distribution or an inconsistent response-by-exposure pattern. Check multiple interfaces that matter to the intended use.
  • Overinterpreting an in-sample check. When the same observations informed the posterior, the model may adapt to them, making some checks appear reassuring. For claims about prediction in new data, evaluate genuinely held-out or external observations under their design.

A common mistake is to say, “The posterior predictive p-value is 0.22, so there is a 22% probability the model is correct.” The calculation instead says that, under this fitted model and design, 22% of simulated summaries were at least as large as the observed summary in the specified direction. It neither assigns probability to model truth nor evaluates summaries that were not checked.

How This Check Differs From Alternatives

Cross-model posterior predictive checks provide a model-based comparison of observed summaries with replicated summaries, including parameter uncertainty represented by the posterior. A plug-in simulation based on one parameter estimate is simpler, but does not include that uncertainty. A comparison with held-out data asks a more direct question about prediction beyond the fitting data, but requires appropriate data not used to fit the model. Neither approach eliminates the need to choose relevant summaries and align the observation process.

A predictive interval or tail area is also not a formal hypothesis test with a universal rejection threshold. Multiple summaries can be informative, but selecting a striking one after seeing many results increases the chance of emphasizing an accidental discrepancy. Prespecify decision-relevant summaries where possible, report what was checked, and interpret each comparison as evidence about a specified feature of the integrated model—not a certification of the entire evidence chain.

Key takeaway: A cross-model posterior predictive check is only as informative as its interface, summary, and replication design. Generate coherent replications through the relevant model chain, compare like with like, and interpret unusual summaries as prompts for investigation rather than proof of model failure or success.

Check Your Understanding

Answer each question using the definitions and procedures above. Brief solutions follow the questions.

  1. A check uses one fixed parameter estimate for all 500 replications. What important source of uncertainty is omitted?
  2. Observed exposure values are noisy estimates from sparse samples, while replicated values are error-free latent AUCs. Why is the comparison problematic, and what is one remedy?
  3. In 800 replications, 64 values of a chosen statistic are at least as large as the observed statistic. Calculate the upper-tail estimate and interpret it.
  4. A trial outcome lies inside its posterior predictive interval. Does that establish that the integrated model is adequate for every interface? Explain.
  5. Why can a check based on observations used to fit the posterior be less informative about prediction in new studies than a check on held-out data?

Solutions. (1) It omits posterior uncertainty in the parameters and latent quantities; use posterior draws followed by predictive simulation. (2) The quantities include different observation processes, so they are not directly comparable. Simulate the sampling and estimation process, or compare both on a common estimand. (3) \(\widehat{p}_{\mathrm{upper}}=64/800=0.080\). Thus 8.0% of the replicated statistics were at least as large as observed; this is a descriptive tail area for that statistic, not the probability the model is true. (4) No. It supports compatibility for that outcome summary at that design, but other interfaces or summaries may still reveal conflict. (5) The fitting data have already influenced the posterior, so the model can adapt to features in those data; held-out observations provide a more direct check of prediction beyond the fitting data.