Control variate adjustment of a Monte Carlo estimate using an output of known mean
v(Y_i, X_i, mu_X, c_f, c_h) = (mu_hat, b_hat, SE_reg, b_opt, Var_opt, R_eff)
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.
Control variate regression estimator at a fixed coefficient
mu_b = Y_bar - b * (X_bar - mu_X)
Variance-minimising control coefficient, minimum variance and equivalent replications
b_opt = Cov_YX / Var_X; rho = Cov_YX / sqrt(Var_X * Var_Y); Var_opt = Var_Y / n * (1 - rho^2); SE_plain = sqrt(Var_Y / n); SE_opt = sqrt(Var_opt); n_eq = n / (1 - rho^2)
Efficiency ratio and minimum correlation for a control variate with its computing cost
R_eff = (1 - rho^2) * (c_f + c_h) / c_f; rho_min = sqrt(c_h / (c_f + c_h))
Control variate estimate and intercept standard error by regression on the centred control
b_hat = S_XY / S_XX; mu_hat = Y_bar - b_hat * (X_bar - mu_X); RSS = S_YY - b_hat * S_XY; SE_reg = sqrt(RSS / (n - 2) * (1 / n + (X_bar - mu_X)^2 / S_XX))
