Tutorials › Response-Adaptive Randomization › Diagnose Type I Error And Coverage Failures

Simulation Studies · Tutorial 493 of 501

Diagnose Type I Error And Coverage Failures

Learn to estimate rejection and coverage rates from simulation replicates, quantify their Monte Carlo uncertainty, and diagnose departures from nominal calibration.

Intermediate 11 min read

What You'll Learn

  • Define simulation-based Type I error and confidence-interval coverage rates.
  • Calculate Monte Carlo standard errors for estimated rates.
  • Compare empirical rates with their nominal targets without overinterpreting small discrepancies.
  • Recognize patterns that suggest systematic calibration failure.
  • Check whether the simulated scenario and analysis match the inferential target.
  • Distinguish a calibration diagnostic from a definitive explanation of its cause.

Why Calibration Needs Its Own Check

A simulation can produce a plausible-looking estimate of a treatment effect while the associated test or interval procedure is poorly calibrated. Calibration asks whether a method’s inferential statements behave as intended across repeated trials. In particular, under a scenario where the null hypothesis is true, does the test reject at approximately its stated significance level? When the target parameter is known in the simulation, do confidence intervals contain it at approximately their stated confidence level?

These are properties of the entire simulated procedure: the data-generating mechanism, adaptive allocation, stopping and analysis rules, and the test or interval construction. A discrepancy from the target can reflect a genuine problem, but simulated rates themselves fluctuate because only a finite number of replicates are run. The diagnostic task is to assess both the size of the discrepancy and the uncertainty in the estimated rate.

Define the Rates Before Calculating Them

Suppose a simulation uses \(B\) independent replicates under a prespecified scenario. In each replicate, the adaptive trial is generated and analyzed according to the same specified rules. For a test with significance level \(\alpha\), let \(R_b=1\) if replicate \(b\) rejects \(H_0\), and \(R_b=0\) otherwise. In this diagnostic, the scenario must satisfy \(H_0\); otherwise, its rejection rate is not a Type I error rate.

Definition: The Type I error probability in a null scenario is \(q_R=P(\text{reject }H_0\mid H_0\text{ is true})\). Its simulation estimate is \(\hat{q}_R=R/B\), where \(R=\sum_{b=1}^{B}R_b\) is the number of rejections. A test intended to have significance level \(\alpha\) is calibrated at that scenario when \(q_R\) is approximately \(\alpha\).

For a confidence interval procedure with nominal confidence level \(1-\alpha\), let \(C_b=1\) if the interval from replicate \(b\) contains the true target parameter \(\theta\), and \(C_b=0\) otherwise. The target \(\theta\) must be known from the data-generating scenario, and the interval must be evaluated for that same estimand.

Definition: The coverage probability is \(q_C=P(\theta\text{ is in the reported interval})\). Its simulation estimate is \(\hat{q}_C=C/B\), where \(C=\sum_{b=1}^{B}C_b\) is the number of intervals that contain \(\theta\). A nominal \(1-\alpha\) interval has the target \(q_C=1-\alpha\) under the scenario being assessed.

These definitions treat each complete simulation replicate as one Bernoulli outcome: rejection or not, coverage or not. If replicates are generated independently under an unchanged scenario, then \(R\) has a binomial distribution with size \(B\) and probability \(q_R\), and \(C\) has a binomial distribution with size \(B\) and probability \(q_C\). This is the basis for quantifying Monte Carlo uncertainty in the rates.

Monte Carlo Uncertainty Around a Nominal Rate

For a binomial count \(K\) from \(B\) independent replicates, the estimated rate is \(\hat q=K/B\). Since the variance of a Bernoulli outcome with probability \(q\) is \(q(1-q)\), the variance of the average of \(B\) independent outcomes is \(q(1-q)/B\). Thus the standard error of \(\hat q\), if \(q\) were known, is \(\sqrt{q(1-q)/B}\). For a calibration check, the nominal target can be substituted to assess how much Monte Carlo variation would be expected if the method were calibrated.

$$ \operatorname{SE}_{\text{nominal}}(\hat q) = \sqrt{\frac{q_0(1-q_0)}{B}}, \qquad q_0= \begin{cases} \alpha & \text{for null rejection},\\ 1-\alpha & \text{for interval coverage}. \end{cases} $$

A useful standardized discrepancy is the difference between the estimated and nominal rate divided by this nominal standard error. It is a diagnostic, not a verdict: a large value warrants investigation, while a modest value is compatible with ordinary Monte Carlo fluctuation. A confidence interval for the unknown rate provides a complementary view. For example, a Wilson interval or an exact binomial interval is generally preferable to a simple Wald interval, especially when the rate is near zero or one or the number of replicates is small.

A rough 95% Monte Carlo range around a nominal rate is \(q_0\pm1.96\sqrt{q_0(1-q_0)/B}\), when the normal approximation is reasonable. It describes the variability of the simulated rate under the assumption that the procedure truly has rate \(q_0\). It is not a confidence interval for the treatment effect, nor does it account for uncertainty about whether the simulated model represents the intended trial.

Worked Example: An Elevated Null Rejection Rate

Consider a hypothetical simulation of \(B=2{,}000\) independent adaptive trials under a scenario where \(H_0\) is true. The prespecified test uses \(\alpha=0.05\), and it rejects in \(R=128\) replicates. Assume the scenario truly satisfies the null, the test and rejection rule were prespecified, and every replicate was generated and analyzed according to the same protocol.

The estimated Type I error rate is

$$ \hat{q}_R=\frac{R}{B}=\frac{128}{2{,}000}=0.0640. $$

Under calibration at \(q_0=0.05\), the nominal Monte Carlo standard error is

$$ \operatorname{SE}_{\text{nominal}} = \sqrt{\frac{0.05(1-0.05)}{2{,}000}} = \sqrt{0.00002375} \approx 0.00487. $$

The estimated rate is \(0.0640-0.0500=0.0140\), or 1.40 percentage points above nominal. Relative to the nominal standard error, this is \(0.0140/0.00487\approx2.87\) standard errors. The observed-rate standard error is \(\sqrt{0.064(0.936)/2{,}000}\approx0.00547\); a rough Wald interval is \(0.0640\pm1.96(0.00547)\), or approximately \(0.0533\) to \(0.0747\).

Both calculations flag the result for follow-up: the observed rate is noticeably above 0.05, and the rough interval excludes 0.05. This is evidence of possible over-rejection in this scenario, not proof of its cause. The simulation should be checked for implementation errors, a mismatch between the null scenario and \(H_0\), or a test whose finite-sample behavior is not well calibrated. The observed rate is not automatically the procedure’s exact Type I error probability.

Checking Confidence-Interval Coverage

Coverage is assessed similarly, but the indicator is whether the interval contains the known \(\theta\), not whether an interval includes a hypothesized null value in some informal sense. The nominal target is \(1-\alpha\). A rate below that target indicates undercoverage in the scenario: intervals contain \(\theta\) too infrequently in the repeated simulation. A rate above it indicates overcoverage, which may reflect conservative intervals or other features of the procedure. Neither direction alone identifies the cause.

Worked Example: Coverage Below Nominal

Suppose a hypothetical simulation produces \(B=1{,}000\) independent trials under a scenario with a known average treatment effect \(\theta=2.0\) units. Each trial reports a nominal 95% confidence interval for that same average treatment effect. The value \(2.0\) is inside 925 of the intervals. Assume all intervals use the prespecified method and the simulation records whether the true target is contained.

The estimated coverage is

$$ \hat{q}_C=\frac{925}{1{,}000}=0.925. $$

For nominal \(q_0=0.95\), the Monte Carlo standard error is

$$ \operatorname{SE}_{\text{nominal}} = \sqrt{\frac{0.95(0.05)}{1{,}000}} = \sqrt{0.0000475} \approx0.00689. $$

The estimated coverage is \(0.925-0.950=-0.025\), or 2.50 percentage points below nominal; the discrepancy is about \(-0.025/0.00689\approx-3.63\) nominal standard errors. The observed-rate standard error is \(\sqrt{0.925(0.075)/1{,}000}\approx0.00833\). A rough Wald interval is \(0.925\pm1.96(0.00833)\), approximately \(0.909\) to \(0.941\), below 0.95.

This result warrants investigation of possible undercoverage for this particular scenario and interval procedure. It does not mean that any one of the simulated intervals has a 92.5% probability of containing \(\theta\); the estimated rate summarizes repeated performance across the simulated trials. Nor does the result establish coverage across scenarios that were not simulated.

Separate Random Fluctuation From a Persistent Pattern

A single estimated rate is rarely enough to diagnose a failure. Consider the scale of Monte Carlo uncertainty, then examine whether departures recur across independent runs or relevant null scenarios. If the simulation budget is increased while the scenario and method remain fixed, Monte Carlo standard errors decrease at approximately the rate \(1/\sqrt{B}\). A discrepancy that remains similar in size as \(B\) grows becomes harder to attribute to random simulation noise alone.

For a composite null hypothesis, checking one null parameter value is not a guarantee of Type I error control over all null values. Likewise, coverage may vary with the true effect, event rate, allocation behavior, or other features of the data-generating mechanism. Report the scenario-specific rates and their Monte Carlo uncertainty rather than pooling scenarios with different true rates into one number that can conceal a failure.

The following sequence makes the diagnostic interpretable:

1
Specify the target.
State the null scenario, test level \(\alpha\), or true parameter \(\theta\) and nominal interval level. Confirm that the simulated truth matches the target being evaluated.
2
Compute replicate indicators.
Record one rejection indicator or coverage indicator per complete replicate. Calculate the corresponding count and divide by \(B\).
3
Quantify Monte Carlo error.
Calculate the nominal standard error and, where useful, a binomial confidence interval for the unknown rate. State the rate in percentage points as well as a proportion when that aids interpretation.
4
Investigate flagged discrepancies.
Check replicate generation, analysis rules, estimand, and indicator coding. Then assess whether the departure persists across additional replicates or relevant scenarios.

For example, if a nominal 5% test rejects in 27 of 500 null replicates, its estimated rate is \(27/500=0.0540\). The nominal standard error is \(\sqrt{0.05(0.95)/500}\approx0.00975\), so the 0.0040 excess is only about 0.41 nominal standard errors. That result is compatible with Monte Carlo fluctuation; it does not establish exact calibration, but it supplies little evidence of a discrepancy at this simulation size.

Failure Modes and Appropriate Comparisons

When a rate looks unusual, first verify that the diagnostic itself is correctly constructed. Common failure modes include:

  • Wrong scenario. A rejection rate is called a Type I error rate even though the simulated parameter values do not satisfy \(H_0\). Recheck the data-generating values and the null statement.
  • Wrong target. Coverage is evaluated against a parameter different from the interval’s estimand, such as comparing an interval for an average effect with a subgroup effect.
  • Wrong denominator. Failed or incomplete runs are silently omitted, or different numbers of replicates are used without being reported. Define in advance how such runs are handled and report the number analyzed.
  • Wrong indicator. A rejection rule, tail convention, or interval endpoint check is coded incorrectly. Confirm that rejection and inclusion follow the prespecified analysis exactly.
  • Dependent replicates treated as independent. Reusing data or random outcomes across nominally separate replicates can invalidate the simple binomial Monte Carlo standard error. The independence assumption must match the simulation design.
  • Overreading a point estimate. A rate that differs from nominal is not automatically evidence of systematic miscalibration; its Monte Carlo uncertainty matters.

A point estimate alone is the simplest comparison, but it can make small random departures appear important. A Monte Carlo interval shows plausible uncertainty in the rate, while a standardized discrepancy summarizes distance from nominal in standard-error units. These approaches answer closely related diagnostic questions; neither explains why a departure occurred. A binomial interval is useful when normal approximations are questionable, especially with few replicates or rates near the boundaries.

Also distinguish a calibration diagnostic from a formal claim about all operating conditions. A test may appear calibrated at one null configuration and fail at another. A confidence interval may have reasonable coverage for one parameter value and not another. Repeating the check over prespecified scenarios gives a more informative picture, but each scenario’s result still has Monte Carlo uncertainty. The primary purpose here is to detect and investigate calibration concerns, not to summarize other performance goals such as power or estimation accuracy.

Why the Distinction Matters

A simulation study can be internally consistent and still give misleading reassurance if it reports only an empirical rate without uncertainty. Conversely, treating every small departure from nominal as a failure can lead to unnecessary conclusions driven by finite simulation size. Reporting the target, replicate count, estimated rate, and Monte Carlo uncertainty makes clear what the simulation supports.

Key takeaway: Compare null rejection rates with \(\alpha\) and interval coverage rates with \(1-\alpha\), but interpret each difference in light of binomial Monte Carlo uncertainty. A persistent, reproducible departure is a reason to investigate calibration; a single noisy estimate does not by itself identify a failure or its cause.

Check Your Understanding

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

  1. A test with \(\alpha=0.10\) rejects in 44 of 400 independent replicates under a true null. What is the estimated rejection rate, and what is the nominal Monte Carlo standard error?
  2. In a simulation with \(B=800\), 744 nominal 95% intervals contain the known target. Calculate the estimated coverage and explain its direction relative to nominal.
  3. Why is a rejection rate from a scenario where \(H_0\) is false not a Type I error estimate?
  4. A rate differs from nominal in one run but is close to nominal in a second, larger run under the same scenario. What should be examined before calling this a systematic calibration failure?

Solutions. (1) The estimated rate is \(44/400=0.110\). The nominal standard error is \(\sqrt{0.10(0.90)/400}=\sqrt{0.000225}=0.0150\). The 0.010 excess is about 0.67 nominal standard errors, so it is compatible with Monte Carlo fluctuation. (2) The estimated coverage is \(744/800=0.930\), which is 2.00 percentage points below the 0.950 target; quantify its Monte Carlo uncertainty before judging the discrepancy. (3) Type I error is the probability of rejecting \(H_0\) when \(H_0\) is true. If the simulated scenario is outside the null, rejection may instead reflect a true effect. (4) Verify that both runs used the same null scenario, estimand, analysis, and indicator rules; compare each rate with its Monte Carlo uncertainty and consider the combined evidence only if the runs are independent and the procedure was unchanged.

Clinical Biostats