Signature
R_eff = (1 - rho^2) * (c_f + c_h) / c_f; rho_min = sqrt(c_h / (c_f + c_h))
| Inputs | Definition | Unit |
|---|---|---|
rho | Correlation between target and control in one replication, or the square root of R squared with several controls | none |
c_f | Average cost of generating the inputs and evaluating the model once, above zero | computing time per replication, for example seconds |
c_h | Extra average cost of the control beyond generating the inputs and evaluating the model, at least zero | same time unit as c_f |
R_eff | Variance factor times cost factor; a value below 1 means the control improves efficiency | none |
|---|---|---|
rho_min | Absolute correlation above which R_eff falls below 1 | none |
Function
Control variate adjustment of a Monte Carlo estimate using an output of known mean
Takes a target output and a control output from the same n independent replications of a simulation, the known expected value of the control and the computing cost of each, and returns the adjusted estimate of the expected target with its standard error, the coefficient that scales the correction and the ratio that shows whether the control repays its cost. In the article's example the survival times come from HE-FM-DES-001 and the discounted life years take the form of HE-FM-YLL-003 with a simulated survival time in place of its L. Antithetic sampling (HE-FM-ANTV-001) changes how the draws are made, whereas these records leave the sampling unchanged and work on the outputs after the run. Notation follows the Control Variates article.
Try this function
Implementations
Excel
Efficiency ratio and minimum correlation from named costs
With TargetControlCorr, BaseCost and ControlCost as inputs, the formulas fill cells named CostVarianceRatio and MinAbsCorr. A blank ControlCost counts as 0, which is the case of a control computed anyway. A blank BaseCost returns #DIV/0! in CostVarianceRatio and, with a positive ControlCost, a minimum correlation of 1 with no error shown.
=(1-TargetControlCorr^2)*(BaseCost+ControlCost)/BaseCost; =SQRT(ControlCost/(BaseCost+ControlCost))
Assumptions
Control variate costs measured per replication with shared work in the model cost
Both costs are averages per replication in the same unit. Work that the model does anyway and the control reuses belongs in c_f and not in c_h. The cost of computing the coefficient is small, or the part that grows with the number of replications is included in c_h.
Same coefficient and comparison as the minimum variance result
The variance factor is that of HE-FM-CONV-002 at the optimal coefficient, or its asymptotic form with an estimated coefficient, so the ratio is a large-run comparison with the number of controls far below the number of replications.
Worked examples
Control costing as much as the model
Owen's illustration with c_h equal to c_f. The minimum correlation is the root of 0.5, about 0.71. At an illustrative correlation of 0.71 the ratio is 0.992, just below 1.
c_f = 1; c_h = 1; rho = 0.71; R_eff = 0.992; rho_min = 0.707
Survival time control that the model computes anyway
In the article's example the survival time is computed on the way to the discounted outcome, so c_h is taken as 0. Any correlation helps, and at 0.966 the time needed for a given precision falls to about 6.7% of the plain run.
c_f = 1; c_h = 0; rho = 0.966; R_eff = 0.067; rho_min = 0
Three controls each costing as much as the model
Owen's special case with J of 3 and an illustrative multiple correlation of 0.9, entered as rho. R squared must exceed 3 over 4, which is a multiple correlation above 0.866. At 0.9 the ratio is 0.76 and the controls repay their cost.
c_f = 1; c_h = 3; rho = 0.9; R_eff = 0.76; rho_min = 0.866
Modest correlation that pays with a cheap control
Illustrative inputs. A model taking 10 seconds per replication and a control adding 1 second, with a correlation of 0.5. The minimum correlation is 0.302 and the ratio 0.825.
c_f = 10; c_h = 1; rho = 0.5; R_eff = 0.825; rho_min = 0.302
Common errors
Charging the control for work the model does anyway
Survival times and sampled inputs already exist when the model has run. Booking a modest control at the cost of a full evaluation turns a correlation of 0.6 into a ratio of 1.28 and a rejection, where a c_h near 0 gives 0.64 and a gain.
Using the single control threshold for several controls
The figure 0.71 is for one control costing as much as the model. Three controls each costing as much need R squared above 0.75, a multiple correlation above 0.866, so a set with a multiple correlation of 0.8 fails with a ratio of 1.44.
Sources
Owen on when a control variate improves efficiency
Owen AB. Monte Carlo Theory, Methods and Examples. 2013. Chapter 8, Variance reduction, section 8.9. After the variance of the single-control estimator, defines c_f as the average total cost of generating X and computing f(X) and c_h as the extra average cost of the control, and states that control variates improve efficiency when (1 minus rho squared)(c_f plus c_h) is below c_f, that is when the absolute correlation exceeds the root of c_h over (c_f plus c_h), 0.71 at equal costs. After Example 8.4 the multiple-control form (1 minus R squared) times (c_f plus c_h) over c_f below 1, the special case R squared above J over (J plus 1) with c_h equal to J c_f, and the treatment of reusable work and of the cost of computing the coefficient.
Canonical Identity
Stable URI · Machine-readable · Resolvable · CC BY 4.0
