Tutorials › Bayesian Clinical Trials › Monte Carlo Uncertainty In The Calibrated Cutoff

Calibrating Operating Characteristics · Tutorial 198 of 696

Monte Carlo Uncertainty In The Calibrated Cutoff

Learn to distinguish a point-estimated cutoff from a cutoff supported by simulation uncertainty, and to quantify how uncertainty in simulated error rates affects the choice.

Advanced 13 min read

What You'll Learn

  • Define the Monte Carlo error-rate estimate at each candidate decision cutoff.
  • Calculate and interpret its simulation standard error and confidence interval.
  • Use uncertainty bounds, rather than only point estimates, when selecting a cutoff.
  • Quantify local cutoff uncertainty with an interpolation and delta-method approximation.
  • Recognize the effects of cutoff selection, dependence, and finite simulation size.
  • Distinguish Monte Carlo uncertainty from uncertainty about the trial model itself.

Why a Calibrated Cutoff Is Uncertain

A calibrated decision cutoff is usually chosen by simulating trial outcomes under a null scenario and estimating the probability that the decision rule declares a positive result. But that probability is not observed directly: it is estimated from a finite number of simulated trials. A cutoff that appears to meet a target error rate may therefore fail to meet it when the simulation is repeated. This is Monte Carlo uncertainty in the calibrated cutoff.

The distinction matters in practice. If the target false-positive rate is 5%, an estimated rate of 4.9% is not, by itself, strong evidence that the true simulated rate is no greater than 5%. The amount of uncertainty depends on the number of simulation replicates and on how close the estimated rate is to the target. It also matters how the rates at nearby candidate cutoffs vary together.

Definition: Let \(c\) be a candidate decision cutoff, and let \(R(c)\) be the probability of a false-positive decision under a specified null scenario when cutoff \(c\) is used. In \(M\) independent simulated trial replicates, let \(Y_m(c)=1\) if replicate \(m\) produces a false-positive decision and \(Y_m(c)=0\) otherwise. The estimated error rate is \(\hat R(c)=\sum_{m=1}^{M}Y_m(c)/M\). When increasing \(c\) makes a positive decision harder, \(R(c)\) is nonincreasing.

The binomial standard-error calculation assumes that, at a fixed cutoff and scenario, the replicate indicators are independent and have the same false-positive probability \(R(c)\). Thus \(\sum_m Y_m(c)\sim\mathrm{Binomial}(M,R(c))\), and the estimated Monte Carlo standard error is \(SE\{\hat R(c)\}=\sqrt{\hat R(c)[1-\hat R(c)]/M}\). This measures simulation variability conditional on the simulated trial model and scenario. It does not measure uncertainty about whether that model is scientifically appropriate.

Rate Uncertainty and a Cutoff Decision

Suppose the calibration goal is to keep the false-positive rate at or below \(\alpha\). For a rule whose error rate decreases as \(c\) increases, if the set \(\{c:R(c)\leq\alpha\}\) is nonempty and has a minimum, that minimum is the population calibration point; otherwise, no such minimum cutoff is defined. In a finite search over candidate values, however, \(R(c)\) is unknown. A point estimate \(\hat R(c)\leq\alpha\) identifies a candidate, but does not establish that its error rate is below the target.

A confidence interval describes the simulation uncertainty in \(R(c)\). A one-sided upper confidence bound is especially useful for a conservative calibration decision: if that bound is at most \(\alpha\), the simulation supports the conclusion that the error rate is below the target at the stated confidence level. This does not prove that the rule meets the target, and a bound above \(\alpha\) does not prove that it fails. It means the available simulation does not establish the desired claim at that level.

Worked Example: Monte Carlo Standard Error Near the Target

In a hypothetical null-scenario simulation, a candidate cutoff \(c=0.30\) produces 118 false-positive decisions in \(M=2000\) independent replicates. The target rate is \(\alpha=0.05\). Estimate the error rate and its Monte Carlo standard error.

The estimated rate is \(\hat R(0.30)=118/2000=0.0590\), or 5.90%. The estimated standard error is \[ \sqrt{\frac{0.0590(1-0.0590)}{2000}} =\sqrt{0.0000277595} \approx 0.00527. \] Thus the estimated simulation standard error is 0.527 percentage points.

A rough 95% normal-approximation interval is \(0.0590\pm1.96(0.00527)=(0.0487,0.0693)\), or approximately 4.87% to 6.93%. Its upper endpoint exceeds the 5% target. The point estimate is also above 5%, so this candidate does not meet the target by point estimate; the interval additionally shows that simulation variability is substantial relative to the distance from the target. A normal interval is only an approximation, particularly when rates are near zero or one; a binomial interval is preferable in such cases.

Using an Upper Confidence Bound

A practical selection rule is to require a suitable upper confidence bound for \(R(c)\) to be no greater than \(\alpha\), then select the least stringent candidate meeting that requirement. For a single candidate, a one-sided binomial confidence bound can be used. When many cutoffs are searched, treating each pointwise interval as if it covered all rates simultaneously is not justified: selection among candidates can make the chosen rate look more favorable than it is.

One simple way to account for searching \(K\) candidate cutoffs is Bonferroni adjustment. To obtain an overall confidence level of at least \(1-\gamma\), construct a one-sided upper bound at each candidate using tail probability \(\gamma/K\). The probability that any of the \(K\) bounds fails to cover its rate is at most the sum of their failure probabilities, hence at most \(\gamma\). This adjustment can be conservative, especially when estimates at cutoffs are strongly dependent. Other approaches include simultaneous bands that use the dependence structure or an independently simulated validation set for the selected cutoff.

When candidates are ordered and the error rate is nonincreasing, monotonicity provides another useful check. Noisily estimated rates that rise at higher cutoffs can signal ordinary Monte Carlo fluctuation, a coding problem, or a decision rule that is not actually nested. Monotone smoothing can reduce irregularities, but it does not eliminate uncertainty; the procedure used to smooth or constrain rates should be reported.

Worked Example: Comparing Candidate Cutoffs With Wilson Intervals

Consider a hypothetical search with \(M=1000\) null simulations at each candidate cutoff and target \(\alpha=0.05\). For illustration, use the Wilson binomial interval with \(z=2.498\), corresponding to a two-sided confidence level of approximately 98.75%. The Wilson endpoints for \(x\) false-positive outcomes are \[ \frac{\hat p+z^2/(2M)\ \pm\ z\sqrt{\hat p(1-\hat p)/M+z^2/(4M^2)}}{1+z^2/M}, \qquad \hat p=x/M. \]

At \(c=0.35\), suppose \(x=32\), so \(\hat p=0.032\). Substitution gives a Wilson interval of approximately \((0.02074,0.0491)\). Its upper endpoint is below 0.05, so this pointwise interval supports an error rate below the target at its stated confidence level.

At \(c=0.30\), suppose \(x=49\), so \(\hat p=0.049\). The interval is approximately \((0.03457,0.0690)\). The point estimate is below the target, but the interval does not establish that the rate is at most 0.05. At \(c=0.25\), suppose \(x=71\), so \(\hat p=0.071\); the interval is approximately \((0.0533,0.09406)\), placing the entire interval above the target.

These computations illustrate why choosing the first cutoff whose point estimate falls below 5% can be fragile: at \(c=0.30\), the estimated rate is 4.9%, but its upper confidence endpoint is 6.90%. The intervals here are pointwise, not a simultaneous guarantee across the three searched cutoffs. If the decision requires an overall confidence statement after searching, the selection procedure must account for that search, for example with a simultaneous bound or fresh validation simulations.

From Rate Uncertainty to Cutoff Uncertainty

Rate intervals do not directly give an interval for the cutoff. A local approximation can do so when the rate curve is smooth near its crossing of \(\alpha\), and when rates at nearby cutoffs are estimated precisely enough to define a meaningful slope. On a discrete candidate grid, the simplest honest report may instead be the set of candidates that cannot be distinguished as meeting or missing the target. Interpolation should not suggest precision unsupported by the simulation.

For a brief derivation, let \(R(c^*)=\alpha\), and suppose \(R\) is differentiable near \(c^*\) with \(R'(c^*)\ne0\). A small rate error \(\Delta R\) changes the crossing by approximately \(\Delta c\), where a first-order Taylor expansion gives \(R(c^*+\Delta c)\approx R(c^*)+R'(c^*)\Delta c\). Since \(R(c^*)=\alpha\), it follows that \(\Delta c\approx-\Delta R/R'(c^*)\). Consequently, a local standard-error approximation is \(SE(\hat c)\approx SE\{\hat R(c^*)\}/|R'(c^*)|\). A shallow rate curve has small \(|R'(c^*)|\), and therefore can produce a highly uncertain cutoff even when rate estimates have modest standard errors.

In practice \(R'(c^*)\) and the crossing are estimated, often from rates at two neighboring cutoffs. Their Monte Carlo errors may be correlated because the same simulated trials are evaluated under both cutoffs. If the decision events are nested, the indicators are paired rather than independent: ignoring their covariance can give an incorrect uncertainty estimate for the difference in rates. Any interpolation-based uncertainty interval is an approximation that depends on local linearity, a nonzero slope, and an appropriate estimate of this covariance.

Worked Example: Approximate Uncertainty in an Interpolated Cutoff

Suppose hypothetical simulations use the same \(M=1000\) null trial replicates at cutoffs \(c_L=0.25\) and \(c_U=0.30\). They yield 71 and 49 false positives, respectively, so \(\hat R_L=0.071\) and \(\hat R_U=0.049\). Assume the decisions are nested, so a trial that is positive at \(c_U\) is also positive at \(c_L\). Estimate the crossing of \(\alpha=0.05\) by linear interpolation.

The interpolated crossing is \[ \hat c=0.25+0.05\frac{0.071-0.050}{0.071-0.049} =0.25+0.05\frac{0.021}{0.022} \approx0.2977. \] This is a local interpolation between two simulated points, not proof that the true crossing is exactly 0.2977.

For an approximate uncertainty calculation, write \(g(a,b)=0.25+0.05(a-0.05)/(a-b)\), with \(a=\hat R_L\) and \(b=\hat R_U\). At \(a=0.071,b=0.049\), the partial derivatives are \[ \frac{\partial g}{\partial a} =\frac{0.05(0.05-b)}{(a-b)^2}\approx0.1033, \qquad \frac{\partial g}{\partial b} =\frac{0.05(a-0.05)}{(a-b)^2}\approx2.169. \] For nested indicators, \(\widehat{\mathrm{Cov}}(a,b)=\hat R_U(1-\hat R_L)/M=0.049(0.929)/1000=0.00004552\). The rate variances are \(0.071(0.929)/1000=0.000065959\approx0.00006596\) and \(0.049(0.951)/1000=0.00004660\). The delta-method variance is therefore approximately \[ (0.1033)^2(0.00006596)+(2.169)^2(0.00004660) +2(0.1033)(2.169)(0.00004552) \approx0.0002404. \] Thus the approximate cutoff standard error is \(\sqrt{0.0002404}\approx0.0155\), about 0.0155 cutoff units. A rough normal interval would be \(0.2977\pm1.96(0.0155)\), or approximately \((0.267,0.328)\). Its width warns against reporting the interpolated point estimate as precise. This approximation is especially fragile if the local rate curve is not close to linear or its estimated slope is near zero.

Diagnostics, Alternatives, and Limitations

Several checks help determine whether the reported cutoff uncertainty is credible:

  • Inspect the rate curve. Plot estimated rates and uncertainty bounds across candidate cutoffs. Strong nonmonotonicity under a supposedly nested decision rule deserves investigation.
  • Check simulation size where the decision is close. More replicates reduce binomial Monte Carlo standard errors at the usual rate proportional to \(1/\sqrt{M}\). Doubling \(M\) does not halve the standard error.
  • Account for searching. A pointwise interval at the selected cutoff is not automatically a confidence statement for the cutoff selected from many candidates.
  • Check the local slope before interpolating. If nearby rates are almost equal, the estimated crossing can move substantially from small changes in the rates.
  • Separate simulation uncertainty from model uncertainty. More replicates sharpen the estimate under the specified simulation model; they do not correct a misspecified null scenario, an incorrect simulator, or a poorly chosen operating-characteristic target.

The principal alternative to uncertainty-aware calibration is to select a cutoff using only the estimated rates. That is simple and can be useful for an exploratory search, but it can select a cutoff whose true simulated rate exceeds the target. A confidence-bound rule makes the evidence requirement explicit, at the cost of often selecting a more conservative cutoff or requiring more simulations. An independent validation simulation avoids reusing the search data for the final assessment, though it also has finite-simulation uncertainty and may require substantial computation.

A common mistake is to interpret \(\hat R(c)=0.049\) as proof that the false-positive probability is below 0.05. The correction is that 0.049 is an estimate from finite replicates: assess its standard error or confidence bound, and account for searching if the cutoff was selected from multiple candidates. Even a bound below the target supports a claim only under the simulation assumptions and at its stated confidence level.

Key takeaway: A calibrated cutoff is itself estimated when its operating characteristic is simulated. Report the simulation size, the uncertainty in error rates near the target, and how the search over cutoffs was handled. Treat a point-estimated crossing as a guide, not as an exact boundary.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. With \(M=2500\) replicates and \(\hat R=0.04\), calculate the estimated Monte Carlo standard error.
  2. A candidate cutoff has estimated error rate 0.048 and a one-sided upper confidence bound of 0.061. Does this establish that the rate is at most a target of 0.05?
  3. Why can a shallow error-rate curve make the calibrated cutoff uncertain even when rate estimates have small standard errors?
  4. Three pointwise 95% intervals are examined while searching over three cutoffs. Do they automatically provide 95% simultaneous coverage?
  5. If the same nested simulated trials are used at two cutoffs, why should the covariance of their estimated rates be considered when estimating cutoff uncertainty?

Solutions. (1) \(SE=\sqrt{0.04(0.96)/2500}=\sqrt{0.00001536}\approx0.00392\), or 0.392 percentage points. (2) No. The upper bound exceeds 0.05, so the simulation does not establish that the rate is at most the target at that confidence level. (3) The crossing changes by approximately \(\Delta c=-\Delta R/R'(c^*)\); when the slope is shallow, a small rate error can imply a large cutoff change. (4) No. Pointwise coverage does not guarantee simultaneous coverage after examining multiple cutoffs. (5) Nested decisions on shared trials produce dependent indicators; the covariance contributes to the variance of rate differences and therefore affects the uncertainty of the estimated crossing.

Clinical Biostats