Common random numbers for scenario comparison
Pair random inputs across alternatives to reduce noise in a comparison, then check whether the pairing actually helped.
Suppose you compare three and four service desks. With independent random inputs, one alternative may receive an easier set of arrivals simply by chance.
Pair run 1 under three desks with run 1 under four desks using corresponding arrivals and service-time draws. Repeat for new run pairs. Compare the B − A waiting-time differences rather than treating the two sets of results as unrelated.
In the table, A has three desks and B has four. Subtract A's mean wait from B's in each matched pair. A negative result means the four-desk scenario had a lower mean wait in that pair.
paired effect for run i = result(Bᵢ) − result(Aᵢ)
| Pair | 3 desks | 4 desks | B − A |
|---|---|---|---|
| 1 | 18 | 15 | −3 |
| 2 | 24 | 20 | −4 |
| 3 | 21 | 19 | −2 |
| 4 | 27 | 22 | −5 |
The paired mean is (−3 − 4 − 2 − 5) / 4 = −3.5 minutes. These four invented pairs demonstrate the calculation; they do not establish an actual improvement.
Suppose one stream produces 0.2, 0.7, then 0.4. Both scenarios use 0.2 for patient 1's service time. If B consumes 0.7 for an extra failure check, patient 2 receives 0.4 in B but 0.7 in A. The seeds match; the patient-level draws do not.
Give arrivals and service times distinct streams, and compare the actual draws assigned to corresponding patients or jobs. If scenarios route patients differently, even a service stream can become misaligned unless pairing is defined more carefully.
A shared seed is not proof of correct pairing. Verify how Polymodus assigns and consumes streams before claiming that it automatically preserves CRN alignment.
Compare the variance of the paired B − A differences against an independently randomized comparison. Positive covariance between matched A and B results can lower difference variance; negative covariance can increase it.
Check the actual arrival and service draws for a few matched run pairs, especially after a route or resource change.
Advanced details: why positive pairing helps
For a paired difference B minus A, positive covariance between A and B reduces the variance of the difference. If the pairing creates little correlation, there may be little benefit; if it creates negative correlation, the comparison can become noisier.
Var(B - A) = Var(B) + Var(A) - 2 Cov(A, B)