Confidence intervals for simulation results
Show the statistical uncertainty around a result from repeated simulation runs.
Suppose each simulation run produces one mean patient waiting time. The average of those run means estimates the expected run mean; a confidence interval quantifies uncertainty in that estimate, not variation between individual patients.
For independent replications, a common two-sided interval for a mean uses the sample mean, sample standard deviation, number of replications n, and the Student-t critical value with n − 1 degrees of freedom. For small, strongly skewed samples, check whether that approximation is reliable.
mean ± t × sample standard deviation / √replications
Advanced details: when this interval is valid
The usual Student-t interval treats the replication-level estimates as independent observations. Raw observations collected close together inside one steady-state run are usually serially correlated and should not be substituted for independent replications.
For paired comparisons, form one difference per matched replication and build the interval from those differences rather than treating the two alternatives as unrelated samples.
For 25 independent run means, suppose the sample mean is 12 minutes and the sample standard deviation across runs is 5 minutes. With 24 degrees of freedom, the two-sided 95% Student-t critical value is approximately 2.064.
The interval is 12 ± 2.064 × (5 / √25), or 9.94–14.06 minutes. The sample statistics are invented to demonstrate the arithmetic; they are not Polymodus simulation output.
12 ± 2.064 × (5 / √25) = [9.94, 14.06] minutes
A 95% confidence interval for mean waiting time is about the unknown mean, not about where 95% of individual patients or future replications will fall.
If you need a tail risk such as the 95th percentile of patient waiting time, estimate that quantity directly and report its uncertainty separately.
For similar run-to-run variation, halving the interval half-width takes roughly four times as many independent runs. If two staffing options differ by less than the remaining uncertainty, collect more evidence before ranking them.
For matched runs, calculate one B − A waiting-time difference per run pair and place a confidence interval around their mean. A negative interval entirely below zero supports lower mean waiting under B; an interval crossing zero leaves the direction uncertain at the chosen confidence level.