Path: blob/master/2.2 Exotic options.ipynb
1675 views
Binary, barrier and Asian options
In this notebook we want to study the problem of pricing some exotic derivatives by solving their associated PDE.
I will use the same framework, based on the implicit discretization, presented in the Black-Scholes PDE notebook 2.1. The results are then compared with the values obtained from other numerical methods.
Contents
Binary/digital options
For more info have a look at the wiki page
Let us consider the case of a cash or nothing CALL binary option:
where, as usual, is the risk neutral measure.
Closed formula
Monte Carlo
PDE method:
Plots
Barrier options
For more info have a look at the wiki page
Let us consider the case of an Up and Out CALL European option:
where I introduced the running max:
The parameter is the barrier. We have to assume that , otherwise the payoff would be always zero.
We can also consider the Down and In CALL European option:
where I introduced the running min:
In this case the option expires worthless if the barrier is not triggered. If instead the barrier is hit, the option becomes a vanilla option.
The numerical methods for the Down and Out CALL and Up and In CALL are straightforward modifications of the following numerical methods.
Closed formula:
I took the following formula from Chapter 7.3.3 of the reference book [3] and from [4].
Monte Carlo:
Here we use the correction proposed in [5] to adjust the Monte Carlo price of the Barrier option problems.
We call the discete option price and the continuous option price. The two satisfy the relation:
where for an up option and for a down option.
The parameter with the Riemann Zeta function.
Here below we want to replicate the continuous option price :
It is well known that Monte Carlo methods are slow.
When working with path dependent options, such as Barrier options, it is necessary to generate the entire paths. This is SUPER slow!!
With C and Cython it is possible to improve the performance.
There are several methods to improve the algorithm, for example by using antithetic variables wiki to reduce the total variance.
PDE method - Up and Out:
Plots
PDE method - Down and In:
This is a second order contract. We have to first solve for the vanilla call and then for the barrier problem. When solving the barrier problem we have to impose the terminal condition and the lower lateral condition and .
This is more an exercise, because the computation can be reduced using the property In + Out = Vanilla. But let us do this exercise.
Plots
Asian options
For more info have a look at the wiki page
Let us consider the two cases:
Fixed Strike Arithmetic Average CALL European option:
Floating Strike Arithmetic Average CALL European option:
where the term
represents the continuous time arithmetic average of the price process.
The PDE of the Asian option is obtain by an augmentation of the state i.e. the new state variable is introduced. This state variables has a dynamics described by the SDE:
The Asian PDE is:
with "unknown" lateral boundary conditions. It is not clear how behaves when . A derivation of a similar Asian PDE can be found in Theorem 7.5.1 of [3].
In order to simplify the problem, it is better to consider the two-dimensional PDE obtained by a change of numeraire or a change of variable for the case of fixed strike (see Theorem 7.5.3 of [3]) and floating strike (see Section 6.1.2 of [1]) respectively.
Monte Carlo:
Fixed strike. PDE method:
Let us consider the PDE:
with boundary conditions:
where the function . This is derived in Section 7.5.3 of [3].
The solution of this PDE is related with the option price by the relation:
with .
We can discretize the computational domain and call , and then discretize the PDE using the usual implicit method (for a review, see the notebook 2.1). We obtain:
with
The coefficients depend on time and space. We have to construct a new matrix at each time step.
Plot:
Floating strike. PDE method:
In this case we can simply make a change of variable in the three-dimensional Asian PDE introduced above:
Let us recall how the partial derivatives change:
The new PDE in two dimensions is:
with terminal conditions:
and lateral conditions:
We can use the usual implicit discretization in time. However, it turns out that the central finite-difference approximation in space creates stability problems. Instead, the Upwind scheme makes a good job here. The discretized PDE is the following:
Plot:
References
[1] Daniel Sevcovic, Beata Stehlikova, Karol Mikula (2011). "Analytical and numerical methods for pricing financial derivatives". Nova Science Pub Inc; UK.
[2] Wilmott Paul (1994), "Option pricing - Mathematical models and computation". Oxford Financial Press.
[3] Steven Shreve (2005), "Stochastic calculus for finance". Springer Finance.
[4] Paul Wilmott (2006), Paul Wilmott on quantitative finance
[5] Broadie, Glasserman, Kou. Connecting Discrete and Continuous Path-Dependent Options