Tutorials › Model-Informed Drug Development (MIDD) › Evaluating Estimator Bias and Interval Coverage

Clinical Trial Simulation · Tutorial 288 of 596

Evaluating Estimator Bias and Interval Coverage

Use replicate-level estimates and intervals to quantify estimator accuracy and coverage, then determine whether apparent differences from targets exceed Monte Carlo noise.

Advanced 12 min read

What You'll Learn

  • Define estimator bias and mean squared error relative to a scenario-specific true value.
  • Decompose mean squared error into variance and squared bias.
  • Estimate empirical confidence-interval coverage from simulated trial replicates.
  • Quantify Monte Carlo uncertainty in estimated bias and coverage.
  • Diagnose coverage discrepancies, including those caused by failed analyses or mismatched targets.
  • Compare estimators without treating one performance summary as sufficient.

Why Evaluate Estimators Across Simulated Trials?

A trial analysis produces an estimate and often a confidence interval, but one simulated trial cannot show how the analysis performs over repeated trials. In clinical trial simulation, each replicate represents a possible trial under a specified scenario. Comparing its estimate with the scenario’s known true value makes it possible to evaluate systematic error, overall estimation error, and whether the reported intervals include that truth at the intended rate.

These performance summaries answer different questions. An estimator can have little average bias but substantial variability; a method can have modest mean squared error while its intervals cover too infrequently; and an empirical coverage rate can differ from its nominal target simply because the number of replicates is limited. The summaries therefore need to be computed and interpreted together.

For a given scenario, let \(\theta\) be the fixed true value of the target parameter and let \(\hat{\theta}_r\) be its estimate in replicate \(r\), for \(r=1,\ldots,R\). The scenario must specify the target clearly, including its scale and units. For example, \(\theta\) might be a treatment difference of 2.0 points on a clinical outcome scale. The repeated-trial performance summaries describe the distribution of estimates and intervals under that scenario; they do not describe uncertainty about the fixed value \(\theta\).

Definition: The bias of an estimator is its expected estimate minus the true parameter, \(E(\hat{\theta})-\theta\). Its mean squared error (MSE) is \(E[(\hat{\theta}-\theta)^2]\). For a confidence interval \([L_r,U_r]\) from replicate \(r\), the coverage indicator is 1 if \(L_r \leq \theta \leq U_r\), and 0 otherwise. The coverage probability is the probability that this interval procedure includes the true parameter over repeated trials.

Estimating Bias and Mean Squared Error

In a simulation with \(R\) completed replicates, the empirical mean estimate is \(\bar{\hat{\theta}}=R^{-1}\sum_{r=1}^{R}\hat{\theta}_r\). The estimated bias is \(\bar{\hat{\theta}}-\theta\). A positive value means that estimates average above the truth; a negative value means that they average below it. Report the sign, magnitude, and units, rather than only saying that an estimator is “biased.”

The empirical MSE is the average squared error from the truth:

$$ \widehat{\mathrm{MSE}}=\frac{1}{R}\sum_{r=1}^{R}(\hat{\theta}_r-\theta)^2 $$

It is in squared units. Its square root, the root mean squared error (RMSE), is in the same units as \(\theta\) and can be easier to interpret as a typical combined estimation error. Bias and MSE should not be conflated: bias describes the average signed error, whereas MSE penalizes errors in either direction and incorporates both systematic displacement and variability.

Theorem: For an estimator with finite variance, \(\mathrm{MSE}(\hat{\theta})=\mathrm{Var}(\hat{\theta})+\mathrm{Bias}(\hat{\theta})^2\). Thus, MSE can increase because estimates are more variable, more biased, or both.

To see the decomposition, write \(\hat{\theta}-\theta=(\hat{\theta}-E(\hat{\theta}))+ (E(\hat{\theta})-\theta)\). Squaring and taking expectations gives a variance term, a squared bias term, and a cross-product. The expected cross-product is zero because \(E[\hat{\theta}-E(\hat{\theta})]=0\):

$$ \begin{aligned} E[(\hat{\theta}-\theta)^2] &=E[(\hat{\theta}-E(\hat{\theta}))^2] +2(E(\hat{\theta})-\theta)E[\hat{\theta}-E(\hat{\theta})]\\ &\quad +(E(\hat{\theta})-\theta)^2\\ &=\mathrm{Var}(\hat{\theta})+\mathrm{Bias}(\hat{\theta})^2. \end{aligned} $$

For simulated replicates, the empirical MSE also equals the replicate variance calculated with divisor \(R\), plus the squared empirical bias. If instead the usual sample variance \(s_{\hat{\theta}}^2\) with divisor \(R-1\) is used, then the empirical MSE is \(\frac{R-1}{R}s_{\hat{\theta}}^2+(\bar{\hat{\theta}}-\theta)^2\). The small divisor distinction matters when reproducing exact calculations.

Worked Example: Bias and MSE for an Estimated Treatment Difference

Suppose the true treatment difference in a hypothetical scenario is \(\theta=2.00\) points. Across \(R=1{,}000\) completed simulated trials, the estimates have mean \(\bar{\hat{\theta}}=2.12\) points and sample standard deviation \(s_{\hat{\theta}}=0.800\) points. Use the sample summaries to estimate bias and MSE.

Estimated bias. Subtract the known scenario truth from the mean estimate:

$$ \widehat{\mathrm{Bias}}=2.12-2.00=0.120\text{ points}. $$

The estimates average 0.120 points above the truth. This is a description of the simulation’s estimated bias, not proof that the method has nonzero bias in every possible scenario.

Estimated MSE. Using the sample variance as an approximation to the replicate variance, apply the bias-variance decomposition:

$$ \widehat{\mathrm{MSE}}\approx (0.800\text{ points})^2+(0.120\text{ points})^2 =0.6400+0.0144=0.6544\text{ points}^2. $$

The corresponding approximate RMSE is \(\sqrt{0.6544}=0.8090\) points. The variance component is much larger than the squared-bias component here, so reducing variability would likely matter more for MSE than removing the observed average offset alone. The exact empirical MSE would require the replicate estimates, or their variance calculated with divisor \(R\); the calculation above uses the reported sample standard deviation as a close plug-in estimate.

Empirical Coverage and Its Monte Carlo Uncertainty

For a nominal 95% confidence-interval procedure, the target coverage is 0.950 under conditions where the procedure is calibrated for that scenario. For each replicate, record whether the interval contains the scenario’s true value. If \(I_r\) is 1 when \(L_r\leq\theta\leq U_r\) and 0 otherwise, empirical coverage is \(\hat{c}=R^{-1}\sum I_r\). Its interpretation is the proportion of simulated intervals that included the truth, not the probability that the fixed parameter lies in any particular interval.

When replicates are independently generated under the same scenario, the coverage indicators are Bernoulli observations with probability \(c\). The Monte Carlo standard error (MCSE) of \(\hat{c}\) is estimated by \(\sqrt{\hat{c}(1-\hat{c})/R}\). It quantifies simulation noise in the estimated coverage rate; it is not the standard error of an individual trial’s treatment estimate.

Worked Example: Checking Nominal 95% Coverage

In a hypothetical simulation of \(R=1{,}000\) trials, 910 of the 95% confidence intervals contain the true treatment difference. Assume the trials are independent replicates generated under the same scenario, and that all 1,000 intervals were produced.

Empirical coverage. The estimated rate is:

$$ \hat{c}=\frac{910}{1{,}000}=0.910. $$

The difference from nominal coverage is \(0.910-0.950=-0.040\), or -4.00 percentage points. The negative sign indicates empirical coverage is below the nominal target.

Monte Carlo uncertainty. The estimated MCSE is:

$$ \mathrm{MCSE}(\hat{c})= \sqrt{\frac{0.910(1-0.910)}{1{,}000}} =\sqrt{0.0000819}=0.00905. $$

A rough 95% Monte Carlo interval for the coverage probability is \(0.910\pm1.96(0.00905)\), or approximately \((0.8923,0.9277)\). This interval quantifies uncertainty from using a finite number of simulated replicates. Since 0.950 is outside this approximate interval, the observed shortfall is larger than would typically be explained by Monte Carlo error alone at this replicate count. The calculation is an approximate normal interval; for small replicate counts or rates near 0 or 1, a binomial interval with better small-sample properties may be preferable.

Comparing Performance and Diagnosing Discrepancies

A single summary rarely identifies why a procedure performs as it does. Compare bias, variability, MSE, coverage, interval width, and analysis completion rates across methods and scenarios. Use the same truth, replicate set where feasible, and clearly stated denominator for each comparison. For intervals, also inspect how often estimates or interval endpoints are extreme, whether intervals are unusually wide or narrow, and whether failures are concentrated in particular types of replicate.

Nominal coverage is a repeated-sampling target for a specified interval procedure and scenario. It is not guaranteed simply because an interval is labelled “95%.” Finite-sample approximations, the data-generating conditions, and the interval construction can all affect actual coverage. Nor does a difference between empirical and nominal coverage automatically establish a systematic defect: the number of replicates controls the precision of the empirical rate.

Analysis failures require particular care. If an estimator or interval is unavailable for some simulated trials, calculating coverage only among successful trials estimates coverage conditional on successful analysis. That may be useful, but it is not automatically the performance of the full analysis strategy. Report the number and proportion of failures, explain the denominator, and assess whether failure depends on trial characteristics. A policy that defines how failed analyses are handled should be evaluated according to that policy; silently dropping failures can make performance look better or worse.

Worked Example: Coverage Among Completed Analyses

In a hypothetical set of 1,000 simulated trials, confidence intervals are produced in 970 trials. Of those 970 intervals, 920 include the true parameter. Thirty trials have no interval because the fitting procedure did not return a usable result. Calculate the completed-analysis coverage and explain its scope.

Conditional empirical coverage. Among trials with an interval, the rate is:

$$ \hat{c}_{\mathrm{completed}}=\frac{920}{970}=0.9485. $$

This is approximately 94.85% coverage conditional on an interval having been produced. The interval-estimation completion rate is \(970/1{,}000=0.970\), or 97.00%, so 3.00% of trials failed to yield an interval. Reporting 94.85% alone would conceal that failure rate.

If a prespecified strategy counts every unavailable interval as a failure to cover, its rate across all 1,000 simulated trials is \(920/1{,}000=0.920\), or 92.00%. That convention does not assert that an undefined interval literally failed to contain the truth; it summarizes the combined analysis strategy by treating an unusable result as unsuccessful. The appropriate report distinguishes the conditional coverage from the overall completion rate and states how failures enter any overall performance measure.

Useful checks include verifying that the same parameter scale and true value are used in estimates, intervals, and calculations; confirming that every replicate belongs to the intended scenario; and comparing direct summaries against replicate-level calculations. Coverage close to nominal with a wide MCSE is inconclusive, not evidence of precise calibration. Conversely, a large apparent gap relative to MCSE deserves investigation, but the gap alone does not identify its cause. Examine interval construction, finite-sample behavior, implementation, and the handling of failed fits before drawing conclusions.

Bias, MSE, and coverage complement rather than replace other operating characteristics. Type I error concerns rejection under a null hypothesis; interval coverage concerns inclusion of a parameter value by an interval procedure. Their calibration questions are related but not interchangeable. Likewise, minimizing MSE does not ensure nominal coverage: a narrow procedure may estimate efficiently on average and still produce intervals that are too short.

Common Pitfalls and Practical Interpretation

  • Reporting bias without units or direction. State, for example, “the mean estimate was 0.120 points above the true difference,” rather than simply “bias was 0.120.”
  • Confusing bias with MSE. Positive and negative errors can cancel in the mean while still producing large squared errors. Inspect variability and MSE as well as signed bias.
  • Calling Monte Carlo uncertainty trial-level uncertainty. The MCSE describes the precision of a simulation summary across replicates, not the uncertainty attached to one participant or one trial estimate.
  • Ignoring the denominator. If some analyses fail, state whether coverage is among completed intervals or uses an all-replicate policy, and report failures separately.
  • Treating nominal coverage as a guarantee. The nominal label is a target under specified conditions. Empirical performance must be evaluated in the scenario of interest.
  • Overinterpreting a small difference. Compare the gap with its Monte Carlo uncertainty and consider whether the replicate count is adequate before attributing the discrepancy to the analysis procedure.
Key takeaway: For each scenario, report the true target, estimated bias with units, MSE or RMSE, empirical coverage, its Monte Carlo uncertainty, and analysis completion rate. State the denominator and interpret discrepancies relative to both the nominal target and simulation precision.

Check Your Understanding

Answer each question using the definitions and calculations above.

  1. In a scenario with \(\theta=5.0\) mg/L, the mean simulated estimate is 4.8 mg/L. What is the estimated bias, including direction and units?
  2. If an estimator has variance \(0.36\) (mg/L)\(^2\) and bias \(-0.20\) mg/L, what is its MSE?
  3. In 500 independent replicates, 465 intervals include the true value. Calculate empirical coverage and its approximate MCSE.
  4. Why should coverage among successful analyses be reported separately when some fits fail?

Solutions. (1) The bias is \(4.8-5.0=-0.20\) mg/L, so estimates average 0.20 mg/L below the truth. (2) MSE is \(0.36+(-0.20)^2=0.400\) (mg/L)\(^2\). (3) Coverage is \(465/500=0.930\); the approximate MCSE is \(\sqrt{0.930(0.070)/500}=\sqrt{0.0001302}=0.0114\), or 1.14 percentage points. (4) Completed-analysis coverage is conditional on an interval being produced. Reporting the failure rate and denominator shows whether this conditional summary represents the full analysis strategy or excludes a non-negligible set of simulated trials.