Tutorials › Bayesian Clinical Trials › Averaging Operating Characteristics Across Scenarios

Calibrating Operating Characteristics · Tutorial 216 of 696

Averaging Operating Characteristics Across Scenarios

Compute and interpret weighted average operating characteristics, while distinguishing the chosen scenario mix from worst-case performance and simulation error.

Advanced 11 min read

What You'll Learn

  • Define a scenario-weighted average operating characteristic and its required weights.
  • Derive the average as an expectation over a specified scenario distribution.
  • Calculate weighted performance from scenario-specific operating characteristics.
  • Estimate Monte Carlo uncertainty when simulation counts differ across scenarios.
  • Explain how alternative weights change the question answered by the summary.
  • Identify when a weighted average can obscure poor performance in an important scenario.

Why Average Across Scenarios?

A Bayesian trial decision rule is evaluated under specified data-generating conditions. Those conditions may differ in treatment effect, baseline event risk, accrual, or other features. The operating characteristic for one scenario describes performance conditional on that particular set of conditions. A decision maker may also want a single summary across several scenarios. Such a summary is meaningful only after specifying how much weight each scenario receives.

For example, an average probability of declaring success can summarize expected performance under a stated distribution of plausible scenarios. It does not, by itself, describe the probability of success under every scenario, nor does it guarantee acceptable performance in the least favorable scenario. The weights are part of the estimand: changing them changes the question being answered.

Definition: Let \(s=1,\ldots,K\) index a finite set of trial scenarios, and let \(OC_s\) be an operating characteristic under scenario \(s\), computed using the same decision rule and outcome definition in every scenario. Given scenario weights \(q_s\) satisfying \(q_s\geq 0\) and \(\sum_{s=1}^K q_s=1\), the scenario-weighted average is \(\sum_{s=1}^K q_s OC_s\). The weights describe the relative contribution of each scenario to this summary.

The operating characteristic might be the probability of declaring the treatment successful, the probability of a false-positive decision under a null scenario, or the probability that a credible interval covers its target. The direction of a desirable value depends on the measure: larger success probability may be desirable, while smaller false-positive probability may be desirable. The average must combine the same defined measure across scenarios, not unlike quantities chosen only because they are available.

Expectation and Interpretation

A useful interpretation follows by introducing a scenario label \(S\). Suppose \(P(S=s)=q_s\), and let \(Y\) be an indicator that equals 1 when a specified event occurs, such as a trial declaring success, and 0 otherwise. If \(P(Y=1\mid S=s)=OC_s\), then the law of total expectation gives the weighted average event probability.

$$ P(Y=1)=E(Y)=\sum_{s=1}^{K}P(S=s)E(Y\mid S=s) =\sum_{s=1}^{K}q_s OC_s. $$

This identity explains the interpretation: imagine selecting a scenario according to the stated weights and then conducting a trial under that scenario. The average is the event probability in this two-stage thought experiment. The scenario selection need not actually be random in trial planning. The weights can instead encode a planning distribution, a policy-relevant mix, or an explicitly chosen way to summarize a finite scenario set. In each case, report what the weights represent.

The scenarios should be defined clearly enough that each \(OC_s\) refers to a coherent data-generating condition and the same analysis and decision rule. The weights must be nonnegative and sum to one. If supplied weights do not sum to one but are intended as relative weights, normalize them by dividing each by their total before calculating the average. A weighted sum using unnormalized values is not an average probability.

Worked Example: Average Probability of Declaring Success

Hypothetical planning exercise. A trial team evaluates one fixed decision rule under three scenarios. The estimated probabilities of declaring success are 0.72, 0.84, and 0.91. The team assigns scenario weights 0.20, 0.50, and 0.30, respectively. Calculate and interpret the weighted average.

The weights are nonnegative and sum to \(0.20+0.50+0.30=1.00\). Therefore, the weighted average is

$$ 0.20(0.72)+0.50(0.84)+0.30(0.91) =0.144+0.420+0.273 =0.837. $$

Under the specified scenario mix, the average probability of declaring success is 0.837, or 83.7%. This is not the probability for any one of the three scenarios; their individual probabilities remain 72%, 84%, and 91%. Nor is 83.7% a guarantee about performance under a different scenario distribution.

Weights Define the Target Summary

Weights should be selected to match the purpose of the summary rather than to make the result look favorable. They might represent a defensible distribution over plausible nuisance-parameter values, a planned mix of patient populations or sites, or a policy-defined distribution of conditions. They can also be equal by deliberate convention, in which case the result describes the arithmetic mean across the listed scenarios. Equal weighting does not automatically mean that scenarios are equally plausible.

An average across scenarios answers a different question from a worst-case summary. A worst-case operating characteristic focuses on the most extreme value over the specified set. A weighted average reflects the distribution encoded by \(q_s\), and can be acceptable even when one scenario has poor performance if that scenario receives little weight. For safety-critical or decision-critical conditions, the average should therefore be read alongside scenario-specific results and any required performance constraints.

Worked Example: Average False-Positive Probability Under Null Scenarios

Hypothetical calibration results. Suppose three scenarios all represent no treatment effect but have different nuisance conditions. The estimated false-positive probabilities are 0.015, 0.040, and 0.090. A planning distribution assigns weights 0.50, 0.30, and 0.20. Calculate the weighted average and compare it with the largest scenario-specific value.

The weighted average false-positive probability is

$$ 0.50(0.015)+0.30(0.040)+0.20(0.090) =0.0075+0.0120+0.0180 =0.0375. $$

Thus the average is 3.75% under the specified distribution across these null scenarios. The largest scenario-specific false-positive probability is 9.00%, so reporting only the average would hide that value. The 3.75% figure is not a claim that the false-positive probability is at most 3.75% in every null scenario; it is a mixture average. Whether it is an appropriate calibration target depends on the intended scenario distribution and any separate constraints on individual scenarios.

Estimating the Average by Simulation

In operating-characteristic simulations, \(OC_s\) is usually unknown and is estimated by repeated simulated trials under scenario \(s\). If \(M_s\) independent simulated trials are run and \(R_s\) meet the event definition, then \(\widehat{OC}_s=R_s/M_s\). The weighted estimate is formed using the scenario weights, not by simply pooling all simulated trials when the simulation counts differ.

$$ \widehat{OC}_{\mathrm{avg}} =\sum_{s=1}^{K}q_s\widehat{OC}_s =\sum_{s=1}^{K}q_s\frac{R_s}{M_s}. $$

If the trial outcomes are simulated independently within and across scenarios, each event indicator is Bernoulli with probability \(OC_s\), and the scenario estimates are independent. Conditional on the chosen scenarios and weights, the variance of the weighted estimator is then

$$ \operatorname{Var}(\widehat{OC}_{\mathrm{avg}}) =\sum_{s=1}^{K}q_s^2\frac{OC_s(1-OC_s)}{M_s}. $$

Replacing each unknown \(OC_s\) with \(\widehat{OC}_s\) gives an estimated Monte Carlo variance. Its square root is the Monte Carlo standard error, which describes simulation noise in estimating the weighted average. It does not measure uncertainty about whether the scenarios or weights are scientifically appropriate. If simulations are dependent, for example because of a shared random-number or resampling design, the independence-based variance formula may not apply without adjustment.

Worked Example: Unequal Simulation Counts

Hypothetical simulation output. Consider two scenarios with weights 0.25 and 0.75. In 1,000 simulated trials under the first scenario, 720 meet the event definition. In 4,000 trials under the second scenario, 3,240 meet it. Calculate the weighted estimate and its approximate Monte Carlo standard error.

The scenario-specific estimates are \(720/1000=0.720\) and \(3240/4000=0.810\). The weighted estimate is

$$ \widehat{OC}_{\mathrm{avg}} =0.25(0.720)+0.75(0.810) =0.180+0.6075 =0.7875. $$

Using the independent Bernoulli simulation variance estimate,

$$ \widehat{\operatorname{Var}}(\widehat{OC}_{\mathrm{avg}}) =0.25^2\frac{0.720(1-0.720)}{1000} +0.75^2\frac{0.810(1-0.810)}{4000} \approx 0.00003424. $$

The estimated Monte Carlo standard error is \(\sqrt{0.00003424}\approx0.00585\), or 0.585 percentage points. A rough normal-approximation interval for simulation error is \(0.7875\pm1.96(0.00585)\), giving approximately 0.776 to 0.799. This interval quantifies Monte Carlo error under the specified setup; it is not an interval for the appropriateness of the weights or for performance under unmodeled scenarios.

Diagnostics, Alternatives, and Limitations

Before interpreting an average, verify that all component operating characteristics use the same event definition, decision rule, and relevant analysis conventions. Check that the weights are nonnegative, sum to one, and have a stated rationale. Inspect the scenario-specific values as well as the average. A striking gap between the average and a poor result in a heavily weighted scenario may be important; a poor result in a lightly weighted scenario may still matter if that scenario is scientifically or ethically important.

A practical diagnostic is to recompute the summary under plausible alternative weights. If modest, defensible changes in weights substantially alter the result, the headline average is sensitive to the chosen scenario distribution and should not be presented as a robust single summary. This check does not identify the “correct” weights, but it makes the dependence visible. Another diagnostic is to compare the weighted result with the minimum and maximum scenario-specific values: any weighted average with valid weights must lie between them.

The alternatives answer different questions. Equal weights summarize the listed scenarios symmetrically, regardless of their plausibility. A worst-case summary emphasizes the most adverse scenario in the set. A scenario-specific table keeps the full pattern visible without collapsing it. No one summary replaces the others in every application. In particular, an average can conceal concentrated failures, and a worst-case value depends on which scenarios were included. The scenario set and weights are both substantive choices, not merely computational details.

A common mistake is to average scenario results using the number of simulations run in each scenario as the weights. That calculation gives more influence to scenarios that received more computing effort, even if they were not intended to be more probable or important. For example, the unequal-count simulation above uses weights 0.25 and 0.75 because those were the specified scenario weights, not because 1,000 and 4,000 trials were simulated. The correction is to estimate each \(OC_s\) using its own simulation results and then apply the prespecified \(q_s\). Simulation allocation affects Monte Carlo precision, not the target average.

Key takeaway: A scenario-weighted average is an expectation under an explicit distribution across scenarios. Report the scenario-specific results, the weights and their rationale, and the uncertainty from simulation separately; the average alone does not establish acceptable performance everywhere.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. Two scenarios have operating characteristics 0.60 and 0.90, with weights 0.40 and 0.60. What is the weighted average?
  2. Why does a weighted average false-positive probability of 4% not imply that every null scenario has a false-positive probability of at most 4%?
  3. Two scenario estimates are based on 500 and 5,000 simulations. Should those simulation counts determine the scenario weights? Explain.
  4. What does a Monte Carlo standard error quantify, and what important uncertainty does it not quantify?
  5. If weights are 2 and 3 as relative weights, what normalized weights should be used?

Solutions. (1) \(0.40(0.60)+0.60(0.90)=0.78\). (2) The average mixes scenario-specific values according to the stated weights; an individual value can exceed the average. (3) No. The counts determine precision of the scenario estimates, while the target weights must reflect the intended scenario distribution or summary. (4) It quantifies simulation noise in the estimated operating characteristic under the simulation design; it does not quantify uncertainty about the scenario set, weights, or model assumptions. (5) Divide by the total \(2+3=5\), giving weights \(0.40\) and \(0.60\).

Clinical Biostats