Common random numbers for scenario comparison

Pair random inputs across alternatives to reduce noise in a comparison, then check whether the pairing actually helped.

On this page
  1. Compare alternatives under matched random conditions
  2. Analyze paired differences
  3. Why matching seeds may not produce matched inputs
  4. Check whether pairing actually reduces variance

Compare alternatives under matched random conditions

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.

Analyze paired differences

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ᵢ)

Illustrative paired waiting times (minutes), not Polymodus run output
Pair3 desks4 desksB − A
11815−3
22420−4
32119−2
42722−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.

Why matching seeds may not produce matched inputs

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.

Check whether pairing actually reduces variance

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)

References