Definition · Common random numbersA comparison of two configurations in which both are driven by the same stream of draws, so that replication j of system A and replication j of system B see the same randomness. The alternative — a fresh stream for each — is the independent scheme.
Theorem · The variance of a differenceVar(A − B) = Var A + Var B − 2 Cov(A, B). Hence any scheme that makes Cov(A, B) positive reduces the variance of the estimated difference, and one that makes it negative increases it.
Expand: Var(A − B) = E[((A − B) − E[A − B])²], and write (A − B) − E[A − B] as (A − E[A]) − (B − E[B]).
Squaring gives (A − E[A])² − 2(A − E[A])(B − E[B]) + (B − E[B])², and taking expectations term by term gives Var A − 2 Cov(A, B) + Var B. Nothing about the two distributions was used, so the identity holds however A and B were generated.
□
That is the entire mechanism. Nothing about queues is involved and nothing is approximated: pairing does not make the estimator better in some vague sense, it moves one named term of an identity. If the covariance does not go positive, the technique has not worked, and the panel prints the covariance so that the question is answerable.
Why sharing a stream makes the covariance positive
The two configurations on this page differ only in the service rate. The arrival test in slot t reads draw t, and the same draw against the same arrival probability gives the same answer, so both systems see exactly the same arrivals — verified, not assumed: the two runs produce identical arrival lists. A busy stretch is busy for both, a quiet one is quiet for both, and the difference between their occupancies is then driven by the service draws alone.
That is also why the kit takes the arrival draw for slot t from a fixed index and the service draw for the i-th customer from another fixed index, rather than consuming one stream in event order. Consuming in order would make the second system's arrival draws depend on how many service draws the first had taken, the two runs would silently decorrelate, and the mode built to measure the correlation would report a smaller one than the method actually achieves.
The measurement
A: p = 2/5, q = 1/2 exact mean 12/5
B: p = 2/5, q = 3/5 exact mean 6/5 true difference 6/5
24 replications of 200 slots, seed 1
shared stream separate streams
Var A 1.53075 1.53075
Var B 0.19979 0.21668
Cov(A, B) 0.46132 −0.17812
Var(A − B) 0.80789 2.10367
check 1.53075 + 0.19979 − 2(0.46132) = 0.80790
estimate of the difference 1.1329 1.0913
ratio of the two variances 2.604
Read the two difference columns and not the two estimates. The estimates are 1.1329 and 1.0913, both aiming at 6/5 = 1.2, and neither is better than the other in any sense the method claims. The variance of the difference is 0.80789 against 2.10367, a factor of 2.604, and that factor is the only thing common random numbers bought.
The separate-stream covariance is −0.17812 rather than zero, which is worth a moment. Independent runs have covariance zero in expectation; a sample covariance over twenty-four replications is an estimate of zero and lands somewhere near it, on either side. Here it landed slightly negative, which pushed the independent variance up by 0.356 rather than leaving it at Var A + Var B.
The reduction is itself an estimate
Change the seed and the factor moves: 2.604 at seed 1, 5.770 at seed 0, 1.823 at seed 7, on the same twenty-four replications of two hundred slots. The covariance is reliably positive; its size is a measurement with a spread of its own. This is the course's own hazard arriving in the middle of a variance-reduction lesson: the number that says how much better the estimator got is an estimate, and quoting it to three figures from one seed is exactly the habit the first three pages were about.
Example · A pair that does not consume the stream in stepThe panel's second pair changes the arrival probability as well — 2/5 against 1/2 — so the two systems no longer see the same arrivals and their service draws line up against different customers. The coupling is still strong, and on this instance it is stronger: the arrival test is x < 0.4m in one system and x < 0.5m in the other, so every arrival in the first is an arrival in the second, and the two arrival streams are nested rather than merely similar. The measured factor is 5.001 against the first pair's 2.604.
The lesson of that second pair is not that more differences are better. It is that the size of the reduction is a property of how the two runs happen to couple, that coupling is a fact about the implementation as much as about the model, and that the only way to know what a pairing bought is to compute both variances and divide. Every claim on this page is of that form.