Tutorials › Optimal Design and Model-Informed Dosing › Quantifying Uncertainty in Design Rankings

Simulation Studies of Designs · Tutorial 456 of 497

Quantifying Uncertainty in Design Rankings

Use replicate-level wins and ranks to estimate how often each design ranks best, then assess whether the simulation is precise enough to support a stable ranking.

Intermediate 12 min read

What You'll Learn

  • Define a replicate-level winner consistently from a prespecified performance measure.
  • Estimate the frequency with which each candidate ranks best across simulation replicates.
  • Calculate Monte Carlo standard errors and intervals for winner frequencies.
  • Compare candidates using paired, replicate-level differences in win indicators.
  • Recognize how ties, dependence, and few replicates can make rankings misleading.
  • Distinguish Monte Carlo uncertainty in a ranking from uncertainty about real-world performance.

Why a Design Ranking Needs an Uncertainty Measure

A simulation can produce a clear ordering of average performance while still giving different winners from replicate to replicate. For example, small differences in noisy performance measures may cause candidate A to rank first in some runs and candidate B in others. Reporting only the single candidate with the best simulated average hides this instability. Replicate-level rankings show how often each candidate wins under the specified simulation conditions, and Monte Carlo uncertainty indicates how precisely those frequencies have been estimated.

The target here is uncertainty arising from using a finite number of simulation replicates. It is not a probability that a design is truly best in practice, nor does it account automatically for uncertainty in the model, scenarios, or performance criterion. Those are features of the simulation setup that must be specified separately.

Definition: For each simulation replicate, evaluate every candidate design using the same prespecified performance measure and ranking rule. A candidate's best-rank frequency is the proportion of replicates in which it ranks best. It estimates the probability that the candidate ranks best in a new replicate generated under the same simulation procedure and conditions.

Define the Ranking Before Counting Wins

Suppose there are \(K\) candidate designs and \(R\) simulation replicates. Let \(S_{br}\) be the performance score for design \(b\) in replicate \(r\), where \(b=1,\ldots,K\) and \(r=1,\ldots,R\). The score must have a consistent direction: for example, larger values might mean greater precision or smaller values might mean less bias. If smaller is preferable, the ranking rule must say so; alternatively, the score can be transformed so that larger is always better.

For a unique winner, define \(I_{br}=1\) if design \(b\) has the best score in replicate \(r\), and \(I_{br}=0\) otherwise. Then \(\hat p_b=R^{-1}\sum_{r=1}^{R} I_{br}\) is the estimated best-rank frequency for design \(b\). With a unique winner in every replicate, the winner frequencies across all designs sum to one.

The replicate must represent the complete comparison being ranked. If a prespecified overall score combines scenarios using fixed weights, calculate that score for each design within each replicate and rank the resulting scores. Do not rank candidates separately in each scenario and then combine winner counts unless that different estimand has been deliberately chosen. As established in the earlier material on weighting scenarios, the target summary and its weights should be fixed before interpreting the results.

A ranking also needs a declared tie rule. If two scores are exactly equal, one option is to assign each tied best design fractional credit so that the credits sum to one for that replicate. Another is to record a separate tie outcome. Do not break ties differently from replicate to replicate without a stated rule. With fractional credit, the replicate contribution is no longer a zero-or-one indicator, so its Monte Carlo standard error should be calculated from the replicate-level credits rather than from a binomial formula.

Worked Example: Estimating Best-Rank Frequencies

In a hypothetical simulation, three designs are compared in 100 independent replicates using the same performance criterion. Each replicate has one unique winner. Design A wins 54 replicates, B wins 36, and C wins 10.

The estimated best-rank frequencies are the win counts divided by the number of replicates:

$$ \hat p_A=\frac{54}{100}=0.54,\qquad \hat p_B=\frac{36}{100}=0.36,\qquad \hat p_C=\frac{10}{100}=0.10. $$

Thus A ranks best in 54% of the simulated replicates, B in 36%, and C in 10%. These are estimates of replicate-level ranking frequencies under this simulation setup. They are not probabilities that the designs are truly best in a clinical population. The counts sum to 100, and the estimated frequencies sum to 1, as required when there is exactly one winner per replicate.

Monte Carlo Error in a Winner Frequency

If replicates are independent and generated under the same fixed simulation procedure, the win indicator for one design is a Bernoulli random variable: it equals one with probability \(p_b\) and zero otherwise. Its variance is \(p_b(1-p_b)\). The estimated frequency is the mean of \(R\) such indicators, so its Monte Carlo variance is \(p_b(1-p_b)/R\). Replacing the unknown \(p_b\) with \(\hat p_b\) gives the estimated Monte Carlo standard error.

$$ \widehat{SE}_{MC}(\hat p_b) = \sqrt{\frac{\hat p_b(1-\hat p_b)}{R}}. $$

This standard error describes how much the estimated frequency would typically vary across repeated simulation runs of the same size, conditional on the chosen simulation setup. It does not measure model uncertainty or uncertainty about whether the candidate designs and scenarios represent the intended application.

A confidence interval can communicate the precision of a frequency estimate. For a binomial proportion, a Wilson interval is often preferable to the simple estimate plus or minus 1.96 standard errors, particularly when the estimate is near zero or one or the replicate count is modest. For \(z=1.96\), its center and half-width are:

$$ \text{center} = \frac{\hat p_b+z^2/(2R)}{1+z^2/R}, \qquad \text{half-width} = \frac{z\sqrt{\hat p_b(1-\hat p_b)/R+z^2/(4R^2)}}{1+z^2/R}. $$

The interval describes uncertainty in the estimated replicate-level frequency under the assumed repeated-simulation process. A 95% interval is produced by a procedure that, in repeated applications under its assumptions, covers the fixed frequency about 95% of the time. It is not a statement that there is a 95% probability the parameter lies in this particular interval.

Worked Example: A Monte Carlo Interval for a Winner Frequency

For design A in the hypothetical example above, \(\hat p_A=0.54\) from \(R=100\) independent replicates. The estimated Monte Carlo standard error is:

$$ \widehat{SE}_{MC} = \sqrt{\frac{0.54(1-0.54)}{100}} = \sqrt{0.002484} = 0.04984. $$

Using the 95% Wilson interval with \(z=1.96\), the center is:

$$ \frac{0.54+1.96^2/(2\cdot100)}{1+1.96^2/100} = \frac{0.559208}{1.038416} \approx 0.5385. $$

The half-width is approximately \(0.0959\), giving an interval of approximately \(0.4427\) to \(0.6344\). In this hypothetical setting, the estimated frequency with which A ranks best is 54%, with a 95% Wilson interval from about 44.3% to 63.4%. The interval is fairly broad: 100 replicates do not pin down this frequency very precisely.

Comparing Winner Frequencies Without Losing the Pairing

A difference in two candidates' best-rank frequencies can be estimated by subtracting their replicate-level win indicators. For designs A and B, define \(D_r=I_{Ar}-I_{Br}\). In a replicate where A wins, \(D_r=1\); where B wins, \(D_r=-1\); and where neither wins, \(D_r=0\). The mean of \(D_r\) estimates \(p_A-p_B\).

When designs are evaluated within the same replicate, the comparison is paired. Its estimated standard error should use the variation in the replicate-level differences, not treat the two win-frequency estimates as if they came from unrelated simulation runs. This is especially important when the simulated conditions are shared across candidates, as with common random numbers.

$$ \widehat{\Delta}_{AB} = \bar D = \frac{1}{R}\sum_{r=1}^{R}D_r, \qquad \widehat{SE}_{MC}(\bar D) = \frac{s_D}{\sqrt{R}}, $$

Here \(s_D\) is the sample standard deviation of the \(R\) replicate-level differences. For a sufficiently large number of independent replicates, an approximate 95% interval is \(\bar D\pm1.96s_D/\sqrt R\). If this interval includes zero, the simulation has not estimated a clear difference in the candidates' win frequencies at that level of Monte Carlo precision. This does not prove their frequencies are equal.

Worked Example: Checking Whether Two Winners Are Clearly Separated

In a second hypothetical simulation with 100 paired replicates, A wins 55 replicates and B wins 45; assume these are the only candidates and there are no ties. Thus each \(D_r\) is either 1 or \(-1\), and the estimated frequency difference is:

$$ \bar D=\frac{55-45}{100}=0.10. $$

The sum of squared deviations from the mean is \(100(1-0.10^2)=99\), so the sample variance is \(s_D^2=99/99=1\). The standard error is \(1/\sqrt{100}=0.10\). A large-sample approximate 95% interval is:

$$ 0.10\pm1.96(0.10)=[-0.096,\,0.296]. $$

Although A has the higher estimated win frequency, the interval includes zero. The simulation does not establish a stable separation in win frequency between A and B at this precision. More replicates could reduce Monte Carlo error, but would not necessarily make the underlying frequencies far apart.

Ranks Beyond First Place and Scenario-Level Scores

Best-rank frequency answers a focused question: how often does a design come first? It does not show whether a non-winning design usually ranks a close second or often ranks last. For a fuller summary, define an indicator for each rank \(k\) and estimate the proportion of replicates in which each design occupies that rank. The same sample-proportion logic applies to each rank frequency. With a unique complete ranking in every replicate, each design's rank frequencies sum to one across ranks.

The ranking calculation should reflect the actual comparison target. For an overall score built from multiple scenarios, preserve the replicate-level structure: calculate the prespecified weighted score for each candidate in each replicate, then determine that replicate's winner. If candidate scores across scenarios are paired within a replicate, keep those values together. Resampling or otherwise treating scenario-specific candidate scores as unrelated would discard the pairing and can misrepresent Monte Carlo uncertainty.

Worked Example: Ranking Weighted Scores Within Each Replicate

Suppose two hypothetical scenarios have fixed weights 0.70 and 0.30, and larger dimensionless scores are preferred. For one replicate, the scores are:

DesignScenario 1Scenario 2Weighted score
A0.800.400.680
B0.720.700.714
C0.750.550.690

For A, the calculation is \(0.70(0.80)+0.30(0.40)=0.680\). For B it is \(0.70(0.72)+0.30(0.70)=0.714\), and for C it is \(0.70(0.75)+0.30(0.55)=0.690\). Therefore B ranks first in this replicate.

Now suppose the same calculation across five hypothetical replicates gives winners B, B, C, A, and C. The estimated best-rank frequencies are \(2/5=0.40\) for B, \(2/5=0.40\) for C, and \(1/5=0.20\) for A. This tiny illustration shows how to apply the ranking rule; five replicates are far too few to estimate these frequencies precisely.

Assumptions, Diagnostics, and Limitations

The basic standard-error and interval calculations rely on independent replicates generated under a consistent simulation procedure. The ranking rule and performance criterion must also be applied consistently, and each replicate must provide a valid comparison of the candidate designs. If replicates are dependent, the usual standard error based on \(R\) independent units may be too small; the independent unit is then the appropriate cluster or simulation batch, not necessarily each stored row.

Check the replicate-level results before interpreting frequencies. Confirm that all candidates were evaluated in each replicate, that the score direction and tie handling are consistent, and that the winner counts add up to the expected total. Examine whether a few unusually extreme replicates dominate the score calculation or whether convergence and estimation failures occur disproportionately for particular designs. A ranking of successful fits alone can be misleading if failure handling differs across candidates.

Ranking frequencies can be sensitive to the choice of score, scenario weights, tie tolerance, and candidate set. Adding another candidate can change which design ranks first, even when the original candidates' scores remain unchanged. A candidate can also have the highest average score but fail to rank first in many individual replicates. Conversely, frequent first place does not by itself establish superior average performance or clinical importance.

The principal alternatives answer different questions. Ranking candidates by an aggregate mean score gives a point ordering of average performance, but does not show how often that ordering changes across replicates. Pairwise score differences quantify the magnitude of performance contrasts on the score's scale, rather than the frequency of wins. Best-rank frequencies give an easily interpreted stability summary, but discard how large the score gaps are. These summaries can be reported together when each is tied to a clearly defined question.

Common Mistakes

  • Calling a win frequency the probability a design is truly best. It estimates how often the design wins under the specified simulation procedure, not a posterior probability about real-world truth.
  • Ranking average scores and presenting that as replicate-level stability. A single average ranking does not reveal how often each candidate wins across replicates.
  • Using an unpaired standard error for paired comparisons. Calculate differences within matched replicates and estimate uncertainty from those differences.
  • Ignoring ties or changing the rule after seeing results. Prespecify a tie rule and apply it uniformly; fractional credits require a variance calculation suited to those replicate-level values.
  • Assuming a higher win frequency means a meaningful advantage. Check its Monte Carlo uncertainty and, where relevant, the size of the underlying score differences.
Key takeaway: Define the replicate-level ranking rule first, then estimate best-rank frequencies from the replicate outcomes. Quantify their Monte Carlo uncertainty and preserve pairing when comparing candidates. A ranking is only as informative as its simulation conditions, score, tie rule, and replicate count.

Check Your Understanding

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

  1. A design wins 30 of 60 independent replicates. What is its estimated best-rank frequency and approximate Monte Carlo standard error?
  2. Why should two candidates evaluated in the same simulation replicates generally be compared using replicate-level paired differences?
  3. If a replicate has two tied best designs and each receives half a win, can the ordinary binomial standard-error formula be applied directly to each design's credits? Explain.
  4. Does a 95% interval for a winner frequency describe uncertainty that the design is truly best in clinical practice? What does it describe?

Solutions. 1. The estimated frequency is \(30/60=0.50\). Its approximate Monte Carlo standard error is \(\sqrt{0.50(1-0.50)/60}=\sqrt{0.004167}=0.06455\), or about 6.46 percentage points. 2. The candidates share replicate conditions, so their outcomes may be associated. Taking the difference within each replicate preserves that pairing; its standard error reflects the observed variability of those paired differences. 3. No. Fractional credit is not a Bernoulli zero-or-one outcome. Calculate the sample standard deviation of the replicate-level credits and divide by the square root of the replicate count. 4. No. Under the stated repeated-simulation assumptions, it describes uncertainty in the estimated frequency with which the design ranks best under the specified simulation procedure.

Clinical Biostats