Control variates explained

The control variates method is a variance reduction technique used in Monte Carlo methods. It exploits information about the errors in estimates of known quantities to reduce the error of an estimate of an unknown quantity.[1] [2] [3]

Underlying principle

Let the unknown parameter of interest be

\mu

, and assume we have a statistic

m

such that the expected value of m is μ:

E\left[m\right]=\mu

, i.e. m is an unbiased estimator for μ. Suppose we calculate another statistic

t

such that

E\left[t\right]=\tau

is a known value. Then

m\star=m+c\left(t-\tau\right)

is also an unbiased estimator for

\mu

for any choice of the coefficient

c

. The variance of the resulting estimator

m\star

is

rm{Var}\left(m\star\right)=rm{Var}\left(m\right)+c2rm{Var}\left(t\right)+2crm{Cov}\left(m,t\right).

By differentiating the above expression with respect to

c

, it can be shown that choosing the optimal coefficient

c\star=-

rm{Cov
\left(m,t\right)}{rm{Var}\left(t\right)}

minimizes the variance of

m\star

. (Note that this coefficient is the same as the coefficient obtained from a linear regression.) With this choice,

\begin{align} rm{Var}\left(m\star\right)&=rm{Var}\left(m\right)-

\left[rm{Cov
\left(m,t\right)\right]

2}{rm{Var}\left(t\right)}\\ &=

2\right)rm{Var}\left(m\right) \end{align}
\left(1-\rho
m,t

where

\rhom,t=rm{Corr}\left(m,t\right)

is the correlation coefficient of

m

and

t

. The greater the value of

\vert\rhom,t\vert

, the greater the variance reduction achieved.

In the case that

rm{Cov}\left(m,t\right)

,

rm{Var}\left(t\right)

, and/or

\rhom,t

are unknown, they can be estimated across the Monte Carlo replicates. This is equivalent to solving a certain least squares system; therefore this technique is also known as regression sampling.

When the expectation of the control variable,

E\left[t\right]=\tau

, is not known analytically, it is still possible to increase the precision in estimating

\mu

(for a given fixed simulation budget), provided that the two conditions are met: 1) evaluating

t

is significantly cheaper than computing

m

; 2) the magnitude of the correlation coefficient

|\rhom,t|

is close to unity. [3]

Example

We would like to estimate

I=

1
\int
0
1
1+x

dx

using Monte Carlo integration. This integral is the expected value of

f(U)

, where

f(U)=

1
1+U
and U follows a uniform distribution [0, 1].Using a sample of size n denote the points in the sample as

u1,,un

. Then the estimate is given by

I

1
n

\sumif(ui).

Now we introduce

g(U)=1+U

as a control variate with a known expected value
1
E\left[g\left(U\right)\right]=\int
0

(1+x)dx=\tfrac{3}{2}

and combine the two into a new estimate

I

1
n

\sumi

f(u
i)+c\left(1
n

\sumig(ui)-3/2\right).

Using

n=1500

realizations and an estimated optimal coefficient

c\star0.4773

we obtain the following results
EstimateVariance
Classical estimate0.694750.01947
Control variates 0.692950.00060

The variance was significantly reduced after using the control variates technique. (The exact result is

I=ln20.69314718

.)

See also

Notes

  1. Lemieux . C.. Control Variates. Wiley StatsRef: Statistics Reference Online. 2017. 1–8. 10.1002/9781118445112.stat07947 . 9781118445112 .
  2. Glasserman, P. (2004). Monte Carlo Methods in Financial Engineering. New York: Springer. (p. 185)
  3. Botev. Z.. Ridder. A.. Variance Reduction. Wiley StatsRef: Statistics Reference Online. 2017. 1–6. 10.1002/9781118445112.stat07975. 9781118445112 .

References