Tutorials › Group Sequential Methods and Sample Size Re-Estimation › Monte Carlo Estimation of Predictive Probability

Conditional and Predictive Power · Tutorial 356 of 699

Monte Carlo Estimation of Predictive Probability

Use posterior and conditional future-data simulation to estimate predictive probability, quantify Monte Carlo error, and recognize when the simulation needs attention.

Advanced 12 min read

What You'll Learn

  • Define predictive probability as a posterior average of the chance of meeting a trial’s success rule.
  • Simulate posterior treatment effects and future group-sequential data in the correct conditional order.
  • Estimate predictive probability from simulated success indicators.
  • Calculate and interpret Monte Carlo standard errors and approximate simulation intervals.
  • Diagnose unstable estimates, rare simulated successes, and dependence in simulation output.
  • Distinguish Monte Carlo error from uncertainty due to the statistical model and prior.

Why Estimate Predictive Probability by Simulation?

Predictive probability asks how likely a trial is to meet its prespecified success criterion, given the interim data and uncertainty about the treatment effect. In a group sequential trial, success may depend on the entire future path: for example, whether an efficacy boundary is crossed at any remaining look. The calculation therefore averages over two sources of future uncertainty: the unknown treatment effect, represented by its posterior distribution, and the future trial data conditional on that effect.

When this average is difficult to obtain directly, Monte Carlo simulation approximates it by generating many plausible treatment effects and future data paths. The method is conceptually simple, but a reported estimate is itself random. Its Monte Carlo standard error quantifies the simulation’s numerical imprecision; it does not measure uncertainty about the treatment effect or uncertainty caused by model choices.

Definition and Simulation Setup

Definition: Let \(D\) denote the observed data available at an interim analysis, \(\theta\) the treatment effect, and \(A\) the event that the trial meets its prespecified success rule. The predictive probability is $$ \pi(D)=P(A\mid D) =\int P(A\mid D,\theta)\,\pi(\theta\mid D)\,d\theta, $$ where \(\pi(\theta\mid D)\) is the posterior distribution of the treatment effect. A Monte Carlo estimate is the proportion of simulated future paths that meet the success rule.

To generate one simulated path, first draw \(\theta_m\) from the posterior distribution given the interim data. Then, conditional on that draw and the observed data, generate the future trial data according to the assumed sampling model. Apply the trial’s actual stopping and success rules to the resulting path. Define \(I_m=1\) if path \(m\) meets the success rule and \(I_m=0\) otherwise. With \(M\) independent simulated paths,

$$ \widehat{\pi}_{MC}=\frac{1}{M}\sum_{m=1}^{M} I_m. $$

The order matters: future outcomes must be generated conditionally on the sampled treatment effect, and the posterior draw must reflect the interim data. The future path must also respect the group sequential design. In particular, its observations at different looks are generally dependent; simulating each look independently can give the wrong probability of crossing a boundary.

Assumptions and a Justification for the Monte Carlo Standard Error

The calculation is meaningful only relative to a specified statistical model and decision rule. The posterior distribution must be proper and based on an appropriate likelihood and prior. The future-data generator must represent the assumed outcome distribution, allocation, information at each remaining look, and dependence across looks. The success event must be implemented using the trial’s prespecified boundaries and stopping rules. These assumptions define the predictive probability being estimated; simulation cannot correct a misspecified model or an incorrectly coded rule.

If each path is generated independently from the joint posterior predictive distribution, then each \(I_m\) is an independent Bernoulli random variable with success probability \(\pi(D)\). Consequently, the simulation estimate is unbiased and its variance follows directly from the variance of a Bernoulli variable:

$$ E(\widehat{\pi}_{MC}\mid D)=\pi(D),\qquad \operatorname{Var}(\widehat{\pi}_{MC}\mid D) =\frac{\pi(D)\{1-\pi(D)\}}{M}. $$

Because \(\pi(D)\) is unknown, estimate this standard deviation by substituting \(\widehat{\pi}_{MC}\):

$$ \widehat{SE}_{MC} =\sqrt{\frac{\widehat{\pi}_{MC}(1-\widehat{\pi}_{MC})}{M}}. $$

For a reasonably large \(M\) and a probability not too close to zero or one, an approximate 95% simulation-error interval is \(\widehat{\pi}_{MC}\pm1.96\widehat{SE}_{MC}\). This interval describes approximate Monte Carlo variability around the predictive probability under the specified model. It is not a posterior interval for the treatment effect, nor does it include uncertainty from alternative priors or models.

The standard error decreases at the rate \(1/\sqrt{M}\). Thus, reducing Monte Carlo error by half typically requires about four times as many independent paths. Since \(\pi(D)\{1-\pi(D)\}\leq 1/4\), planning with

$$ \widehat{SE}_{MC}\leq\frac{1}{2\sqrt{M}} $$

gives a conservative bound that does not require knowing the predictive probability in advance.

Worked Example: Estimating a One-Look Predictive Probability

Suppose, hypothetically, an interim analysis yields a posterior distribution for the treatment effect \(\theta\) of \(N(0.30,0.20^2)\), in outcome units. At the final analysis, the future estimated treatment effect \(Y\), conditional on \(\theta\), has distribution \(N(\theta,0.25^2)\). The trial declares success if \(Y/0.25>1.96\), or equivalently if \(Y>0.490\) outcome units. Assume the posterior and future-outcome draws are generated independently across paths, with each future outcome drawn conditionally on its path’s \(\theta\).

In a hypothetical run of \(M=400\) paths, 236 meet the success rule. The estimated predictive probability is $$ \widehat{\pi}_{MC}=\frac{236}{400}=0.590. $$

Its estimated Monte Carlo standard error is $$ \widehat{SE}_{MC} =\sqrt{\frac{0.590(1-0.590)}{400}} =\sqrt{0.00060475} =0.0246. $$ The approximate 95% simulation-error interval is $$ 0.590\pm1.96(0.0246)=(0.542,\ 0.638). $$

Under the stated model, the simulation estimates a predictive probability of 0.590. The interval indicates the approximate numerical variability expected from using 400 paths; it does not mean there is a 95% probability that the model’s predictive probability lies in this interval.

Worked Example: Choosing the Number of Simulated Paths

A hypothetical analysis aims for a Monte Carlo standard error no larger than 0.010. Using the conservative bound, choose \(M\) so that $$ \frac{1}{2\sqrt{M}}\leq0.010. $$

Squaring both sides gives \(1/(4M)\leq0.0001\), so \(M\geq2500\). This is a conservative target across all possible predictive probabilities. If a pilot run estimates the probability as 0.590, using that estimate gives the approximate requirement $$ M\geq\frac{0.590(1-0.590)}{0.010^2} =\frac{0.2419}{0.0001} =2419. $$

A hypothetical run of 2500 paths with 1475 successes gives \(\widehat{\pi}_{MC}=1475/2500=0.590\) and $$ \widehat{SE}_{MC} =\sqrt{\frac{0.590(0.410)}{2500}} =0.00984. $$ This meets the target. The pilot-based calculation is useful for planning, but the conservative calculation avoids relying on an uncertain preliminary estimate.

Simulating a Group Sequential Success Rule

For multiple future looks, each simulated path must be evaluated sequentially under the design’s stopping rule. The path may stop early for efficacy or futility, depending on the design. Success is then defined exactly as specified by the trial, such as crossing an efficacy boundary at any permitted look. The simulation must generate the joint future data distribution, including dependence between looks, rather than independent marginal test statistics.

Worked Example: Applying Boundaries to Simulated Paths

Consider a hypothetical design with two future looks. A simulated path is a success if its standardized statistic \(Z_1\) crosses the first-look efficacy boundary of 2.40, or, if it does not, if \(Z_2\) crosses the final boundary of 2.00. The following six hypothetical paths were generated by first drawing a treatment effect from the interim posterior and then drawing the future statistics from their joint conditional model. The final statistic is not needed after early success.

PathPosterior draw \(\theta_m\)\(Z_1\)\(Z_2\), if reachedSuccess?
10.101.102.20Yes, final look
20.252.50Not reachedYes, first look
3-0.050.701.80No
40.401.901.95No
50.302.60Not reachedYes, first look
60.151.201.70No

Three of the six paths meet the success rule, so the illustrative estimate is \(3/6=0.500\). Its estimated Monte Carlo standard error is $$ \sqrt{\frac{0.500(1-0.500)}{6}}=0.204. $$ This very small simulation is only an illustration of the rule, not a precise estimate. Path 4 is not a success: its first statistic is below 2.40 and its final statistic is below 2.00. Counting only final-look crossings would also be wrong because it would omit the early successes on paths 2 and 5.

Diagnostics, Failure Modes, and Alternatives

A small Monte Carlo standard error is evidence of numerical precision only if the simulation has been implemented and sampled correctly. Useful checks include comparing independent batches of paths, examining whether estimates stabilize as \(M\) increases, and verifying that simulated treatment-effect draws reflect the intended posterior. For a group sequential design, test the code on paths with known boundary outcomes and confirm that early stopping, boundary equality conventions, and the final success definition are handled consistently.

The Bernoulli standard-error formula assumes independent paths. If posterior draws come from a correlated Markov chain, the indicators may also be correlated, and the formula that divides the Bernoulli variance by \(M\) generally understates the true simulation error. Use an effective sample size or an appropriate batch-means or autocorrelation-based Monte Carlo error estimate in that case. Independent posterior draws and future-data draws avoid this complication when they are feasible.

A particularly important failure mode occurs when no simulated path succeeds. Then \(\widehat{\pi}_{MC}=0\), and the plug-in standard error is also zero. This does not establish that the predictive probability is zero; it may simply be too small to appear in the simulated sample. With zero successes in \(M\) independent paths, a rough 95% upper bound is \(3/M\), illustrating that more paths may be needed to resolve a small probability. If success is rare, consider substantially increasing \(M\) and report the number of simulated successes as well as the estimate.

Monte Carlo simulation is flexible: it can handle posterior distributions and stopping rules that are awkward to summarize with a single closed-form expression. Its main alternative is a deterministic calculation of the posterior average, when the model and integration are tractable. Deterministic methods avoid random simulation error but require suitable calculations for the model at hand. A plug-in conditional-power calculation is another distinct comparison: it evaluates future success at a chosen fixed treatment effect rather than averaging over the posterior distribution. It therefore answers a different question from predictive probability.

The main limitation of Monte Carlo is that a precise estimate can still be misleading if the prior, likelihood, nuisance-parameter treatment, or future-data model is inappropriate. Simulation error should be reported separately from sensitivity to such assumptions. The earlier material on sensitivity analysis for predictive probability addresses how model choices can change the quantity being estimated; increasing \(M\) reduces only the Monte Carlo component of uncertainty.

Common pitfall: Treating a zero-success simulation as proof that predictive probability is zero, or reporting a small Monte Carlo standard error as evidence that the model is sound. The correction is to interpret the standard error as numerical error under the assumed model, report the simulated success count, investigate rare-event resolution, and assess model assumptions separately.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. In 900 independent paths, 360 meet the success rule. Calculate the Monte Carlo estimate and its estimated standard error.
  2. Why must future data be simulated conditionally on each posterior treatment-effect draw?
  3. A run has zero successes in 1000 paths. What can and cannot be concluded?
  4. If the number of independent paths is increased from \(M\) to \(4M\), what happens approximately to the Monte Carlo standard error?

Solutions. (1) The estimate is \(360/900=0.400\). The estimated standard error is \(\sqrt{0.400(0.600)/900}=\sqrt{0.0002667}=0.0163\). (2) The predictive probability averages future success probabilities over the posterior distribution. Conditional simulation preserves the dependence of future outcomes on the effect in each path; using unrelated effects would not sample from the required joint posterior predictive distribution. (3) The estimate is zero for this run, but the predictive probability is not thereby proven to be zero. Under independent paths, the rough 95% upper bound \(3/M\) is \(3/1000=0.003\). (4) Since standard error is proportional to \(1/\sqrt{M}\), multiplying \(M\) by four approximately halves the Monte Carlo standard error.

Clinical Biostats