Unit 8, lesson 60

Variance reduction and unbiased estimators

How antithetic variates, control variates with the optimal control coefficient and importance sampling with an importance weight lower Monte Carlo variance while keeping the estimator unbiased.

  • Video 60
  • Variance reduction and quasi-Monte Carlo

A Monte Carlo option price comes with a standard error that falls only like one over the square root of the number of paths, so halving the error costs four times the work. The natural question is whether a different average of simulated quantities can estimate exactly the same discounted expectation with a smaller variance for the same work. This lesson derives three unbiased constructions, antithetic pairs, control variates and importance sampling, finds the control coefficient that minimizes the variance, and states the conditions under which each construction actually helps.

Key terms

Variance reduction

Definition Let the target be θ=E[Y]\theta = \mathbb{E}[Y], for example a discounted payoff under a pricing measure Q\mathbb{Q}, with E[Y2]<∞\mathbb{E}[Y^2] < \infty. The plain Monte Carlo estimator averages nn independent copies of YY and has variance Var⁡(Y)/n\operatorname{Var}(Y)/n. A variance reduction method replaces YY by another random variable Y~\tilde Y, built from the same model inputs, with

E[Y~]=θ,Var⁡(Y~)<∞,\begin{gathered} \mathbb{E}[\tilde Y] = \theta, \\[0.4em] \operatorname{Var}(\tilde Y) < \infty, \end{gathered}

and averages independent copies of Y~\tilde Y. Suppose one copy of YY costs cc units of computing work and one copy of Y~\tilde Y costs c~\tilde c. Ignoring the rounding of the number of copies, a budget CC buys C/cC/c or C/c~C/\tilde c copies, so the two estimators have variances cVar⁡(Y)/Cc \operatorname{Var}(Y)/C and c~Var⁡(Y~)/C\tilde c \operatorname{Var}(\tilde Y)/C, and the method is more efficient exactly when

c~Var⁡(Y~)<cVar⁡(Y).\tilde c \operatorname{Var}(\tilde Y) < c \operatorname{Var}(Y).

The standard error is the sample standard deviation of the independent copies divided by the square root of their number, and it measures sampling error only. If instead E[Y~]=θ+δ\mathbb{E}[\tilde Y] = \theta + \delta with δ≠0\delta \neq 0, the average of nn independent copies has mean squared error Var⁡(Y~)/n+δ2\operatorname{Var}(\tilde Y)/n + \delta^2, which never falls below δ2\delta^2, however large nn is.

In plain words Variance reduction changes what is averaged, not what is estimated. It is judged by variance per unit of work, and no amount of variance reduction makes up for averaging a quantity with the wrong mean.

Example In a constructed case the plain payoff has variance 2525 and costs one unit of work per path. A budget of 1000010000 units gives the variance 25/10000=0.002525/10000 = 0.0025, a standard error of 0.050.05. An unbiased control variate estimator with variance 4.754.75 per replicate and a constructed cost of 1.251.25 units per replicate buys 80008000 replicates, with variance 4.75/8000≈0.0005944.75/8000 \approx 0.000594 and standard error about 0.02440.0244. The efficiency gain is

1⋅251.25⋅4.75≈4.21,\frac{1 \cdot 25}{1.25 \cdot 4.75} \approx 4.21,

so plain sampling would need about 4.214.21 times the budget, roughly 4210042100 paths, to reach the same standard error.

Antithetic variates

Definition Let ZZ be a random vector in Rd\mathbb{R}^d whose law is symmetric, meaning that −Z-Z has the same law as ZZ, for example a vector of independent standard normals that drives a simulated path. Let Y=g(Z)Y = g(Z) with E[g(Z)2]<∞\mathbb{E}[g(Z)^2] < \infty. The antithetic estimator from one pair is

YA=12[g(Z)+g(−Z)].Y_A = \tfrac12\bigl[g(Z) + g(-Z)\bigr].

Since g(−Z)g(-Z) has the same law as g(Z)g(Z), linearity gives E[YA]=E[g(Z)]\mathbb{E}[Y_A] = \mathbb{E}[g(Z)], so the pair average is unbiased for every such gg. With cA=Cov⁡(g(Z),g(−Z))c_A = \operatorname{Cov}\bigl(g(Z), g(-Z)\bigr) its variance is

Var⁡(YA)=14[Var⁡(g(Z))+Var⁡(g(−Z))+2cA]=12[Var⁡(g(Z))+cA].\begin{aligned} \operatorname{Var}(Y_A) &= \tfrac14\bigl[\operatorname{Var}(g(Z)) \\[0.4em] &\quad + \operatorname{Var}(g(-Z)) + 2c_A\bigr] \\[0.4em] &= \tfrac12\bigl[\operatorname{Var}(g(Z)) + c_A\bigr]. \end{aligned}

Two independent evaluations averaged have variance 12Var⁡(g(Z))\tfrac12 \operatorname{Var}(g(Z)), so at the same number of payoff evaluations the pair is better exactly when cA<0c_A < 0, no better when cA=0c_A = 0 and worse when cA>0c_A > 0. In one dimension, if gg is monotone, then cA≤0c_A \le 0. To see this, let Z′Z' be an independent copy of ZZ and h(z)=g(−z)h(z) = g(-z). Expanding the product gives

cA=12 E[(g(Z)−g(Z′))×(h(Z)−h(Z′))],\begin{aligned} c_A &= \tfrac12\, \mathbb{E}\bigl[(g(Z) - g(Z')) \\[0.4em] &\qquad \times (h(Z) - h(Z'))\bigr], \end{aligned}

and because gg and hh are monotone in opposite directions, the two differences never have the same strict sign, so the product is never positive. For payoffs of many inputs, or payoffs that are not monotone, the sign of cAc_A has to be checked separately. The standard error comes from nn independent pairs, with the nn pair averages as the observations, not from the 2n2n dependent evaluations.

In plain words Each normal draw is used twice, once as it is and once with its sign flipped. When the payoff rises with the draw, a high value at ZZ comes with a low value at −Z-Z, the two errors partly cancel, and the pair average varies less than an average of two unrelated evaluations.

Example Take a European call in the Black-Scholes model with the constructed inputs S0=100S_0 = 100, K=100K = 100, r=0.05r = 0.05, q=0q = 0, σ=0.2\sigma = 0.2 and T=1T = 1, simulated from one standard normal ZZ through

g(z)=e−rT(ST(z)−K)+,ST(z)=S0 e(r−σ2/2)T+σT z.\begin{aligned} g(z) &= e^{-rT}\bigl(S_T(z) - K\bigr)^{+}, \\[0.4em] S_T(z) &= S_0\, e^{(r - \sigma^2/2)T + \sigma\sqrt{T}\, z}. \end{aligned}

The function gg is nondecreasing, so cA≤0c_A \le 0. Numerical integration against the normal density gives the mean 10.450610.4506, which is the Black-Scholes price, the variance Var⁡(g(Z))≈216.66\operatorname{Var}(g(Z)) \approx 216.66 and cA≈−108.55c_A \approx -108.55, a correlation of about −0.50-0.50. The pair average has variance about 54.0654.06, against about 108.33108.33 for two independent evaluations, so at equal cost the pairs cut the variance by a factor of about 2.02.0. With the constructed moments of marginal variance 2525 and covariance −15-15, the same formula gives (25+25−30)/4=5(25 + 25 - 30)/4 = 5, against 12.512.5 for two independent evaluations.

Control variate

Definition Let YY be the target with E[Y2]<∞\mathbb{E}[Y^2] < \infty, and let XX be a control with E[X2]<∞\mathbb{E}[X^2] < \infty whose mean μX=E[X]\mu_X = \mathbb{E}[X] is known exactly, under the same measure that defines θ=E[Y]\theta = \mathbb{E}[Y]. For a constant β\beta, the control variate estimator from one draw of (Y,X)(Y, X) is

YC=Y−β (X−μX).Y_C = Y - \beta\,(X - \mu_X).

The subtracted term has mean zero, so E[YC]=θ\mathbb{E}[Y_C] = \theta for every fixed β\beta, and

Var⁡(YC)=Var⁡(Y)+β2Var⁡(X)−2βCov⁡(Y,X).\begin{aligned} \operatorname{Var}(Y_C) &= \operatorname{Var}(Y) \\[0.4em] &\quad + \beta^2 \operatorname{Var}(X) \\[0.4em] &\quad - 2\beta \operatorname{Cov}(Y, X). \end{aligned}

The same argument covers a coefficient β^\hat\beta estimated from an independent pilot sample, provided E[∣β^∣]<∞\mathbb{E}[\lvert \hat\beta \rvert] < \infty. Conditional on the pilot, the coefficient is a constant, so the conditional mean is θ\theta and the conditional variance is the formula above with β=β^\beta = \hat\beta. A coefficient fitted on the same draws it is applied to is not covered by this argument, and the resulting estimator is in general biased for finite nn. Correcting that bias lies beyond this lesson. A control mean that is only approximate, say m≠μXm \neq \mu_X, moves the mean of the estimator to θ−β(μX−m)\theta - \beta(\mu_X - m), a bias that no number of draws removes.

In plain words If a quantity closely tied to the payoff has a known mean, each draw shows how far luck pushed that quantity away from its mean, and the estimator subtracts the matching share of the payoff’s error. The correction is exact on average only because the true mean of the control is used.

Example For the call of the previous card, the discounted terminal price X=e−rTSTX = e^{-rT} S_T has the known mean μX=S0e−qT=100\mu_X = S_0 e^{-qT} = 100 under Q\mathbb{Q} and the variance

Var⁡(X)=S02e−2qT(eσ2T−1)≈408.11.\begin{aligned} \operatorname{Var}(X) &= S_0^2 e^{-2qT}\bigl(e^{\sigma^2 T} - 1\bigr) \\[0.4em] &\approx 408.11 . \end{aligned}

Numerical integration gives Cov⁡(Y,X)≈274.91\operatorname{Cov}(Y, X) \approx 274.91, a correlation of about 0.92450.9245 with the discounted call payoff YY. With the optimal coefficient of the next card, β∗≈0.6736\beta_* \approx 0.6736, the variance per draw falls from about 216.66216.66 to about 31.4831.48, a factor of about 6.96.9. For an arithmetic Asian option the geometric Asian payoff on the same dates plays the same role, because its expectation has a closed form under the Black-Scholes assumptions.

Optimal control coefficient

Definition Suppose in addition that Var⁡(X)>0\operatorname{Var}(X) > 0. The variance v(β)=Var⁡(YC)v(\beta) = \operatorname{Var}(Y_C) is then a strictly convex quadratic in β\beta, and completing the square gives

v(β)=v(β∗)+Var⁡(X) (β−β∗)2\begin{aligned} v(\beta) &= v(\beta_*) \\[0.4em] &\quad + \operatorname{Var}(X)\,(\beta - \beta_*)^2 \end{aligned}

with the unique minimizer

β∗=Cov⁡(Y,X)Var⁡(X)\beta_* = \frac{\operatorname{Cov}(Y, X)}{\operatorname{Var}(X)}

and the minimum

v(β∗)=Var⁡(Y)−Cov⁡(Y,X)2Var⁡(X)=Var⁡(Y) (1−ρ2).\begin{aligned} v(\beta_*) &= \operatorname{Var}(Y) \\[0.4em] &\quad - \frac{\operatorname{Cov}(Y, X)^2}{\operatorname{Var}(X)} \\[0.4em] &= \operatorname{Var}(Y)\,(1 - \rho^2). \end{aligned}

The last form needs Var⁡(Y)>0\operatorname{Var}(Y) > 0 as well, so that the correlation ρ=Corr⁡(Y,X)\rho = \operatorname{Corr}(Y, X) is defined. The coefficient β∗\beta_* is the slope of the population linear regression of YY on XX, in payoff units per control unit. Since v(β)−v(0)=Var⁡(X) β (β−2β∗)v(\beta) - v(0) = \operatorname{Var}(X)\, \beta\, (\beta - 2\beta_*), every β\beta strictly between 00 and 2β∗2\beta_* lowers the variance when Cov⁡(Y,X)≠0\operatorname{Cov}(Y, X) \neq 0, and β=2β∗\beta = 2\beta_* gives back exactly Var⁡(Y)\operatorname{Var}(Y). In practice β∗\beta_* is unknown and is estimated, from an independent pilot sample when exact unbiasedness is required.

In plain words The best multiple of the centered control is the regression slope of the payoff on the control. What remains is the part of the payoff’s variance that the control cannot explain linearly, so a correlation of 0.90.9 leaves 1−0.81=191 - 0.81 = 19 percent of the variance.

Example Take the constructed moments Var⁡(Y)=25\operatorname{Var}(Y) = 25, Var⁡(X)=16\operatorname{Var}(X) = 16 and Cov⁡(Y,X)=18\operatorname{Cov}(Y, X) = 18. They form a valid covariance matrix, since its determinant 25⋅16−182=7625 \cdot 16 - 18^2 = 76 is positive. The correlation is 18/25⋅16=0.918/\sqrt{25 \cdot 16} = 0.9, the optimal coefficient is β∗=18/16=1.125\beta_* = 18/16 = 1.125, and

v(β∗)=25−32416=4.75=25 (1−0.81),\begin{aligned} v(\beta_*) &= 25 - \frac{324}{16} = 4.75 \\[0.4em] &= 25\,(1 - 0.81), \end{aligned}

a reduction by a factor of about 5.265.26. The rounder choice β=1\beta = 1 gives v(1)=25+16−36=5v(1) = 25 + 16 - 36 = 5, close to the optimum because the quadratic is flat near its minimum, while β=2.25=2β∗\beta = 2.25 = 2\beta_* gives 25+81−81=2525 + 81 - 81 = 25, no gain at all.

Importance sampling

Definition Let the model inputs XX have a density pp on Rd\mathbb{R}^d under the pricing measure, and let θ=Ep[f(X)]\theta = \mathbb{E}_p[f(X)] with Ep[∣f(X)∣]<∞\mathbb{E}_p[\lvert f(X) \rvert] < \infty, where Ep\mathbb{E}_p and Eq\mathbb{E}_q denote expectations when XX has density pp or qq. Let qq be a proposal density with q(x)>0q(x) > 0 wherever f(x) p(x)≠0f(x)\,p(x) \neq 0. Then

θ=∫f(x) p(x) dx=∫f(x) p(x)q(x) q(x) dx=Eq[f(X) w(X)],\begin{aligned} \theta &= \int f(x)\, p(x)\, dx \\[0.4em] &= \int f(x)\, \frac{p(x)}{q(x)}\, q(x)\, dx \\[0.4em] &= \mathbb{E}_q\bigl[f(X)\, w(X)\bigr], \end{aligned}

where the last two integrals run over the set {q>0}\{q > 0\}, which contains every point where fp≠0fp \neq 0, and w=p/qw = p/q is the importance weight of the next card. The importance sampling estimator draws X1,…,XnX_1, \dots, X_n independently from qq and averages f(Xi) w(Xi)f(X_i)\, w(X_i), so it is unbiased under the support and integrability conditions alone. Its variance per draw is

Var⁡q(f(X) w(X))=Ep[f(X)2 w(X)]−θ2,\begin{aligned} &\operatorname{Var}_q\bigl(f(X)\, w(X)\bigr) \\[0.4em] &\quad = \mathbb{E}_p\bigl[f(X)^2\, w(X)\bigr] - \theta^2, \end{aligned}

which can be smaller or larger than the plain variance Var⁡p(f(X))\operatorname{Var}_p(f(X)), and can even be infinite. The usual standard error and normal confidence interval need it to be finite. For a nonnegative ff with θ>0\theta > 0, the proposal q=fp/θq = fp/\theta would give zero variance, but it needs θ\theta itself, so it guides the choice of qq rather than being a method.

In plain words Sample more often where the payoff is earned, then correct each draw by how much more likely the proposal made it. The correction keeps the target exact, and the method pays off only if the corrected payoffs vary less than the original ones.

Example A constructed digital option pays 11 when a standard normal driver ZZ exceeds 33, with a zero rate so that nothing is discounted. Its value is θ=Φ(−3)≈0.0013499\theta = \Phi(-3) \approx 0.0013499, and the plain estimator has variance θ(1−θ)≈0.001348\theta(1 - \theta) \approx 0.001348 per draw, a relative standard error of about 27.2/n27.2/\sqrt{n}. Sampling from the proposal N(a,1)N(a, 1) with a=3a = 3 puts half of the draws in the paying region. Completing the square, φ(z) e−az=ea2/2φ(z+a)\varphi(z)\, e^{-az} = e^{a^2/2} \varphi(z + a), so the second moment of the weighted payoff is

Ep[1{Z>3} w(Z)]=ea2 Φ(−3−a)≈7.99×10−6.\begin{aligned} &\mathbb{E}_p\bigl[\mathbf{1}_{\{Z > 3\}}\, w(Z)\bigr] \\[0.4em] &\quad = e^{a^2}\, \Phi(-3 - a) \\[0.4em] &\quad \approx 7.99 \times 10^{-6}. \end{aligned}

The variance per draw is about 6.17×10−66.17 \times 10^{-6}, about 218218 times smaller than the plain variance, and the relative standard error falls to about 1.84/n1.84/\sqrt{n}. A larger shift is not automatically better. With a=5a = 5 the variance ratio drops to about 3131, because about 8383 percent of the value then comes from the roughly 4.44.4 percent of draws between 33 and 3.53.5, whose weights are far larger than those of the paying draws further out.

Importance weight

Definition The importance weight, or likelihood ratio, of a target density pp relative to a proposal density qq is

w(x)=p(x)q(x),q(x)>0.w(x) = \frac{p(x)}{q(x)}, \qquad q(x) > 0 .

It is dimensionless and nonnegative, and Eq[w(X)]\mathbb{E}_q[w(X)] equals the target probability of the set {q>0}\{q > 0\}, which is 11 when q>0q > 0 wherever p>0p > 0. For the standard normal target φ\varphi and the shifted proposal φ(⋅−a)\varphi(\cdot - a),

log⁡w(z)=−12z2+12(z−a)2=−az+12a2,\begin{aligned} \log w(z) &= -\tfrac12 z^2 + \tfrac12 (z - a)^2 \\[0.4em] &= -az + \tfrac12 a^2, \end{aligned}

so w(z)=e−az+a2/2w(z) = e^{-az + a^2/2}. Its second moment under the proposal is Eq[w2]=Ep[w]=ea2\mathbb{E}_q[w^2] = \mathbb{E}_p[w] = e^{a^2}, so the weights have variance ea2−1e^{a^2} - 1, which grows very fast with the shift. In path form, let W~\widetilde W be a Brownian motion under a sampling measure Q~\widetilde{\mathbb{Q}} and simulate the driver Wt=W~t+atW_t = \widetilde W_t + at. The density

dQdQ~∣FT=e−aW~T−a2T/2\frac{d\mathbb{Q}}{d\widetilde{\mathbb{Q}}}\bigg|_{\mathcal{F}_T} = e^{-a \widetilde W_T - a^2 T/2}

makes WW a Brownian motion under Q\mathbb{Q} by Girsanov’s theorem, and Novikov’s condition holds because aa is constant. This is the convention of Exponential martingales and measure changes with the tilt λ=a\lambda = a, and at T=1T = 1, with Z=W1Z = W_1, it is exactly the weight above, since −aW~1−a2/2=−aZ+a2/2-a\widetilde W_1 - a^2/2 = -aZ + a^2/2.

In plain words The weight says how much more or less likely a draw is under the target law than under the law that produced it. It multiplies the payoff. By itself it is neither a payoff nor the probability of the paying event.

Example With the shift a=1a = 1 and the proposal draw z=2z = 2, the weight is w(2)=e−2+0.5=e−1.5≈0.22313w(2) = e^{-2 + 0.5} = e^{-1.5} \approx 0.22313. A realized payoff of 44 currency units at that draw contributes 4⋅0.22313≈0.89254 \cdot 0.22313 \approx 0.8925 to the weighted average. For a=1a = 1 the weights have mean 11 and variance e−1≈1.718e - 1 \approx 1.718 under the proposal. For a=3a = 3 the variance is e9−1≈8102e^{9} - 1 \approx 8102, and the median weight is e−4.5≈0.011e^{-4.5} \approx 0.011, so most draws carry tiny weights while a few carry large ones.

Check yourself

  1. A payoff YY and a control XX with known mean have the constructed moments Var⁡(Y)=36\operatorname{Var}(Y) = 36, Var⁡(X)=9\operatorname{Var}(X) = 9 and Cov⁡(Y,X)=12\operatorname{Cov}(Y, X) = 12. Find the correlation, the optimal control coefficient, the variance per draw with that coefficient and with β=1\beta = 1, and the number of plain draws that matches the variance of 1000010000 optimally controlled draws at equal cost per draw.
Show the answer

The moments are valid, since 36⋅9−122=180>036 \cdot 9 - 12^2 = 180 > 0. The correlation is ρ=12/36⋅9=12/18=2/3\rho = 12/\sqrt{36 \cdot 9} = 12/18 = 2/3, and the optimal coefficient is β∗=12/9=4/3\beta_* = 12/9 = 4/3. The minimum variance is

v(β∗)=36−1449=20=36 (1−49).\begin{aligned} v(\beta_*) &= 36 - \frac{144}{9} = 20 \\[0.4em] &= 36\,\bigl(1 - \tfrac49\bigr). \end{aligned}

With β=1\beta = 1 the variance is 36+9−24=2136 + 9 - 24 = 21, slightly above the minimum. Plain sampling has variance 3636 per draw, so it needs 36/20=1.836/20 = 1.8 times as many draws, that is 1800018000, to match 1000010000 controlled draws.

  1. In a constructed normal model with zero rate, the terminal price is ST=K+10ZS_T = K + 10Z with ZZ standard normal, and an at-the-money straddle pays ∣ST−K∣=10∣Z∣\lvert S_T - K \rvert = 10\lvert Z \rvert. A classmate prices it with antithetic pairs and computes the standard error from all 2n2n evaluations as if they were independent. Find the variance of one pair average and compare it with the average of two independent evaluations. What is wrong with the standard error?
Show the answer

The payoff g(z)=10∣z∣g(z) = 10\lvert z \rvert is even, so g(−Z)=g(Z)g(-Z) = g(Z) and the pair average equals g(Z)g(Z) itself. Its variance is

Var⁡(10∣Z∣)=100 (1−2π)≈36.34,\begin{aligned} \operatorname{Var}(10\lvert Z \rvert) &= 100\,\bigl(1 - \tfrac{2}{\pi}\bigr) \\[0.4em] &\approx 36.34, \end{aligned}

while two independent evaluations averaged have variance about 18.1718.17. The pairs double the variance at equal cost. The monotonicity hypothesis fails here, since gg decreases for z<0z < 0 and increases for z>0z > 0, and cA=Var⁡(g(Z))>0c_A = \operatorname{Var}(g(Z)) > 0. The estimator is still unbiased, with mean 102/π≈7.97910\sqrt{2/\pi} \approx 7.979. The 2n2n evaluations come in identical pairs, so their sample variance is close to 36.3436.34, and dividing by 2n2n reports a variance of about 18.17/n18.17/n for the estimate. The true variance of the average of the nn pair averages is about 36.34/n36.34/n, so the reported standard error is too small by a factor of 2\sqrt{2}. The correct standard error uses the nn pair averages as the observations.

  1. A constructed digital option pays 11 when a standard normal driver ZZ exceeds 2.52.5, with a zero rate. A colleague samples ZZ from the proposal N(2.5,1)N(2.5, 1). What does the average of the unweighted payoffs estimate? Find the weight of the draw z=3z = 3 and compare the variance per draw of the weighted estimator with the plain one. What happens with the same proposal for a digital that pays 11 when Z<−2.5Z < -2.5?
Show the answer

Without weights the average estimates the proposal probability P(Z>2.5)=0.5\mathbb{P}(Z > 2.5) = 0.5 for Z∼N(2.5,1)Z \sim N(2.5, 1), not the target value θ=Φ(−2.5)≈0.0062097\theta = \Phi(-2.5) \approx 0.0062097. With a=2.5a = 2.5 the weight is w(z)=e−2.5z+3.125w(z) = e^{-2.5z + 3.125}, so

w(3)=e−7.5+3.125=e−4.375≈0.012588,\begin{aligned} w(3) &= e^{-7.5 + 3.125} \\[0.4em] &= e^{-4.375} \approx 0.012588, \end{aligned}

and that draw contributes 0.0125880.012588 to the weighted average. Completing the square as in the importance sampling card, the second moment of the weighted payoff is ea2Φ(−2.5−a)=e6.25 Φ(−5)≈1.4849×10−4e^{a^2}\Phi(-2.5 - a) = e^{6.25}\,\Phi(-5) \approx 1.4849 \times 10^{-4}, so the variance per draw is

1.4849×10−4−θ2≈1.0993×10−4,\begin{aligned} &1.4849 \times 10^{-4} - \theta^2 \\[0.4em] &\quad \approx 1.0993 \times 10^{-4}, \end{aligned}

against θ(1−θ)≈0.0061711\theta(1 - \theta) \approx 0.0061711 for plain sampling, about 5656 times smaller. For a standard error of 0.00010.0001, plain sampling needs about 617000617000 draws and importance sampling about 1100011000. For the digital that pays when Z<−2.5Z < -2.5, the same proposal still gives an unbiased estimator, because the normal proposal is positive everywhere. Its second moment is

Ep[1{Z<−2.5} w(Z)]=e6.25 Φ(0)≈259,\begin{aligned} &\mathbb{E}_p\bigl[\mathbf{1}_{\{Z < -2.5\}}\, w(Z)\bigr] \\[0.4em] &\quad = e^{6.25}\, \Phi(0) \approx 259, \end{aligned}

so the variance per draw is about 259259, roughly 4200042000 times the plain variance. The rare paying draws sit where the proposal density is tiny, and their weights are enormous. A shift in the wrong direction makes the estimator far worse.

How this lesson connects