Subsections

# Option pricing by simulation

We now consider using Monte Carlo methods to estimate the price of an European option, and let us first consider the case of the usual'' European Call, which is priced by the Black Scholes equation. Since there is already a closed form solution for this case, it is not really necessary to use simulations, but we use the case of the standard call for illustrative purposes.

At maturity, a call option is worth

At an earlier date , the option value will be the expected present value of this.

Now, an important simplifying feature of option pricing is the risk neutral result,'' which implies that we can treat the (suitably transformed) problem as the decision of a risk neutral decision maker, if we also modify the expected return of the underlying asset such that this earns the risk free rate.

where is a transformation of the original expectation. One way to estimate the value of the call is to simulate a large number of sample values of according to the assumed price process, and find the estimated call price as the average of the simulated values. By appealing to a law of large numbers, this average will converge to the actual call value, where the rate of convergence will depend on how many simulations we perform.

# Simulating lognormally distributed random variables

Lognormal variables are simulated as follows. Let be normally distributed with mean zero and variance one. If follows a lognormal distribution, then the one-period-later price is simulated as

or more generally, if the current time is and terminal date is , with a time between and of ,

Simulation of lognormal random variables is illustrated by code 11.1.

# Pricing of European Call options

For the purposes of doing the Monte Carlo estimation of the price if an European call

note that here one merely need to simulate the terminal price of the underlying, , the price of the underlying at any time between and is not relevant for pricing. We proceed by simulating lognormally distributed random variables, which gives us a set of observations of the terminal price . If we let denote the simulated values, we will estimate as the average of option payoffs at maturity, discounted at the risk free rate.

Code 11.2 shows the implementation of a Monte Carlo estimation of an European call option.

# Hedge parameters

It is of course, just as in the standard case, desirable to estimate hedge parameters as well as option prices. We will show how one can find an estimate of the option delta, the first derivative of the call price with respect to the underlying security: . To understand how one goes about estimating this, let us recall that the first derivative of a function is defined as the limit

Thinking of as the option price formula , we see that we can evaluate the option price at two different values of the underlying, and , where is a small quantity, and estimate the option delta as

In the case of Monte Carlo estimation, it is very important that this is done by using the same sequence of random variables to estimate the two option prices with prices of the underlying and . Code 11.3 implements this estimation of the option delta.

One can estimate other hedge parameters in a simular way.

# More general payoffs. Function prototypes

The above shows the case for a call option. If we want to price other types of options, with different payoffs we could write similar routines for every possible case. But this would be wasteful, instead a bit of thought allows us to write option valuations for any kind of option whose payoff depend on the value of the underlying at maturity, only. Let us now move toward a generic routine for pricing derivatives with Monte Carlo. This relies on the ability of C ++ to write subroutines which one call with function prototypes, i.e. that in the call to to the subroutine/function one provides a function instead of a variable. Consider pricing of standard European put and call options. At maturity each option only depend on the value of the underlying and the exercise price through the relations

Code 11.4 shows two C ++ functions which calculates this.

The interesting part comes when one realises one can write a generic simulation routine to which one provide one of these functions, or some other function describing a payoff which only depends on the price of the underlying and some constant. Code 11.5 shows how this is done.

Note the presence of the line

         double payoff(const double& price, const double& X),

in the subroutine call. When this function is called, the calling program will need to provide a function to put there, such as the Black Scholes example above. Code 11.6 shows a complete example of how this is done.

Running the program in code 11.6 results in the output:

Simulated call option price = 14.995
Black Scholes call option price = 14.9758
Simulated put option price = 5.5599
Black Scholes put option price = 5.45954

As we see, even with as many as 50,000 simuations, the option prices estimated using Monte Carlo still differs substantially from the true'' values.

# Improving the efficiency in simulation

There are a number of ways of improving'' the implementation of Monte Carlo estimation such that the estimate is closer to the true value.

## Control variates.

One is the method of control variates. The idea is simple. When one generates the set of terminal values of the underlying security, one can value several derivatives using the same set of terminal values. What if one of the derivatives we value using the terminal values is one which we have an analytical solution to? For example, suppose we calculate the value of an at the money European call option using both the (analytical) Black Scholes formula and Monte Carlo simulation. If it turns out that the Monte Carlo estimate overvalues the option price, we think that this will also be the case for other derivatives valued using the same set of simulated terminal values. We therefore move the estimate of the price of the derivative of interest downwards.

Thus, suppose we want to value an European put and we use the price of an at the money European call as the control variate. Using the same set of simulated terminal values , we estimate the two options using Monte Carlo as:

We calculate the Black Scholes value of the call , and calculate , the estimate of the put price with a control variate adjustment, as follows

One can use other derivatives than the at-the-money call as the control variate, the only limitation being that it has a tractable analytical solution.

Code 11.7 shows the implementation of a Monte Carlo estimation using an at-the-money European call as the control variate.

## Antithetic variates.

An alternative to using control variates is to consider the method of antithetic variates. The idea behind this is that Monte Carlo works best if the simulated variables are spread'' out as closely as possible to the true distribution. Here we are simulating unit normal random variables. One property of the normal is that it is symmetric around zero, and the median value is zero. Why don't we enforce this in the simulated terminal values? An easy way to do this is to first simulate a unit random normal variable , and then use both and to generate the lognormal random variables. Code 11.8 shows the implementation of this idea.

Boyle (1977) shows that the efficiency gain with antithetic variates is not particularly large. There are other ways of ensuring that the simulated values really span the whole sample space, sometimes called pseudo Monte Carlo.''

## Example

Let us see how these improvements change actual values. We use the same numbers as in code 11.6, but add estimation using control and antithetic variates. Code 11.9 shows a complete example of how this is done.

Running this program results in the output:

Black Scholes call option price = 14.9758
Simulated call option price     = 14.995
Simulated call option price, CV = 14.9758
Simulated call option price, AV = 14.9919
Black Scholes put option price  = 5.45954
Simulated put option price      = 5.41861
Simulated put option price,  CV = 5.42541
Simulated put option price,  AV = 5.46043


# More exotic options

These generic routines can also be used to price other options. Any European option that only depends on the terminal value of the price of the underlying security can be valued. Consider the binary options discussed by e.g. Hull (2003). An cash or nothing call pays a fixed amount if the price of the asset is above the exercise price at maturity, otherwise nothing. An asset or nothing call pays the price of the asset if the price is above the exercise price at maturity, otherwise nothing. Both of these options are easy to implement using the generic routines above, all that is necesary is to provide the payoff functions as shown in code 11.10.

Now, many exotic options are not simply functions of the terminal price of the underlying security, but depend on the evolution of the price from now'' till the terminal date of the option. For example options that depend on the average of the price of the underlying (Asian options). For such cases one will have to simulate the whole path. We will return to these cases in the chapter on pricing of exotic options.