Monte Carlo simulation is a legitimate and widely used technique for dealing with uncertainty in many aspects of business operations. The objective of any simulation study is to estimate an expectation () in some form or another thus this method can be readily applied to determine expected option value. Monte-Carlo methods are ideal for pricing options where the payoff is path-dependent (e.g. lookback options, Asian options, and spread options) or options whose payoff is dependent on multiple assets, when it is not feasible to work with lattice-based methods such as binomial tree or finite difference method.
Theoretical background
A typical Monte Carlo simulation consists of three steps
- Identify a random variable of interest .
- Generate an i.i.d. sample …, from the distribution of .
- Estimate using the sample mean
The use of sample mean to estimate the expectation of interest is justified by the Strong Law of Large Numbers (SLLN) which states that if , …, are independent and identically distributed, each with finite expectation, then
with probability 1. In the simulation context it means that as we generate more and more samples i.e. increase , our sample mean converges to the desired value . Moreover when the variance of is also finite, the Central Limit Theorem (CLT) tells us that
where , , and the wiggly arrow denotes convergence in distribution. In the simulation context we can use this theorem to obtain a confidence interval for the expectation that we are estimating.
Generate independent random variables
It’s important to note that almost all random number generators actually create series of pseudo-random numbers. They aren’t random in the strict mathematical sense because the entire sequence of numbers is a deterministic function based on an initial seed value. Nevertheless, sequences of numbers can be created such that they appear very close to random, since the seed, by default, is changed with every call of the generating procedure, unless set otherwise.
If we can generate uniform random numbers from a then we have the basis for generating many other random variables as well. This is why many programming languages include functions that return values as built-in functions. For example, if we want to generate a Bernoulli random variable with parameter p, then call a uniform random number between (0,1) and determine if it is less than p. If so, return the value, otherwise return the value 0.
Uniform random variables can also be used as starting points to generate other important random variables, such as the normal. We can generate two independent standard normal random variable (i.e. with zero mean and unit variance) by taking two independent uniform random numbers, and , and transforming them as
This method of generating normal random variables from uniform random variables is known as the Box-Muller method.
Generate correlated random variables
So far we have only discussed generate uncorrelated samples of random variables. How about generating and from a bivariate normal distribution with mean , variance , and correlation ? To do so, we make use of Cholesky Decomposition to decompose the covariance matrix into the product of a lower triangular and its transpose. Thus the steps are
- Use Box-Muller method to draw random samples and .
- Make the transformation