Quant techniques · Monte Carlo

Monte Carlo for free: antithetic and control variates

Monte Carlo pricing is simple: simulate the payoff many times and average. The trouble is the error. It falls like one over the square root of the number of paths, so every extra digit of accuracy costs 100 times the compute. You can’t change the square root, but you can shrink what it multiplies, and two simple tricks often do that by orders of magnitude.

1SE=σY/N\mathrm{SE} = \sigma_Y/\sqrt N Y is one simulated (discounted) payoff. Only σ_Y is up for negotiation.
2Yˉanti=12(f(Z)+f(−Z)),Var=σY22(1+ρ)\bar Y_{\text{anti}} = \tfrac12\big(f(Z) + f(-Z)\big),\quad \mathrm{Var} = \tfrac{\sigma_Y^2}{2}(1 + \rho) Antithetic: reuse each normal draw with its sign flipped. Helps when ρ = corr(f(Z), f(−Z)) < 0.
3Ycv=Y−b (C−E[C]),b∗=Cov(Y,C)Var(C)Y_{\text{cv}} = Y - b\,(C - E[C]),\quad b^* = \dfrac{\mathrm{Cov}(Y, C)}{\mathrm{Var}(C)} Control variate: subtract the error of something you can simulate alongside Y and whose mean you know exactly.
4Var(Ycv)=(1−ρYC2) σY2\mathrm{Var}(Y_{\text{cv}}) = (1 - \rho_{YC}^2)\,\sigma_Y^2 The speed-up is 1/(1 − ρ²). Correlation 0.9 gives 5×, 0.99 gives 50×, 0.9997 gives over 1,000×.
The baseline

Plain Monte Carlo and its square root

To price a European call under Black–Scholes, draw Z∼N(0,1)Z \sim N(0,1), set

ST=S0 e−σ2T/2+σTZS_T = S_0\, e^{-\sigma^2 T/2 + \sigma\sqrt T Z}

(zero rates for simplicity), and average Y=max⁡(ST−K,0)Y = \max(S_T - K, 0). With S0=K=100S_0 = K = 100, σ = 20% and T = 1, the true price is 7.966 and the payoff’s standard deviation is about 13.2. So 20,000 paths give a standard error of 13.2/20000≈0.09313.2/\sqrt{20000} \approx 0.093. To get to one cent, you need about 1.7 million paths.

There are two ways to do better: make each payoff less noisy, or let its noise cancel against something you know.

Trick 1

Antithetic variates: use every draw twice

For every normal draw Z, also use −Z. Both are valid draws, so the pair’s average is still unbiased. The variance of the pair average is

Var ⁣(f(Z)+f(−Z)2)=σY22 (1+ρ),ρ=corr(f(Z),f(−Z))\mathrm{Var}\!\left(\tfrac{f(Z) + f(-Z)}{2}\right) = \frac{\sigma_Y^2}{2}\,(1 + \rho), \qquad \rho = \mathrm{corr}\big(f(Z), f(-Z)\big)

A pair costs two payoffs, so compared with two independent draws (variance σY2/2\sigma_Y^2/2) the gain is a factor 1/(1+ρ)1/(1 + \rho). It’s a win when ρ is negative, which happens when f is monotone in Z: a high draw and its mirror push the payoff in opposite directions, and their errors partly cancel.

For the call, ρ ≈ −0.37, a speed-up of about 1.6×. That’s modest, but it costs one line of code. For a linear payoff, ρ = −1 and the antithetic estimate is exact. For a symmetric payoff such as a straddle or Z2Z^2, ρ is positive (+1 for Z2Z^2) and antithetic sampling makes things worse.

Trick 2

Control variates: correct with what you know

Suppose you also simulate a quantity C whose expectation you know exactly, using the same random numbers. If C came out above its mean on this run, Y probably did too, so adjust:

Ycv=Y−b (C−E[C])Y_{\text{cv}} = Y - b\,\big(C - E[C]\big)

This is unbiased for any fixed b. Its variance, σY2−2b Cov(Y,C)+b2Var(C)\sigma_Y^2 - 2b\,\mathrm{Cov}(Y,C) + b^2\mathrm{Var}(C), is smallest at b∗=Cov(Y,C)/Var(C)b^* = \mathrm{Cov}(Y,C)/\mathrm{Var}(C), the slope of a regression of Y on C. The minimum is (1−ρ2)σY2(1 - \rho^2)\sigma_Y^2. Everything depends on how correlated the control is with the payoff.

  • European call, control = STS_T. We know E[ST]=S0E[S_T] = S_0 (zero rates). The correlation is about 0.89, giving a 4.8× speed-up.
  • Arithmetic Asian call, control = geometric Asian call. The arithmetic average of prices has no closed-form price. The geometric average is lognormal, so its option has an exact Black–Scholes-style price, and the two averages move almost in lockstep. Correlation 0.9997: a 1,400× speed-up.
price
plain Monte Carloantithetic pairscontrol variatetrue price
–std error, plain (20,000 payoffs)
–std error, antithetic
–std error, control variate
–control used

On the European call, the orange and blue lines settle faster than the grey one. On the Asian call, the orange line sits on the true price almost from the first hundred paths while plain Monte Carlo is still wandering. The standard errors underneath are from this run’s 20,000 payoffs.

import numpy as np
from scipy.stats import norm

S0, K, sigma, T, m = 100, 100, 0.2, 1.0, 12
rng = np.random.default_rng(0)
dt = T / m
t = np.arange(1, m + 1) * dt

# Exact price of the geometric-average Asian call (log of the geometric mean is normal)
mu_g = np.log(S0) - 0.5 * sigma**2 * t.mean()
var_g = sigma**2 * np.mean(np.minimum.outer(t, t))
d = (mu_g - np.log(K) + var_g) / np.sqrt(var_g)
geo_exact = np.exp(mu_g + 0.5 * var_g) * norm.cdf(d) - K * norm.cdf(d - np.sqrt(var_g))

Z = rng.standard_normal((100_000, m))
logS = np.log(S0) + np.cumsum(-0.5 * sigma**2 * dt + sigma * np.sqrt(dt) * Z, axis=1)
arith = np.maximum(np.exp(logS).mean(axis=1) - K, 0)       # what we want
geo = np.maximum(np.exp(logS.mean(axis=1)) - K, 0)          # control, known mean

b = np.cov(arith, geo)[0, 1] / geo.var(ddof=1)
cv = arith - b * (geo - geo_exact)
print(arith.mean(), arith.std() / np.sqrt(len(arith)))      # ≈ 4.89 ± 0.02
print(cv.mean(), cv.std() / np.sqrt(len(cv)))               # ≈ 4.889 ± 0.0006

Picking a good control

  • Same payoff, simpler model. The geometric Asian for the arithmetic Asian; a Black–Scholes price for the same option under a stochastic-vol model.
  • The underlying itself. STS_T or discounted StS_t at each date, whose mean is the forward.
  • Parity relations. Price a put and use the call through put–call parity, or the other way round.
  • Several at once. With several controls, b becomes a regression vector: regress Y on all controls and use the intercept.

Estimating b from the same paths adds a tiny bias, of order 1/N. In practice it’s negligible, or you can estimate b on a small pilot run.

Where people slip in interviews

  • Counting an antithetic pair as one sample. It costs two payoff evaluations. Compare at equal cost.
  • Using antithetic sampling on symmetric payoffs. A straddle’s two halves are positively correlated, so antithetic pairs add variance.
  • A control without a known mean. The whole trick needs E[C] exactly. A control you also have to estimate does nothing.
  • Fixing b = 1. That’s often far from optimal. With b = 1 and a weakly correlated control, the variance can go up.
  • Forgetting the square root. A 100× variance reduction is a 10× smaller standard error.
Practice

Try these before you open the answer

Warm-upA payoff has standard deviation 13. How many paths do you need for a standard error of 0.01?
Show answer
N=(130.01)2=1.69 millionN = \left(\frac{13}{0.01}\right)^2 = 1.69 \text{ million}
ControlA control variate has correlation 0.95 with the payoff. How many fewer paths do you need for the same accuracy?
Show answer
11−0.952=10.0975≈10×\frac{1}{1 - 0.95^2} = \frac{1}{0.0975} \approx 10\times
AntitheticYou use antithetic pairs to estimate E[Z²] for Z ~ N(0,1). Does it help?
Show answer

No. f(Z)=Z2=f(−Z)f(Z) = Z^2 = f(-Z), so ρ = 1 and each pair is just one draw counted twice. At equal cost the variance doubles.

AntitheticYou use antithetic pairs to estimate E[e^Z]. Help or hurt?
Show answer

Help. eZe^Z is increasing, so eZe^Z and e−Ze^{-Z} are negatively correlated. The correlation is (1−e)/(e2−e)=−1/e≈−0.37(1 - e)/(e^2 - e) = -1/e \approx -0.37, about the same as the ATM call.

Optimal bShow that b* = Cov(Y, C)/Var(C) minimises Var(Y − b(C − E[C])), and that the minimum is (1 − ρ²)Var(Y).
Show answer

V(b)=Var(Y)−2b Cov(Y,C)+b2 Var(C)V(b) = \mathrm{Var}(Y) - 2b\,\mathrm{Cov}(Y,C) + b^2\,\mathrm{Var}(C). Setting V′(b)=0V'(b) = 0 gives b∗b^*. Substituting:

V(b∗)=Var(Y)−Cov(Y,C)2Var(C)=Var(Y) (1−ρ2)V(b^*) = \mathrm{Var}(Y) - \frac{\mathrm{Cov}(Y,C)^2}{\mathrm{Var}(C)} = \mathrm{Var}(Y)\,(1 - \rho^2)
DesignYou're pricing a down-and-out call by simulation. Suggest a control variate.
Show answer

The vanilla call with the same strike and expiry, priced by Black–Scholes. Its payoff equals the barrier option’s on every path that doesn’t hit the barrier, so the correlation is high when the barrier is far away. (Alternatively, use the continuously monitored barrier price, which has a closed form, as the control for a discretely monitored one.)

The speed-ups were measured on 200,000 to 400,000 simulated paths. The Asian reference price, 4.8888, comes from 4 million control-variate paths.