Module 4: Monte Carlo path simulation

Similar documents
Monte Carlo Methods. Prof. Mike Giles. Oxford University Mathematical Institute. Lecture 1 p. 1.

Monte Carlo Methods for Uncertainty Quantification

Multilevel Monte Carlo for Basket Options

"Vibrato" Monte Carlo evaluation of Greeks

Multilevel Monte Carlo Simulation

Module 2: Monte Carlo Methods

Monte Carlo Methods for Uncertainty Quantification

Parallel Multilevel Monte Carlo Simulation

Multilevel path simulation for jump-diffusion SDEs

Analysing multi-level Monte Carlo for options with non-globally Lipschitz payoff

Multilevel quasi-monte Carlo path simulation

Computational Finance

King s College London

MONTE CARLO EXTENSIONS

AD in Monte Carlo for finance

Computing Greeks with Multilevel Monte Carlo Methods using Importance Sampling

Gamma. The finite-difference formula for gamma is

EFFICIENT MONTE CARLO ALGORITHM FOR PRICING BARRIER OPTIONS

Variance Reduction Through Multilevel Monte Carlo Path Calculations

"Pricing Exotic Options using Strong Convergence Properties

Monte Carlo Simulations

Monte Carlo Methods for Uncertainty Quantification

Multilevel Monte Carlo for VaR

Computational Finance Improving Monte Carlo

AMH4 - ADVANCED OPTION PRICING. Contents

Estimating the Greeks

Lecture outline. Monte Carlo Methods for Uncertainty Quantification. Importance Sampling. Importance Sampling

Monte Carlo Methods in Structuring and Derivatives Pricing

King s College London

IEOR E4703: Monte-Carlo Simulation

Numerical schemes for SDEs

Simulating Stochastic Differential Equations

Multilevel Monte Carlo Path Simulation

23 Stochastic Ordinary Differential Equations with Examples from Finance

Optimal Search for Parameters in Monte Carlo Simulation for Derivative Pricing

Stochastic Differential Equations in Finance and Monte Carlo Simulations

Math 416/516: Stochastic Simulation

CS 774 Project: Fall 2009 Version: November 27, 2009

ELEMENTS OF MONTE CARLO SIMULATION

Exotic Derivatives & Structured Products. Zénó Farkas (MSCI)

Fast and accurate pricing of discretely monitored barrier options by numerical path integration

Numerical Methods II

3.1 Itô s Lemma for Continuous Stochastic Variables

Multilevel Change of Measure for Complex Digital Options

Lecture 3. Sergei Fedotov Introduction to Financial Mathematics. Sergei Fedotov (University of Manchester) / 6

Continuous Processes. Brownian motion Stochastic calculus Ito calculus

Theory and practice of option pricing

Results for option pricing

Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing

Write legibly. Unreadable answers are worthless.

Computational Finance Least Squares Monte Carlo

FE610 Stochastic Calculus for Financial Engineers. Stevens Institute of Technology

The Black-Scholes Model

Computer labs. May 10, A list of matlab tutorials can be found under

Market interest-rate models

MFE/3F Questions Answer Key

The stochastic calculus

Research on Monte Carlo Methods

The Black-Scholes Model

Multilevel Monte Carlo Methods for American Options

NEWCASTLE UNIVERSITY SCHOOL OF MATHEMATICS, STATISTICS & PHYSICS SEMESTER 1 SPECIMEN 2 MAS3904. Stochastic Financial Modelling. Time allowed: 2 hours

Definition Pricing Risk management Second generation barrier options. Barrier Options. Arfima Financial Solutions

Valuation of Asian Option. Qi An Jingjing Guo

Binomial model: numerical algorithm

Multilevel Monte Carlo for multi-dimensional SDEs

Numerical Simulation of Stochastic Differential Equations: Lecture 1, Part 1. Overview of Lecture 1, Part 1: Background Mater.

The Use of Importance Sampling to Speed Up Stochastic Volatility Simulations

Convergence Analysis of Monte Carlo Calibration of Financial Market Models

MFE/3F Questions Answer Key

Module 10:Application of stochastic processes in areas like finance Lecture 36:Black-Scholes Model. Stochastic Differential Equation.

Multilevel Monte Carlo methods for finance

A Moment Matching Approach To The Valuation Of A Volume Weighted Average Price Option

MAFS Computational Methods for Pricing Structured Products

Multi-Asset Options. A Numerical Study VILHELM NIKLASSON FRIDA TIVEDAL. Master s thesis in Engineering Mathematics and Computational Science

- 1 - **** d(lns) = (µ (1/2)σ 2 )dt + σdw t

Exact Sampling of Jump-Diffusion Processes

Optimized Least-squares Monte Carlo (OLSM) for Measuring Counterparty Credit Exposure of American-style Options

1.1 Basic Financial Derivatives: Forward Contracts and Options

MULTILEVEL MONTE CARLO FOR BASKET OPTIONS. Michael B. Giles

Assignment - Exotic options

Stochastic Modelling in Finance

AN ANALYTICALLY TRACTABLE UNCERTAIN VOLATILITY MODEL

Simulating more interesting stochastic processes

2.1 Mathematical Basis: Risk-Neutral Pricing

A Continuity Correction under Jump-Diffusion Models with Applications in Finance

Investigation into Vibrato Monte Carlo for the Computation of Greeks of Discontinuous Payoffs

Computer Exercise 2 Simulation

University of Oxford. Robust hedging of digital double touch barrier options. Ni Hao

Market Risk: FROM VALUE AT RISK TO STRESS TESTING. Agenda. Agenda (Cont.) Traditional Measures of Market Risk

MATH3075/3975 FINANCIAL MATHEMATICS TUTORIAL PROBLEMS

No ANALYTIC AMERICAN OPTION PRICING AND APPLICATIONS. By A. Sbuelz. July 2003 ISSN

Multilevel Monte Carlo methods

Lecture 17: More on Markov Decision Processes. Reinforcement learning

COMBINING FAIR PRICING AND CAPITAL REQUIREMENTS

CS 237: Probability in Computing

The histogram should resemble the uniform density, the mean should be close to 0.5, and the standard deviation should be close to 1/ 12 =

An Introduction to Stochastic Calculus

Credit Risk : Firm Value Model

The Pennsylvania State University. The Graduate School. Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO

From CFD to computational finance (and back again?)

Transcription:

Module 4: Monte Carlo path simulation Prof. Mike Giles mike.giles@maths.ox.ac.uk Oxford University Mathematical Institute Module 4: Monte Carlo p. 1

SDE Path Simulation In Module 2, looked at the case of European options for which the underlying SDE could be integrated exactly. Now address the more general case in which the solution to the SDE needs to be approximated because the option is path-dependent, and/or the SDE is not integrable This lecture will cover: Euler-Maruyama discretisation, weak and strong errors improved accuracy for path-dependent options Module 4: Monte Carlo p. 2

Euler-Maruyama method The simplest approximation for the scalar SDE ds = a(s,t) dt+b(s,t) dw is the forward Euler scheme, which is known as the Euler-Maruyama approximation when applied to SDEs: Ŝ n+1 = Ŝ n +a(ŝ n,t n )h+b(ŝ n,t n ) W n Here h is the timestep, Ŝ n is the approximation to S(nh) and the W n are i.i.d. N(0,h) Brownian increments. Module 4: Monte Carlo p. 3

Euler-Maruyama method For ODEs, the forward Euler method has O(h) accuracy, and other more accurate methods would usually be preferred. However, SDEs are very much harder to approximate so the Euler-Maruyama method is used widely in practice. Numerical analysis is also very difficult and even the definition of accuracy is tricky. Module 4: Monte Carlo p. 4

Weak convergence In finance applications, we are mostly concerned with weak errors, the error in the expected payoff due to using a finite timestep h. For a European payoff f(s(t), the weak error is E[f(S(T))] E[f(Ŝ T/h )] For a path-dependent option, the weak error is E[f(S)] E[ f(ŝ)] where f(s) is a function of the entire path S(t), and f(ŝ) is a corresponding approximation using the whole discrete path. Module 4: Monte Carlo p. 5

Weak convergence Key theoretical result (Bally and Talay, 1995): If p(s) is the p.d.f. for S(T) and p(s) is the p.d.f. for Ŝ T/h computed using the Euler-Maruyama approximation, then under certain conditions on a(s,t) and b(s,t) and hence p(s) p(s) = O(h) E[f(S(T))] E[f(Ŝ T/h )] = O(h) (This holds even for digital options with discontinuous payoffs f(s). Earlier theory covered only European options such as put and call options with Lipschitz payoffs.) Module 4: Monte Carlo p. 6

Weak convergence Numerical demonstration: Geometric Brownian Motion r = 0.05, σ = 0.5, T = 1 ds = rsdt+σsdw European call: S 0 = 100,K = 110. Plot shows weak error versus analytic expectation when using 10 8 paths, and also Monte Carlo error (3 standard deviations) Module 4: Monte Carlo p. 7

Weak convergence Weak convergence -- comparison to exact solution 10-1 Weak error MC error Error 10-2 10-1 h Module 4: Monte Carlo p. 8

Weak convergence Previous plot showed difference between exact expectation and numerical approximation. What if the exact solution is unknown? Compare approximations with timesteps h and 2h. If then and so E[f(S(T))] E[f(Ŝ h T/h )] a h E[f(S(T))] E[f(ŜT/2h 2h )] 2ah E[f(ŜT/h h )] E[f(Ŝ2h T/2h )] ah Module 4: Monte Carlo p. 9

Weak convergence To minimise the number of paths that need to be simulated, best to use same driving Brownian path when doing 2h and h approximations i.e. take Brownian increments for h simulation and sum in pairs to get Brownian increments for 2h simulation. This is like using the same driving Brownian paths for finite difference Greeks. The variance is lower because the h and 2h paths are close to each other (strong convergence). (In Module 6, I ll explainhow this forms the basis for the Multilevel Monte Carlo method (Giles, 2006)) Module 4: Monte Carlo p. 10

Weak convergence Weak convergence -- difference from 2h approximation 10-1 Weak error MC error Error 10-2 10-3 10-2 10-1 h Module 4: Monte Carlo p. 11

Strong convergence Strong convergence looks instead at the average error in each individual path: [ ] E S(T) Ŝ T/h or ( ( ) ]) 2 1/2 E[ S(T) Ŝ T/h The main theoretical result (Kloeden & Platen 1992) is that for the Euler-Maruyama method under certain conditions on a(s,t) and b(s,t) these are both O( h). Module 4: Monte Carlo p. 12

Strong convergence Thus, each approximate path deviates by O( h) from its true path. How can the weak error be O(h)? Because the error S(T) Ŝ T/h has mean O(h) even though the r.m.s. is O( h). (In fact to leading order it is normally distributed with zero mean and variance O(h).) Module 4: Monte Carlo p. 13

Strong convergence Numerical demonstration based on same Geometric Brownian Motion. Plot shows two curves, one showing the difference from the true solution S(T) = S 0 exp ( (r 1 2 σ2 )T +σw(t) ) and the other showing the difference from the 2h approximation Module 4: Monte Carlo p. 14

Strong convergence Strong convergence -- difference from exact and 2h approximation 10 1 exact error MC error relative error MC error Error 10 0 10-1 10-2 10-2 10-1 h Module 4: Monte Carlo p. 15

Mean Square Error Finally, how to decide whether it is better to increase the number of timesteps (reducing the weak error) or the number of paths (reducing the Monte Carlo sampling error)? If the true option value is and the discrete approximation is V = E[f] V = E[ f] and the Monte Carlo estimate is Ŷ = 1 N N f (n) n=1 then... Module 4: Monte Carlo p. 16

Mean Square Error... the Mean Square Error is [ (Ŷ ) ] [ 2 (Ŷ ) ] 2 E V = E E[ f] + E[ f] E[f] = E [ (Ŷ E[ f]) 2 ] +(E[ f] E[f]) 2 = N 1 V[ f]+ ( E[ f] E[f] ) 2 first term is due to the variance of estimator second term is square of bias due to weak error Module 4: Monte Carlo p. 17

Mean Square Error If there are M timesteps, the computational cost is proportional to C = NM and the MSE is approximately an 1 +bm 2 = an 1 +bc 2 N 2. For a fixed computational cost, this is a minimum when N = ( ) ac 2 1/3, M = 2b ( 2bC a ) 1/3, and hence an 1 = ( 2a 2 ) 1/3 b, bm 2 = C 2 ( a 2 ) 1/3 b 4C 2, so the MC term is twice as big as the bias term. Module 4: Monte Carlo p. 18

Summary simple Euler-Maruyama method is basis for most Monte Carlo simulation in industry O(h) weak convergence and O( h) strong convergence weak convergence is very important when estimating expectations strong convergence is usually not important Mean-Square-Error is minimised by balancing bias due to weak error and Monte Carlo sampling error Module 4: Monte Carlo p. 19

Path-dependent options For European options, Euler-Maruyama method has O(h) weak convergence. However, for some path-dependent options it can give only O( h) weak convergence, unless the numerical payoff is constructed carefully. Module 4: Monte Carlo p. 20

Barrier option A down-and-out call option has discounted payoff exp( rt) (S(T) K) + 1 mint S(t)>B i.e. it is like a standard call option except that it pays nothing if the minimum value drops below the barrier B. The natural numerical discretisation of this is f = exp( rt) (Ŝ T/h K) + 1 minnŝn>b Module 4: Monte Carlo p. 21

Barrier option Numerical demonstration: Geometric Brownian Motion r = 0.05, σ = 0.5, T = 1 ds = rsdt+σsdw Down-and-out call: S 0 = 100,K = 110,B = 90. Plots shows weak error versus analytic expectation using 10 6 paths, and difference from 2h approximation using 10 5 paths. (We don t need as many paths as before because the weak errors are much larger in this case.) Module 4: Monte Carlo p. 22

Barrier option Barrier weak convergence -- comparison to exact solution 10 1 Weak error MC error Error 10 0 10-1 10-1 h Module 4: Monte Carlo p. 23

Barrier option Barrier weak convergence -- difference from 2h approximation Weak error MC error 10 0 Error 10-1 10-2 10-1 h Module 4: Monte Carlo p. 24

Lookback option A floating-strike lookback call option has discounted payoff ( ) exp( rt) S(T) min [0,T] S(t) The natural numerical discretisation of this is ) f = exp( rt) (ŜT/h minŝ n n Module 4: Monte Carlo p. 25

Lookback option Lookback weak convergence -- comparison to exact solution Weak error MC error 10 1 Error 10 0 10-1 10-1 h Module 4: Monte Carlo p. 26

Lookback option weak convergence -- difference from 2h approximation 1Lookback 10 Weak error MC error 10 0 Error 10-1 10-2 10-2 10-1 h Module 4: Monte Carlo p. 27

Brownian bridge To recover O(h) weak convergence we first need some theory. Consider simple Brownian motion ds = a dt+b dw with constant a, b and initial data S(0)=0. Question: given S(T), what is conditional probability density for S(T/2)? Module 4: Monte Carlo p. 28

Conditional probability With discrete probabilities, P(A B) = P(A B) P(B) Similarly, with probability density functions where p 1 (x y) = p 2(x,y) p 3 (y) p 1 (x y) is the conditional p.d.f. for x, given y p 2 (x,y) is the joint probability density function for x,y p 3 (y) is the probability density function for y Module 4: Monte Carlo p. 29

Brownian bridge In our case, y S(T), x S(T/2) p 2 (x,y) = p 3 (y) = = p 1 (x y) = ) 1 exp ( (x at/2)2 πt b b 2 T 1 (y x at/2)2 exp ( πt b 1 exp ( 2πT b 1 πt/2 b exp b 2 T ) (y at)2 2b 2 T ) ( (x y/2)2 b 2 T/2 ) Hence, x is Normally distributed with mean y/2 and variance b 2 T/4. Module 4: Monte Carlo p. 30

Brownian bridge Extending this to a particular timestep with endpoints S(t n ) and S(t n+1 ), conditional on these the mid-point is Normally distributed with mean and variance b 2 h/4. 1 2 (S(t n )+S(t n+1 )) We can take a sample from this conditional p.d.f. and then repeat the process, recursively bisecting each interval to fill in more and more detail. Note: the drift a is irrelevant, given the two endpoints. Because of this, we will take a = 0 in the next bit of theory. Module 4: Monte Carlo p. 31

Barrier crossing Consider zero drift Brownian motion with S(0)>0. If the path S(t) hits a barrier at 0, it is equally likely thereafter to go up or down. Hence, by symmetry, for s > 0, the p.d.f. for paths with S(T) = s after hitting the barrier is equal to the p.d.f. for paths with S(T) = s. Thus, for S(T) > 0, P(hit barrier S(T)) = exp exp = exp ( ( S(T) S(0))2 2b 2 T ( ( (S(T) S(0))2 2b 2 T 2S(T)S(0) b 2 T ) ) ) Module 4: Monte Carlo p. 32

Barrier crossing For a timestep [t n,t n+1 ] and non-zero barrier B this generalises to ( P(hit barrier S n,s n+1 > B) = exp 2(S ) n+1 B)(S n B) b 2 h This can also be viewed as the cumulative probability P(S min < B) where S min = min [t n,t n+1 ] S(t). Since this is uniformly distributed on [0,1] we can equate this to a uniform [0,1] random variable U n and solve to get S min = 1 2 (S n+1 +S n ) (S n+1 S n ) 2 2b 2 h logu n Module 4: Monte Carlo p. 33

Barrier crossing For a barrier above, we have P(hit barrier S n,s n+1 < B) = exp ( 2(B S n+1)(b S n ) b 2 h ) and hence S max = 1 2 (S n+1 +S n + (S n+1 S n ) 2 2b 2 h logu n ) where U n is again a uniform [0,1] random variable. Module 4: Monte Carlo p. 34

Barrier option Returning now to the barrier option, how do we define the numerical payoff f(ŝ)? First, calculate Ŝ n as usual using Euler-Maruyama method. Second, two alternatives: use (approximate) probability of crossing the barrier directly sample (approximately) the minimum in each timestep Module 4: Monte Carlo p. 35

Barrier option Alternative 1: treating the drift and volatility as being approximately constant within each timestep, the probability of having crossed the barrier within timestep n is P n = exp ( 2(Ŝ n+1 B) + (Ŝ n B) + b 2 (Ŝ n,t n ) h Probability at end of not having crossed barrier is (1 P n ) and so the payoff is n ) f(ŝ) = exp( rt) (Ŝ T/h K) + n (1 P n ). I prefer this approach because it is differentiable good for Greeks Module 4: Monte Carlo p. 36

Barrier option Alternative 2: again treating the drift and volatility as being approximately constant within each timestep, define the minimum within timestep n as ( ) M n = 2 1 Ŝ n+1 +Ŝ n (Ŝ n+1 Ŝ n ) 2 2b 2 (Ŝ n,t n )h logu n where the U n are i.i.d. uniform [0,1] random variables. The payoff is then f(ŝ) = exp( rt) (Ŝ T/h K) + 1 minn M n >B With this approach one can stop the path calculation as soon as one Mn drops below B. Module 4: Monte Carlo p. 37

Lookback option This is treated in a similar way to Alternative 2 for the barrier option. We construct a minimum Mn within each timestep and then the payoff is ) f(ŝ) = exp( rt) (ŜT/h min Mn n This is differentiable, so good for Greeks unlike Alternative 2 for the barrier option. Module 4: Monte Carlo p. 38

Weak convergence With these modification to the numerical payoff approximation, the weak convergence for both barrier and lookback options is improved from O( h) to O(h). See practical for numerical demonstration! Module 4: Monte Carlo p. 39

Final Words natural approximation of barrier and lookback options leads to poor O( h) weak convergence this is an inevitable consequence of dependence on minimum/maximum and O( h) path variation within each timestep improved treatment based on Brownian bridge theory approximates behaviour within timestep as simple Brownian motion with constant drift and volatility gives O(h) weak convergence Module 4: Monte Carlo p. 40