Monte-Carlo Techniques in Risk Management
Monte-Carlo Techniques in Risk Management
For this problem, however, the usual approach would be completely inadequate since approximating θ to any
reasonable degree of accuracy would require n to be inordinately large. For example, we will soon see that on
average we would have to set n ≈ 3.26 × 10137 in order to obtain just one non-zero value of I. Clearly this is
impractical and a much smaller value of n would have to be used. Using a much smaller value of n, however,
would almost inevitably result in an estimate, θbn = 0, and an approximate confidence interval [L, U ] = [0, 0]! So
the naive Monte-Carlo approach does not work here.
Before proceeding further, it is not unreasonable to ask why such a problem would be important. After all, if
you want to estimate θ = P(X ≥ 25), isn’t it enough to know that θ is very close to 0? Put another way, do we
care whether θ = 10−10 or θ = 10−20 ? For many problems, this is a valid objection, as we may care just how
small θ as long as we know that it is indeed “small”. However, for many other other problems it is very
Monte-Carlo Methods for Risk Management 2
important to know θ to a much greater level of accuracy. For example, suppose we are designing a nuclear
power plant and we want to estimate the probability, θ, of a meltdown occurring sometime in the next 100
years. We would expect θ to be very small, even for a poorly designed power plant. However, this is not enough.
Should a meltdown occur, then clearly the consequences could be catastrophic and so we would like to know θ
to a very high degree of accuracy.
For another example, suppose we want to price a deep-out-of-the-money option using simulation. Then the price
of the option will be very small, perhaps lying between .1 cents and 10 cents. Clearly a bank is not going to
suffer if it misprices this option and sells it for .1 cents when the correct value is 10 cents. But what if the bank
sells 1 million of these options? And what if the bank makes similar trades several times a week? Then it
becomes very important to price the option correctly. A particularly rich source of examples can be found in
risk-management where we seek to estimate risk measures such as the VaRα or ESα of a given portfolio.
θbn,is is then an importance sampling estimator of θ. We often define h∗ (X) := h(X)f (X)/g(X) so that
θ = Eg [h∗ (X)]. We refer to f and g as the original and importance sampling densities, respectively. We also
refer to f /g as the likelihood ratio.
θ = Ef [h(X)]
= Eg [h∗ (X)]
where h∗ (X) := h(X)f (X)/g(X). Again we have two methods for estimating θ: the original method where we
simulate with respect to the density function, f , and the importance sampling method where we simulate with
respect to the density, g.
Pn 2
Example 4 Suppose we wish to estimate θ = P i=1 Xi ≥ 50 where the Xi ’s are IID N(0, 1). Then
θ = E[h(X)] where h(X) := I{P X 2 ≥50} and X := (X1 , . . . , Xn ). We could estimate θ using importance
i
sampling as follows.
2 2
e−x1 /2 e−xn /2 P
Z Z
θ = E[h(X)] = ... √ ... √ I dx1 . . . dxn
2π { Xi ≥50}
2
x1 xn 2π
2 2
! 2 2 2 2
e−x1 /2 e−xn /2 e−x1 /2σ e−xn /2σ
Z Z
n
= σ ... . . . −x2 /2σ2 √ ... √ I P X 2 ≥50} dx1 . . . dxn
2πσ 2 {
2 2
x1 xn e−x1 /2σ e n 2πσ 2 i
2 2 2 2
e−x1 /2σ e−xn /2σ
x2
Z Z
x2
1 (1−1/σ 2 ) n (1−1/σ 2 )
= σn ... e− 2 . . . e− 2 √ ... √ I P X 2 ≥50} dx1 . . . dxn
x1 xn 2πσ 2 2πσ 2 { i
2 2
X1 Xn
(1− σ12 ) (1− σ12 )
= Eg σ n e− 2 . . . e− 2 I{P X 2 ≥50}
i
where Eg [.] denotes expectation under a multivariate normal distribution where the X ∼ MVN(0, σ 2 In ).
Thus far we have not addressed the issue of how to choose a good sampling density, g, so that we obtain a
variance reduction when we sample from g instead of f . We will now address this question.
h(x)2 f (x)
Z
= f (x) dx − θ2
g(x)
Monte-Carlo Methods for Risk Management 4
while the variance of the original estimator is given by Varf (h(X)) = h(x)2 f (x) dx − θ2 . So the reduction
R
Now the important part of the density, f , could plausibly be defined to be that region, A say, in the support of
f where h(x)f (x) is large. But by the above observation, we would like to choose g so that f (x)/g(x) is small
whenever x is in A. That is, we would like a density, g, that puts more weight on A: hence the name
importance sampling. Note that when h involves a rare event so that h(x) = 0 over “most” of the state space,
it can then be particularly valuable to choose g so that we sample often from that part of the state space where
h(x) 6= 0. This is why importance sampling is most useful for simulating rare events. Further guidance on how
to choose g is obtained from the following observation.
As we are free to choose g, let’s suppose we choose g(x) = h(x)f (x)/θ. Then it is easy to see that
Varg (h∗ (X)) = θ2 − θ2 = 0
so that we have a zero variance estimator! This means that if we sample with respect to this particular choice of
g, then we would only need one sample and this sample would equal θ with probability1 one. Of course this is
not feasible in practice since we don’t know θ and therefore don’t know g either. However, all is not lost and this
observation can often guide us towards excellent choices of g that lead to extremely large variance reductions.
2
Example 5 Returning to Example 3, recall that we wished to estimate θ = E[h(X)] = E[X 4 eX /4 I{X≥2} ]
where X ∼ N(0, 1). If we sample from a PDF, g, that is also normal with variance 1 but mean µ, then we know
that g takes it maximum value at x = µ. Therefore, a good choice of µ might be
2 √
µ = arg max h(x)f (x) = arg max x4 e−x /4 = 8.
x x≥2
√
4 X 2 /4 − 8X+4
√
Then θ = Eg [h∗ (X)] = Eg [X e e I{X≥2} ] where g(·) denotes the N( 8, 1) PDF.
1 With this choice of g we have h∗ (x) = h(x)f (x)/g(x) = θ. Note also that this choice of g is valid since g(x) dx = 1 and
R
we have assumed h is non-negative.
2 We note that it is not necessary that f and g come from the same family of distributions. In fact sometimes it is necessary
to choose g from a different family of distributions. This might occur, for example, if it is difficult or inefficient to simulate
from the family of distributions to which f belongs. In that case, our reason for using importance sampling in the first place is
so that we can simulate from an ‘easier’ distribution, g.
Monte-Carlo Methods for Risk Management 5
where the Xi ’s are IID N(0, 1). This means that if f is the joint PDF of X = (X1 , . . . , Xm ), then (with a mild
abuse of notation) we may write
Ca = Ef [h(X1 , . . . , Xn )].
Now if K is very large relative to S0 so that the option is deep out-of-the-money then pricing the option using
simulation amounts to performing a rare event simulation. As a result, estimating Ca using importance sampling
will often result in a very large variance reduction. In order to apply importance sampling, we need to choose the
sampling density, g. For this, we could take g to be the multivariate normal PDF with variance-covariance
matrix equal to the identity, Im , and mean vector, µ∗ . As before, a good possible value of µ∗ might be
µ∗ = arg maxx h(x)f (x) which can be found using numerical methods.
X12 X22
2 2 2
θ = E[I{X12 +X22 ≥50} ] = Eg σ exp − (1 − 1/σ ) − (1 − 1/σ ) I{X12 +X22 ≥50} .
2 2
Pn
For the more general case where n > 2, we could proceed by again choosing σ so that Eg [ i=1 Xi2 ] = 50.
Monte-Carlo Methods for Risk Management 6
Example 8 Suppose X is an exponential random variable with mean 1/λ. Then f (x) = λe−λx for x ≥ 0, and
it is easy to see that ft (x) = Ce−(λ−t)x where C is the constant that makes the density integrate to 1.
Example 9 (The Probability that a Sum of Random Variables Will Exceed SomePValue)
n
Suppose X1 , . . . , Xn are independent random variables, where Xi has density fi (·). Let Sn := i=1 Xi and
suppose we want to estimate θ := P(Sn ≥ a) for some constant, a. If a is large so that we are dealing with a
rare event we should use importance sampling to estimate θ. Since Sn is large when the Xi ’s are large it makes
sense to sample each Xi from its tilted density function, fi,t (·) for some value of t > 0. We may then write
" n
# " n
! #
Y fi (Xi ) Y
θ = E[I{Sn ≥a} ] = Et I{Sn ≥a} = Et I{Sn ≥a} Mi (t) e−tSn
i=1
fi,t (Xi ) i=1
probability equals one. The case of interest is then when E[X1 ] ≤ 0. A similar argument to that of Example 9
yields
"∞ # ∞
X X
θ = E[I{τa <∞} ] = E 1{τa =n} = E 1{τa =n}
n=1 n=1
X∞
n
Et 1{τa =n} (MX (t)) e−tSn
=
n=1
X∞
τ
Et 1{τa =n} (MX (t)) a e−tSτa
=
n=1
h i
= Et I{τa <∞} e−tSτa +τa ψ(t)
used to ensure that the simulation stops almost surely. It is possible to choose a good value of t based on the
cumulant generating function.
Note that this example has direct applications to the estimation of ruin probabilities in the context of insurance
risk. For example, suppose Xi := Yi − cTi where Yi is the size of the ith claim, Ti is the inter-arrival time
between claims, c is the premium received per unit time and a is the initial reserve. Then θ is the probability
that the insurance company ever goes bankrupt. Only in very simple models is it possible to calculate θ
analytically. In general, Monte-Carlo approaches are required.
So to estimate θ using importance sampling, we would generate X1 , . . . , Xn with density g(·), and set
Pn
h(Xi )I{Xi ∈A} f (Xi )/g(Xi )
θbn,i = i=1
Pn .
i=1 I{Xi ∈A} f (Xi )/g(Xi )
In contrast to our usual estimators, θbn,i is no longer an average of n IID random variables but instead, it is the
ratio of two such averages. This has implications for computing approximate confidence intervals for θ. In
particular, confidence intervals should now be estimated using bootstrapping techniques. An obvious application
of this methodology in risk management is in the estimation of quantities similar to ES or CVaR.
Exercise 1 How does the practical problem of estimating the α-CVaR of a loss distribution, i.e. estimating
θ := E[L | L ≥ VaRα ], generally differ from the problem of estimating θ in (4)?
Monte-Carlo Methods for Risk Management 8
so that
m
Y m
Y
ML (t) = E[etL ] = E[etei Yi ] = pi etei + 1 − pi .
i=1 i=1
Let Qt be the corresponding tilted probability measure so that
Pm m
et i=1 ei y i Y etei yi
Qt ({y}) = P ({y}) = pyi (1 − pi )1−yi
tei + 1 − p ) i
ML (t) i=1
(pi e i
m
Y yi
= qt,i (1 − qt,i )1−yi
i=1
where qt,i := pi e /(pi e + 1 − pi ) is the Qt probability of the ith credit defaulting. Note that the default
tei tei
How Do We Choose µ?
Recall that the quantity of interest is θ := P (L ≥ c) = E[P (L ≥ c | Ψ)]. We know from our earlier discussion of
importance sampling that we would like to choose the importance sampling density, g ∗ (Ψ) say, so that
1
g ∗ (Ψ) ∝ P (L ≥ c | Ψ) exp(− Ψ> Σ−1 Ψ). (5)
2
Of course this is not possible since we do not know P (L ≥ c | Ψ), the very quantity that we wish to estimate.
The maximum principle applied to the MVNp (µ, Σ) distribution would then suggest taking µ equal to the value
of Ψ which maximizes the right-hand-side of (5). Again it is not possible to solve this problem exactly as we do
not know P (L ≥ c | Ψ) but numerical methods can be used to find good approximate solutions. See
Glasserman and Li (2005) for further details.
where θc := E[Y |I = c] for c = r, g, b, y.4 How does the variance of θbst,n compare with the variance of θbn , the
original raw simulation estimator? To answer this question, assume for now that nc = n/4 for each c, and that
Yc is a sample from the density, fc . Then a fair comparison of Var(θbn ) with Var(θbst,n ) should compare
where Y1 , Y2 , Y3 and Y4 are IID samples from the original simulation algorithm, i.e. where we first select the
ball randomly and then receive the payoff, and the Yc ’s are independent with density fc (·), for c = r, g, b, y.
Now recall the conditional variance formula which states
In order to achieve a variance reduction it must also be the case that Y and W are dependent.
Pm Now divide R
into m non-overlapping subintervals, ∆1 , . . . , ∆m , such that pj := P(W ∈ ∆j ) > 0 and j=1 pj = 1. Note
that if W can take any value in R, then the first interval should be [−∞, a], while the final interval should be
[b, ∞] for some finite a and b.
more work.
Monte-Carlo Methods for Risk Management 11
3. Let Y (j) denote a random variable with the same distribution as (Y |W ∈ ∆j ) ≡ (Y |I = j).
Our notation then implies θj = E[Y |I = j] = E[Y (j) ] and σj2 = Var(Y |I = j) = Var(Y (j) ). In particular we
have
Note that to estimate θ we only need to estimate the θi ’s since by condition 1 above, the pi ’s are easily
computed. Furthermore, we know how to estimate the θi ’s by condition 2. If we use ni samples to estimate θi ,
then an estimate of θ is given by
θbst,n = p1 θb1,n1 + . . . + pm θbm,nm . (10)
It is clear that θbst,n will be unbiased if for each i, θbi,ni is an unbiased estimate of θi .
σ12 σ2
= p21 + . . . + p2m m
n1 nm
Pm 2
j=1 pj σj
= .
n
On the other hand,
Pm the usual simulation estimator has variance σ 2 /n where σ 2 := Var(Y ). Therefore, we need
only show that j=1 pj σj < σ 2 to prove that the non-optimized stratification estimator has a lower6 variance
2
Pm
than the usual raw estimator. The proof that j=1 pj σj2 < σ 2 is precisely the same as that used for the game
Pm
show example. In particular, equation (8) implies σ 2 = Var(Y ) ≥ E[Var(Y |I)] = j=1 pj σj2 and the proof is
complete!
Therefore, to minimize Var(θbst,n ) we must solve the following constrained optimization problem:
m
X p2j σj2
min subject to n1 + . . . + nm = n. (12)
nj
j=1
nj
6 The optimized stratification estimator would then of course achieve an even greater variance reduction.
Monte-Carlo Methods for Risk Management 12
We can easily solve (12) using a Lagrange multiplier. The optimal solution is given by
!
∗ p j σj
nj = Pm n (13)
j=1 pj σj
P 2
m
and the minimized variance is given by Var(θbst,n∗ ) = p
j=1 j jσ /n. Note that the solution in (13) makes
intuitive sense: if pj is large, then other things being equal, it makes sense to expend more effort simulating
from stratum j, i.e., the region where Wj ∈ ∆j . Similarly, if σj2 is large then, other things again being equal, it
makes sense to simulate more often from stratum j so as to get a more accurate estimate of θj .
Remark 1 It is interesting to note the following connection between stratified sampling and importance
sampling. We know that when we importance sample, we like to sample more often from the important region.
The choice of nj in (13) also means that we simulate more often from the important region (in this case the
regions with large σj ’s) when we use optimized stratified sampling.
Remark 2 Note also the connection between stratified sampling and conditional Monte-Carlo. Both methods
rely on the conditional variance formula to prove that they lead to a variance reduction. The difference between
the two methods can best be explained as follows. Suppose we wish to estimate θ := E[Y ] using simulation and
we do this by first generating random variable, W , and then generating Y given W . In the conditional
expectation method, we simulate W first, but then compute E[Y |W ] analytically. In the stratified sampling
method, we effectively generate W analytically, and then simulate Y given W .
The stratified simulation algorithm is given below. We assume that the pilot simulations have already been
completed, or it has been decided not to conduct them at all; either way, the nj ’s have been pre-computed. We
2
also show how the estimate, θbn,st , and the estimated variance, σbn,st , can be computed without having to store
P (j) 2 P (j)
all the generated samples. That is, we simply keep track of Yi and Yi for each j since these
7 2
quantities are all that is required to compute θn,st and σ
b bn,st .
Pnj (j)
Pnj (j)
i=1 Yi i=1 Yi
that θbn,st = m
7 Note
Pm
p2j . Both quantities can be estimated
P
j=1 nj
pj and Var(θbn,st ) = j=1 Var nj
P nj (j) P nj (j) 2
knowing just i=1 Yi and i=1 Yi . Any simulation study that requires a large number of samples should only keep track
of these quantities, thereby avoiding the need to store every sample.
Monte-Carlo Methods for Risk Management 13
2
set θbn,st = 0; σ
bn,st = 0;
for j = 1 to m
set sumj = 0; sum squaresj = 0;
for i = 1 to nj
(j)
generate Yi
(j)
set sumj = sumj + Yi
(j) 2
set sum squaresj = sum squaresj + Yi
end for
set θj = sumj /nj
set σbj2 = sum squaresj − sum2j /nj /(nj − 1)
set θbn,st = θbn,st + pj θj
2 2
set σbn,st =σ bn,st +σbj2 p2j /nj
end for
set approx. 100(1 − α) % CI = θbn,st ± z1−α/2 σ
bn,st
2
√
where Y = h(X) := e−rT max 0, S0 e(r−σ /2)T +σ T X − K for X ∼ N(0, 1). While we know how to
compute C0 analytically, it is worthwhile seeing how we could estimate it using stratified simulation. Let
W = X be our stratification variable. To see that we can stratify using this choice of W note that:
(2) Generating (Y |W ∈ ∆)
(h(X)|X ∈ ∆) can easily be generated. We do this by first generating X̃ := (X|X ∈ ∆) and then take h(X̃).
We generate X̃ as follows. First note that if X ∼ N(0, 1), then we can generate an X using the inverse
8 See Chapter 9 of Glasserman (2004) for a risk management application in a multivariate t setting.
Monte-Carlo Methods for Risk Management 14
transform method by setting X = Φ−1 (U ). The problem with such an X is that it may not lie in ∆ = [a, b].
However, we can overcome this problem by simply generating Ũ ∼ U (Φ(a), Φ(b)) and then setting
X̃ = Φ−1 (Ũ ). It is then straightforward to check that X̃ ∼ (X|X ∈ [a, b]).
It is therefore clear that we can estimate C0 using X as a stratification variable.
and that it’s price is given by Ca = E[Y ] where as before we assume St ∼ GBM (r, σ 2 ). Now each SiT /m may
be expressed as r !
2 iT T
SiT /m = S0 exp (r − σ /2) +σ (X1 + . . . + Xi ) (15)
m m
where the Xi ’s are IID N(0, 1). This means that we may then write Ca = E [h(X1 , . . . , Xm )] where the function
h(.) is given implicitly by (14) and (15). To estimate Ca using our standard simulation algorithm, we would
simply generate sample values of h(X1 , . . . , Xm ) and take their average as our estimate. We can also, however,
estimate Ca using stratified9 sampling.
To do so, we must first choose a stratification variable, W . One possible choice would be to set W = Xj for
some j. However, thisP is unlikely to capture much of the variability of h(X1 , . . . , Xm ). A much better choice
m
would be to set W = j=1 Xj . Of course, we need to show that such a choice is possible. That is, we need to
show that P(W ∈ ∆) is easily computed, and that (Y |W ∈ ∆) is easily generated.
(2) Generating (Y |W ∈ ∆)
We need two results from the theory of multivariate normal random variables. The first result is well known to
us:
1. Suppose X = (X1 , . . . , Xm ) ∼ MVN(0, Σ). If we wish to generate a sample vector X, we first generate
Z ∼ MVN(0, Im ) and then set
X = CT Z (16)
where CT C = Σ. One possibility of course is to let C be the Cholesky decomposition of Σ, but in fact
any matrix C that satisfies CT C = Σ will do.
9 The method we now describe is also useful for pricing other path dependent options. See Glasserman (2004) for further
details.
Monte-Carlo Methods for Risk Management 15
p
2. Let a = (a1 a2 . . . am ) satisfy ||a|| = 1, i.e. a21 + . . . + a2m = 1, and let
Z = (Z1 , . . . , Zm ) ∼ MVN(0, Im ). Then
( m
)
X
(Z1 , . . . , Zm ) ai Zi = w ∼ MVN(wa> , Im − a> a).
i=1
Pm
Therefore, to generate {(Z1 , . . . , Zm ) | i=1 ai Zi = w} we just need to generate a vector, V, where
V ∼ MVN(wa> , Im − a> a) = wa> + MVN(0, Im − a> a).
>
Generating such a V is very easy since (Im − a> a) (Im − a> a) = Im − a> a. That is, Σ> Σ = Σ where
Σ = Im − a> a, so we can take C = Σ in (16).
We can now return to the problem of generating (Y | W ∈ P ∆). Since Y = h(X1 , . . . , Xm ), we can clearly
m
generate (Y | W ∈ ∆) if we can generate [(X1 , . . . , Xm ) | i=1 Xi ∈ ∆]. To do this, suppose again that
∆ = [a, b]. Then
" m
# " m #
X 1 X a b
(X1 , . . . , Xm ) Xi ∈ [a, b] ≡ (X1 , . . . , Xm ) √ Xi ∈ √ , √ .
i=1
m i=1 m m
Pm
Now we can generate [(X1 , . . . , Xm ) | i=1 Xi ∈ ∆] in two steps:
h Pm Pm h ii
Step 1: Generate √1 X √1 X ∈ √a , √b . This is easy to do since
m i=1 i i=1
m i
m m
Pm h i
1 √a , √b
√ X ∼ N(0, 1) so we just need to generate N(0, 1) N(0, 1) ∈ which we can do using
m i=1 i m m
the method described in Example 10. Let w be the generated value.
h Pm i
Step 2: Now generate (X1 , . . . , Xm ) √1 Xi = w which we can do by the second result above and
m i=1
the comments that follow it.
where we again assume that St ∼ GBM (r, σ 2 ). Using conditional Monte-Carlo, we can write (why?)
C0 = E[Y ] where
Y := e−rT /2 c(ST /2 , T /2, K1 , r, σ)I{ST /2 ≤L} + c(ST /2 , T /2, K2 , r, σ)I{ST /2 ≥L} (17)
and where c(x, t, k, r, σ) is the price of a European call option with strike k, interest rate r, volatility σ, time to
maturity t, and initial stock price x.
Figure 1: Computing exposures of a vanilla swap by simulation. (Courtesy of Giovanni Cesari and UBS)
where τ denotes the random default time of the counterparty, Vt denotes the time t value (from our
perspective) of the derivative security and RV is the recovery rate. The CVA is the time t = 0 value of the sum
10 We will closely follow a tutorial presentation of Giovanni Cesari.
Monte-Carlo Methods for Risk Management 17
of the losses, Losst , where the sum is taken over all t ∈ [0, T ]. Like all security prices, it is determined via
risk-neutral pricing and so we obtain
Z T +
Q Vu
CVA0,T = (1 − RV ) E0 1{τ =u} du (19)
0 Nu
where Q denotes the risk-neutral probability measure corresponding to the numeraire price process Nt .
Evaluating (19) is generally computationally intensive. If Vu+ /Nu is Q-independent of τ then some simplification
occurs as we can then model the default event separately from the price process of the derivative security.
Moreover, CDS prices in the market-place can typically then be used to work with the term EQ
0 1{τ =u} which
then appears in the integrand in (19). When Vu+ /Nu and τ are Q-dependent, however, then matters are
considerably more complex and one must now account for the possibility of wrong-way risk in the modeling.
Very often analytic expressions are not available for the price Vt in which case it must be computed numerically
or via Monte-Carlo simulation. If the derivative security is Bermudan / American and therefore allows for the
possibility of early exercise then matters become even more complicated as an optimal stopping problem must
then be (approximately) solved11 at each time point t along each simulated path. In general then, evaluating
CVA0,T is demanding and often requires nested Monte-Carlo simulations.
In determining (18) we have only taken our point of view. However our counterparty will also perceive the
possibility that we will default on them and therefore they too will compute a CVA. The sum of the two CVAs is
known as bilateral CVA and it is this CVA that should be accounted for in the price of the derivative security.
Note that the value of our counterparty’s CVA is our debit value adjustment (DVA).
Exercise 2 Suppose the underlying derivative security moves in our favor. Do you think we will record a gain
or loss on our CVA? What about our DVA?
Y (θ + ) − Y (θ − )
∆ := (20)
2
for some small given > 0. We could therefore estimate α(θ) (with some hopefully small bias) by simulating
samples of ∆ and then averaging them. Noting that
Var (Y (θ + )) + Var (Y (θ − )) − 2 Cov (Y (θ + ), Y (θ − ))
Var (∆ ) = (21)
42
it is clear that a reduction in variance will follow if we can arrange our Monte-Carlo samples so that
Cov (Y (θ + ), Y (θ − )) > 0. Therefore Y (θ + ) and Y (θ − ) should not be estimated independently but
instead they should be estimated using common random numbers, i.e. generating them from the same12 U (0, 1)
random variable.
For small , the variance reduction from using common random numbers can be dramatic. That said, there is
clearly a tradeoff between bias and variance in our selection of . In general it can be shown that we should
choose = O(n−1/5 ) in (20) where as usual n is the number of samples. In that case convergence of the
estimator in (20) is O(n−2/5 ) although O(n−1/2 ) convergence can be obtained if Y is continuous in θ (in which
case should be taken as small as possible).
Similar results are available for estimating second-order derivatives such as gamma, vanna and volga but the
convergence rates are not as good and estimating these quantities is fundamentally harder than estimating first
order derivatives.
Assuming the interchange of differentiation and integration in (22) can be justified, we could therefore use
∂Y (θ)
∂θ as an unbiased estimator of α(θ). In order to operationalize (22), however, one must first explicitly state
the relationship between Y and the parameter θ.
The estimator (25) is easily calculated via a Monte-Carlo simulation. It should also be clear that the expression
(25) is valid for any model of security prices where St = S0 eXt for any (risk-neutral) stochastic process Xt that
does not depend on S0 .
While we haven’t justified interchanging the order of differentiation and integration in Example 13, a general
rule of thumb is that this interchange can be justified when the payoff Y is continuous in θ and that is clearly
the case there. In contrast, the interchange is generally invalid when Y is not continuous in θ. This means in
particular that the pathwise method does not work in general for barrier and digital options.
Exercise 3 Find an analogous expression to (25) for estimating the vega of a call option in the Black-Scholes
world.