Control variate regression estimator at a fixed coefficient

Corrects the plain mean of a target output using a control from the same replications whose expected value is known. The gap X_bar minus mu_X shows how far the run has drifted by chance, and subtracting b times that gap moves the estimate back towards the expected target. Because the expected value of X_bar equals mu_X, the estimate is unbiased for any fixed b, with b at 0 giving the plain Monte Carlo mean and b at 1 the difference estimator. The expression has the same linear form as HE-FM-MREG-005, whose inputs are a fitted treatment effect, an interaction coefficient, the covariate value of the decision population and the mean covariate of the trials; here Y_bar and X_bar are simulated means and mu_X is the known expectation of the control.

Signature

mu_b = Y_bar - b * (X_bar - mu_X)
Inputs
InputsDefinitionUnit
Y_barMean of the target output over the n independent replicationsthat of the target
bCoefficient applied to the gap in the control, any real value fixed independently of the draws in the runtarget units per control unit
X_barMean of the control output over the same replicationsthat of the control, for example years
mu_XExpected value of the control, known from the input distribution or a closed formthat of the control
Output
mu_bAdjusted estimate of the expected target output at coefficient bthat of the target, for example discounted life years

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

    Control variate estimate in one cell from named means

    With the target mean in a cell named MeanTarget, the control mean in MeanControl, the known mean in KnownMeanControl and the coefficient in Coefficient, the formula returns the estimate in a cell named AdjustedEstimate. A blank KnownMeanControl counts as 0 in the arithmetic and returns 1.996 with the five-patient inputs, with no error shown.

    =MeanTarget-Coefficient*(MeanControl-KnownMeanControl)

Assumptions

  • Known mean exact or negligibly uncertain

    The value mu_X is exact, or known with an error negligible next to the Monte Carlo error. It comes from the input distribution or a closed form for the same population and input distribution as the simulation, and not from the run itself.

  • Coefficient fixed independently of the run for an unbiased control variate estimate

    Unbiasedness holds for a b that does not depend on the draws used in the means, such as a value computed from the inputs or from an independent pilot sample. A coefficient fitted on the same run brings a small bias, treated in HE-FM-CONV-004.

  • Target and control computed on the same independent replications

    Each replication yields one target value and one control value from the same draws, replications are independent, and computing the control does not alter the model. The correction relies on the two outputs sharing the chance error of each draw.

Worked examples

  • Five simulated patients adjusted at the optimal coefficient

    The article's illustrative discrete event simulation has a hazard of 0.1 a year and a continuous discount rate of 0.035 a year. Five patients give mean survival of 7.767 years against a known 10 and mean discounted life years of 6.258. At the coefficient 0.5487 of HE-FM-CONV-002 the estimate is 7.483, an error of 0.076 years against the true 7.407, where the plain mean is 1.149 years away.

    Y_bar = 6.258; X_bar = 7.767; mu_X = 10; b = 0.5487; mu_b = 7.483
  • Coefficient of zero returns the plain Monte Carlo mean

    Limiting case with the same five patients. At b of 0 the control has no effect and the estimate is the plain mean of 6.258.

    Y_bar = 6.258; X_bar = 7.767; mu_X = 10; b = 0; mu_b = 6.258
  • Coefficient of one gives the difference estimator

    The same five patients with b of 1, which adds the whole gap of 2.233 years. The result of 8.491 overshoots the true 7.407 by 1.084 years, because the discounted target moves by less than the undiscounted control.

    Y_bar = 6.258; X_bar = 7.767; mu_X = 10; b = 1; mu_b = 8.491
  • Sampled probability as a negatively correlated control in a PSA

    Illustrative inputs. A PSA samples a probability of cure from a beta distribution with a known mean of 0.5, and a higher sampled probability lowers cost, so the coefficient is negative. The run drew a mean probability of 0.52, so its mean cost of 20,000 pounds is too low, and the adjustment raises it by 600 pounds to 20,600 pounds.

    Y_bar = 20000; X_bar = 0.52; mu_X = 0.5; b = -30000; mu_b = 20600

Common errors

  • Taking the known mean of the control from the same run

    A mean estimated from the same run cannot serve as mu_X. It makes X_bar minus mu_X zero, so the five-patient example returns the unadjusted 6.258 at any coefficient where the correct known mean of 10 gives 7.483.

  • Using an incorrect known mean for the control

    An error of delta in mu_X shifts the estimate by b times delta, and more replications do not remove the shift (derived). With a known mean of 11 in place of 10, the five-patient example moves from 7.483 to 8.032 years, a bias of 0.549 at b of 0.5487.

  • Accepting a control variate estimate outside the natural limits of the output

    The correction is linear, so the estimate can leave the range the output allows, for example a negative value for a quantity that must be positive. With illustrative inputs Y_bar of 0.98, X_bar of 9, mu_X of 10 and b of 0.05, a probability is pushed to 1.03.

  • Adjusting each arm with a shared baseline control and expecting the increment to gain

    When strategies share common random numbers, a baseline characteristic Z enters both arms in the same way, and the correction to the increment is the difference in coefficients times Z_bar minus mu_Z (derived). With illustrative coefficients of 200 and 150 pounds per year of age and a chance gap of 0.4 years, each arm moves by 80 or 60 pounds and the increment by 20 pounds. With equal coefficients the increment does not move, so the control is best applied to the incremental output with its own coefficient.

Sources

  • Owen on the difference and regression estimators with a control variate

    Owen AB. Monte Carlo Theory, Methods and Examples. 2013. Chapter 8, Variance reduction, section 8.9 (Control variates). Introduces a problem whose exact answer is known, in practice with an error negligible compared to Monte Carlo errors. Equation 8.26 gives the difference estimator and equation 8.29 the regression estimator in both forms; the text states that beta of 0 yields the simple Monte Carlo estimator, beta of 1 the difference estimator, and that the regression estimator is unbiased for all beta because the expected control mean equals its known value. Section 8.10 notes that control variates can supply a negative estimate for a quantity that must be positive.

    View source →

Canonical Identity

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This formula is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/formula/control-variate-regression-estimator-at-a-fixed-coefficient