Why the Replicate Must Include the Decision Rule
In an adaptive trial, the final estimator depends not only on outcomes but also on decisions made while the trial is running. An interim statistic may determine whether recruitment stops, whether another stage begins, or how many participants are enrolled. To bootstrap the estimator generated by that trial, each replicate must reproduce both the data-generation process and the rule that maps interim data to later trial conduct. Resampling only the final observed data while holding the observed path fixed answers a different question.
This tutorial develops a parametric bootstrap for a two-stage trial with a prespecified interim rule. The same principle applies to other adaptation rules: specify how data are generated under the fitted model, apply the original rule to each replicate’s interim data, and compute the estimator that the rule calls for. The interval developed below is an approximate, equal-tail interval based on bootstrap estimation errors. It is not an exact interval.
A Model and a Two-Stage Rule
For a concrete setting, suppose the endpoint is a continuous outcome and the treatment effect \(\theta\) is the difference between treatment and control means, in outcome units. Outcomes are independent and normally distributed within each arm, with a common, known variance \(\sigma^2\). Patients are randomized independently within each stage, and stage 1 and stage 2 observations are independent. The known variance is used here to make the simulation steps transparent; a real application must specify how variance and other nuisance parameters are estimated or generated.
Suppose stage 1 enrolls \(n_1\) participants per arm. Let \(D_1=\bar{Y}_{T1}-\bar{Y}_{C1}\) be the stage-1 treatment-minus-control difference. Under the model, its standard error is \(SE_1=\sqrt{2\sigma^2/n_1}\). The trial continues to stage 2 if the interim statistic \(Z_1=D_1/SE_1\) is at least a prespecified threshold \(c\); otherwise it stops and reports \(D_1\). If the trial continues, it enrolls \(n_2\) more participants per arm and reports the pooled difference \(\hat{\theta}=(n_1D_1+n_2D_2)/(n_1+n_2)\), where \(D_2\) is the stage-2 difference.
This rule is part of the estimator’s definition. A bootstrap replicate that continues when its own \(Z_1^*\) is below \(c\), or stops when \(Z_1^*\) is above \(c\), is not a replicate of this trial. The original rule must be applied exactly, including its threshold, equality convention, sample sizes, and estimator on each path.
Constructing the Bootstrap Distribution
Fit the model using the observed trial and obtain \(\hat{\theta}\). For each bootstrap replicate, generate stage-1 data under the fitted model, calculate \(Z_1^*\), and apply the trial’s interim rule. If the replicate stops, its estimate is the stage-1 difference \(D_1^*\). If it continues, generate independent stage-2 data and calculate the pooled estimate using the prescribed stage sizes. Record \(\hat{\theta}^*-\hat{\theta}\). Repeating this process \(B\) times gives an empirical distribution of bootstrap errors.
For the model above, one convenient implementation generates independent stage differences directly. Under the fitted model, each stage difference follows \(N(\hat{\theta},2\sigma^2/n_j)\), for stage \(j\). The simulated stage differences are sufficient for applying this particular rule and calculating this particular estimator. If the actual adaptation uses other interim data, such as separate arm summaries, subgroup outcomes, or safety outcomes, the replicate must generate the data needed to apply that rule—not merely a summary that omits relevant decision information.
Estimate the treatment effect and any required nuisance parameters from the observed trial, using the trial’s actual analysis procedure.
Simulate replicate stage-1 data under the fitted model and calculate the interim statistic from those simulated data.
Apply the original stopping, continuation, or other adaptation rule to the replicate’s interim statistic and data.
Generate later-stage data only if that replicate’s rule calls for it, then compute its estimate using the original final-analysis procedure.
Store \(\hat{\theta}^*-\hat{\theta}\), repeat for \(B\) replicates, and calculate the required error quantiles.
Worked Example: Applying the Rule to the Observed Trial
Consider a hypothetical two-stage trial with \(n_1=n_2=10\) participants per arm, known outcome variance \(\sigma^2=0.5\), and a continuation threshold \(c=1.5\). The observed stage-1 difference is \(D_1=0.60\) outcome units. If the trial continues, suppose the observed stage-2 difference is \(D_2=0.20\) outcome units.
The stage-1 standard error is \(SE_1=\sqrt{2(0.5)/10}=\sqrt{0.1}\approx0.3162\) outcome units. Thus \(Z_1=0.60/\sqrt{0.1}\approx1.897\). Since \(1.897\geq1.5\), the observed trial continues.
With equal stage sizes, its final estimate is \(\hat{\theta}=(10(0.60)+10(0.20))/20=0.40\) outcome units. The bootstrap model is therefore fitted at \(\hat{\theta}=0.40\), with the specified variance. Each replicate must generate its own stage-1 data and use its own interim statistic to determine whether it stops or continues. The fact that the observed trial continued does not require every replicate to continue.
From Bootstrap Errors to an Interval
Let \(q^*_{.025}\) and \(q^*_{.975}\) denote the empirical 2.5th and 97.5th percentiles of the \(B\) bootstrap errors. The corresponding basic bootstrap interval reverses the error quantiles around the observed estimate:
The justification is an approximation to the sampling distribution of the estimation error. If the bootstrap distribution of \(E^*=\hat{\theta}^*-\hat{\theta}\) adequately approximates the sampling distribution of \(E=\hat{\theta}-\theta\), then its quantiles approximate those of \(E\). Under that approximation, an equal-tail 95% interval is obtained by solving the inequalities that put \(E\) between its 2.5th and 97.5th percentiles:
Thus, if the bootstrap error quantiles are good approximations to the sampling-error quantiles, the interval has approximately 95% repeated-trial coverage under the assumed model and adaptation rule. This is a justification for an approximation, not a coverage theorem for every adaptive design. Correct model specification, suitable regularity and approximation conditions, and adequate simulation accuracy matter. In particular, a threshold rule can produce a non-smooth, mixture-shaped estimator distribution, so the adequacy of the approximation should not be taken for granted.
This construction uses error quantiles and their inversion. It is not the same calculation as simply taking the 2.5th and 97.5th percentiles of the bootstrap estimates. The distinction in the sign and order of the quantiles follows directly from the event \(\hat{\theta}-\theta=E\).
Worked Example: Computing Replicate Errors
Continue with the hypothetical trial above, where \(\hat{\theta}=0.40\), \(SE_1=\sqrt{0.1}\), and the continuation threshold is 1.5. The following four outcomes are illustrative possible bootstrap replicates generated under the fitted model. They demonstrate the algorithm; four replicates are not enough to estimate useful tail quantiles.
Replicate A. Let \(D_1^*=0.25\). Then \(Z_1^*=0.25/\sqrt{0.1}\approx0.7906\), below 1.5, so the replicate stops. Its estimate is \(0.25\), and its bootstrap error is \(0.25-0.40=-0.15\) outcome units.
Replicate B. Let \(D_1^*=0.60\), so \(Z_1^*=0.60/\sqrt{0.1}\approx1.897\), and let \(D_2^*=0.20\). The replicate continues, and its estimate is \((10(0.60)+10(0.20))/20=0.40\). Its error is \(0.40-0.40=0\) outcome units.
Replicate C. Let \(D_1^*=0.80\). Then \(Z_1^*=0.80/\sqrt{0.1}\approx2.530\), so the replicate continues. If \(D_2^*=0.00\), its estimate is \((10(0.80)+10(0.00))/20=0.40\), giving error \(0\) outcome units.
Replicate D. Let \(D_1^*=0.10\). Then \(Z_1^*=0.10/\sqrt{0.1}\approx0.3162\), so the replicate stops. Its estimate is \(0.10\), and its error is \(0.10-0.40=-0.30\) outcome units.
These replicates include both possible paths. In particular, stage 2 is generated and used in B and C but not in A and D. Applying the final estimator without first applying the replicate’s decision rule would not reproduce the trial procedure.
Worked Example: Forming an Adaptation-Aware Interval
Suppose, purely for illustration, that \(B=20{,}000\) full adaptive bootstrap replicates for the same hypothetical trial yield error quantiles \(q^*_{.025}=-0.62\) and \(q^*_{.975}=0.47\) outcome units. These are assumed illustrative simulation results, not quantiles calculated from the four replicates above.
The basic 95% bootstrap interval is \([\hat{\theta}-q^*_{.975},\hat{\theta}-q^*_{.025}]\). Substituting the estimate and quantiles gives \([0.40-0.47,\ 0.40-(-0.62)]=[-0.07,\ 1.02]\) outcome units.
Under the model and approximation conditions, the interval is intended to cover the treatment-minus-control mean difference in about 95% of repeated trials that use this design and adaptation rule. Its inclusion of zero means the interval is compatible with no treatment effect as well as with effects in either direction over the displayed range; it does not assign a probability to the fixed true effect.
Assumptions, Diagnostics, and Alternatives
The bootstrap is only as credible as the model and the reconstruction of the trial. For the worked setting, the key assumptions are independent normally distributed outcomes with the stated common known variance, correct stage sizes and randomization, and an accurately coded interim rule and final estimator. In other settings, the resampling model must also represent relevant features such as overdispersion, clustering, censoring, missing outcomes, or nuisance-parameter estimation. If the actual interim rule depends on a feature absent from the simulated data, the procedure cannot reproduce that rule.
Several practical checks help detect implementation problems. Verify the decision at the threshold, including what happens when a statistic equals \(c\). Check that each simulated path has the appropriate sample size and that stage-2 outcomes are generated only when required. Summarize the simulated proportions stopping and continuing, and inspect the error distribution for skewness, multiple modes, or extreme tails. Compare those path frequencies and distributional features with expectations under the fitted model. Repeat the simulation with a larger \(B\) to see whether the estimated tail quantiles and interval endpoints are stable; more replicates reduce Monte Carlo error but do not repair model misspecification.
The procedure as described simulates over possible adaptation paths under the fitted model, so it targets an unconditional repeated-trial distribution. It does not condition each replicate on the observed trial having continued. A conditional interval instead targets inference given a specified selection event and requires a procedure built for that conditional target. Analytic or small-sample exact methods may be preferable when their assumptions fit and they provide a more reliable calibration. The bootstrap is useful when the full adaptive estimator can be simulated but its sampling distribution is difficult to derive; it does not automatically outperform those alternatives.
What the Interval Can—and Cannot—Guarantee
The interval’s nominal 95% level is an approximate repeated-sampling target, not a guarantee for the particular trial. Its accuracy depends on whether the fitted model generates realistic replicate data and whether the bootstrap error distribution approximates the actual error distribution despite the adaptation. Small samples, highly influential nuisance-parameter estimates, rare adaptation paths, or a rule that creates sharp changes in the estimator can make that approximation weak. A diagnostic plot or stable Monte Carlo quantile is useful evidence about computation, but neither establishes model adequacy or coverage.
When reporting the result, state the estimand, the model used to generate replicates, the adaptation rule replayed, the error-quantile interval method, and the number of replicates. Also identify whether the target is unconditional over adaptation paths or conditional on a specified path. These details make clear what the interval is intended to quantify.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- In an adaptation-aware bootstrap, what determines whether a replicate receives stage-2 data?
- If the bootstrap error quantiles are \(-0.30\) and \(0.50\), and \(\hat{\theta}=1.20\) outcome units, calculate the basic 95% interval.
- Why is it incorrect to interpret the interval as a 95% probability that the fixed true treatment effect lies inside it?
- What repeated-trial target is represented by the procedure that simulates and replays the rule without conditioning on the observed path?
Solutions. (1) The replicate’s own simulated interim data determine its statistic; the original rule is applied to that statistic, and stage 2 is generated only if the rule calls for continuation. (2) The interval is \([1.20-0.50,\ 1.20-(-0.30)]=[0.70,\ 1.50]\) outcome units. (3) The fixed parameter is not random in the frequentist interpretation. The approximate 95% statement concerns the proportion of intervals from repeated trials under the model and design that cover the true effect. (4) It targets an unconditional repeated-trial distribution over possible adaptation paths under the fitted model.