Definition · Control variateA control variate for an estimator X is a second quantity C, measured on the same run, whose expectation E[C] is known exactly. The controlled estimator is X − b(C − E[C]) for a coefficient b chosen by the experimenter.
The word known is the whole definition. E[C] has to be a number you can write down before the run: the number of slots times the arrival probability, the expected number of coin flips that come up heads, the mean of a distribution you are sampling from. A quantity whose mean you would have to estimate is not a control variate, whatever its correlation with X.
Theorem · The optimal coefficient and what it achievesVar(X − b(C − E[C])) = Var X − 2b Cov(X, C) + b² Var C, a quadratic in b with positive leading coefficient. Its minimum is at b* = Cov(X, C)/Var C, and the value there is Var X · (1 − ρ²) where ρ² = Cov(X, C)²/(Var X · Var C).
The variance of X − bD with D = C − E[C] is Var X − 2b Cov(X, D) + b² Var D, and Var D = Var C, Cov(X, D) = Cov(X, C), because subtracting a constant changes neither.
Complete the square: Var C (b − Cov/Var C)² + Var X − Cov²/Var C. The first term is non-negative and vanishes at b = Cov/Var C, so that is the minimiser.
The value there is Var X − Cov²/Var C, which is Var X (1 − Cov²/(Var X · Var C)) = Var X (1 − ρ²).
□
Rho is irrational and rho squared is not
ρ = Cov(X, C)/(σ_X σ_C) is a covariance divided by a product of two square roots, and it is irrational at almost any data. ρ² is Cov²/(Var X · Var C), a ratio of three exact rationals, so the reduction factor 1 − ρ² is exact even where ρ is not. That is why this page prints ρ² everywhere and ρ once, with the rounding named — and ρ is the third and last of the three quantities on this course that are genuinely irrational.
What ρ adds over ρ² is its sign, and here the sign has already been used: it is inside b*. A negatively correlated control works exactly as well as a positively correlated one, because b* comes out negative and the correction changes direction with it. That is the difference from the previous technique, where the sign could not be chosen and therefore decided everything.
The measurement
Example · The arrivals as a control for the queue's occupancyX is the time-average number in system over a run of two hundred slots; C is the number of arrivals in that run. C is a sum of two hundred indicators of probability 2/5, so E[C] = 80 exactly — known, not estimated — and the arrivals plainly drive the queue. Over twenty-four replications: Cov(X, C) = 172147/27600 ≈ 6.23721, Var C = 3832/69 ≈ 55.5362, so b* = 172147/1532800 ≈ 0.1123.
X = time average in system, C = arrivals, E[C] = 200 × 2/5 = 80
24 replications of 200 slots, seed 1
Var X 1.530750
Cov(X, C) 6.23721
Var C 55.5362
b* = Cov/Var C 0.1123
ρ² 0.457615 exact, shown to 6 places
1 − ρ² 0.542385 exact, shown to 6 places
variance at b* 0.830256
ρ ≈ 0.6765 (rounded)
1.530750 × 0.542385 = 0.830255… the factor does the work
Just over forty-five per cent of the variance removed, from a quantity that was already being recorded and cost nothing to collect. That is a typical result for a good control, and it compares well with buying it: the same reduction from more runs would take about 1/0.542, nearly twice the replications.
Both ways the coefficient can be wrong
The parabola rises on both sides of b*, and it rises symmetrically. At b = 0 the variance is 1.530750, which is the uncontrolled value — correctly, since b = 0 is no control. At b = 2b* it is 1.530750 again, exactly: overshooting the optimum by a factor of two throws away the entire benefit and leaves you no worse off than not having bothered. At b = −b*, the right magnitude with the wrong sign, it is 3.632232 — more than twice the uncontrolled variance, and the one outcome that is actively bad.
Example · A control with a known mean and no correlationThe panel's second companion counts, out of two hundred draws from a stream the queue never reads, how many fall below 1/2. Its mean is exactly 100, every bit as firmly known as the arrivals' 80, and it has almost nothing to do with the queue: ρ² = 0.074965, so 1 − ρ² = 0.925035 and the variance falls only from 1.530750 to 1.415997. A known mean is necessary and it is not sufficient.
The reverse case — a strongly correlated quantity whose mean is not known — is not a weaker control; it is not a control. Substituting an estimate of E[C] from the same replications makes the correction correlated with the very error it was supposed to cancel, and the estimator stops being unbiased. That failure does not show up in any variance figure on the page, which is what makes it worth stating as a condition rather than as advice.
The control does not have to be the target in disguise, either. Any quantity that moves with X and has a known mean will do, and the arrivals are a good example precisely because they are an input rather than an output: their mean is known from the model specification and needs no analysis of the queue at all.