# Variance reduction

In mathematics, more specifically in the theory of Monte Carlo methods, **variance reduction** is a procedure used to increase the precision of the estimates obtained for a given simulation or computational effort.^{[1]} Every output random variable from the simulation is associated with a variance which limits the precision of the simulation results. In order to make a simulation statistically efficient, i.e., to obtain a greater precision and smaller confidence intervals for the output random variable of interest, variance reduction techniques can be used. The main ones are common random numbers, antithetic variates, control variates, importance sampling, stratified sampling, moment matching, conditional Monte Carlo and quasi random variables. For simulation with black-box models subset simulation and line sampling can also be used. Under these headings are a variety of specialized techniques; for example, particle transport simulations make extensive use of "weight windows" and "splitting/Russian roulette" techniques, which are a form of importance sampling.

## Crude Monte Carlo simulation

Suppose one wants to compute [math]\displaystyle{ z:= E(Z) }[/math] with the random variable [math]\displaystyle{ Z }[/math] defined on the probability space [math]\displaystyle{ (\Omega, \mathcal{F}, P) }[/math]. Monte Carlo does this by sampling i.i.d. copies [math]\displaystyle{ Z_{1}, . . ., Z_{R} }[/math] of [math]\displaystyle{ Z }[/math] and then to estimate [math]\displaystyle{ z }[/math] via the sample-mean estimator

- [math]\displaystyle{ \overline{z} = \frac{1}{n}\sum_{i=1}^n Z_i }[/math]

Under further mild conditions such as [math]\displaystyle{ var(Z)\lt \infty }[/math], a central limit theorem will apply such that for large [math]\displaystyle{ n \rightarrow \infty }[/math], the distribution of [math]\displaystyle{ \overline{z} }[/math] converges to a normal distribution with mean [math]\displaystyle{ z }[/math] and standard error [math]\displaystyle{ \sigma/\sqrt{n} }[/math]. Because the standard deviation only converges towards [math]\displaystyle{ 0 }[/math] at the rate [math]\displaystyle{ \sqrt{n} }[/math], implying one needs to increase the number of simulations ([math]\displaystyle{ n }[/math]) by a factor of [math]\displaystyle{ 4 }[/math] to halve the standard deviation of [math]\displaystyle{ \overline{z} }[/math], variance reduction methods are often useful for obtaining more precise estimates for [math]\displaystyle{ z }[/math] without needing very large numbers of simulations.

## Common Random Numbers (CRN)

The common random numbers variance reduction technique is a popular and useful variance reduction technique which applies when we are comparing two or more alternative configurations (of a system) instead of investigating a single configuration. CRN has also been called *correlated sampling*, *matched streams* or *matched pairs*.

CRN requires synchronization of the random number streams, which ensures that in addition to using the same random numbers to simulate all configurations, a specific random number used for a specific purpose in one configuration is used for exactly the same purpose in all other configurations. For example, in queueing theory, if we are comparing two different configurations of tellers in a bank, we would want the (random) time of arrival of the *N-*th customer to be generated using the same draw from a random number stream for both configurations.

## Underlying principle of the CRN technique

Suppose [math]\displaystyle{ X_{1j} }[/math] and [math]\displaystyle{ X_{2j} }[/math] are the observations from the first and second configurations on the *j-*th independent replication.

We want to estimate

- [math]\displaystyle{ \xi= E(X_{1j})-E(X_{2j})=\mu_1-\mu_2. \, }[/math]

If we perform *n* replications of each configuration and let

- [math]\displaystyle{ Z_j=X_{1j}-X_{2j} \quad\mbox{for } j=1,2,\ldots, n, }[/math]

then [math]\displaystyle{ E(Z_j)=\xi }[/math] and [math]\displaystyle{ Z(n) = \frac{\sum_{j=1,\ldots,n} Z_j}{n} }[/math] is an unbiased estimator of [math]\displaystyle{ \xi }[/math].

And since the [math]\displaystyle{ Z_j }[/math]'s are independent identically distributed random variables,

- [math]\displaystyle{ \operatorname{Var}[Z(n)] = \frac{\operatorname{Var}(Z_j)}{n} = \frac{\operatorname{Var}[X_{1j}] + \operatorname{Var}[X_{2j}] - 2 \operatorname{Cov}[X_{1j}, X_{2j}]}{n}. }[/math]

In case of independent sampling, i.e., no common random numbers used then Cov(*X*_{1j}, *X*_{2j}) = 0. But if we succeed to induce an element of positive correlation between *X*_{1} and *X*_{2} such that Cov(*X*_{1j}, *X*_{2j}) > 0, it can be seen from the equation above that the variance is reduced.

It can also be observed that if the CRN induces a negative correlation, i.e., Cov(*X*_{1j}, *X*_{2j}) < 0, this technique can actually backfire, where the variance is increased and not decreased (as intended).^{[2]}

## See also

- Explained variance

## References

- ↑ Botev, Z.; Ridder, A. (2017). "Variance Reduction".
*Wiley StatsRef: Statistics Reference Online*: 1–6. doi:10.1002/9781118445112.stat07975. ISBN 9781118445112. - ↑ Hamrick, Jeff. "The Method of Common Random Numbers: An Example". http://demonstrations.wolfram.com/TheMethodOfCommonRandomNumbersAnExample/.

- Hammersley, J. M.; Handscomb, D. C. (1964).
*Monte Carlo Methods*. London: Methuen. ISBN 0-416-52340-4. - Kahn, H.; Marshall, A. W. (1953). "Methods of Reducing Sample Size in Monte Carlo Computations".
*Journal of the Operations Research Society of America***1**(5): 263–271. doi:10.1287/opre.1.5.263. - MCNP — A General Monte Carlo N-Particle Transport Code, Version 5 Los Alamos Report LA-UR-03-1987

Original source: https://en.wikipedia.org/wiki/Variance reduction.
Read more |