• Aucun résultat trouvé

PW #4: FDM for the Black & Scholes model

N/A
N/A
Protected

Academic year: 2022

Partager "PW #4: FDM for the Black & Scholes model"

Copied!
2
0
0

Texte intégral

(1)

EFREI MASTERS DEGREE IN FINANCIAL ENGINEERING

PW #4: FDM for the Black & Scholes model

MARCH21, 2012

The Finite Difference Method (FDM) has been studied in the previous projects. We aim at applying this method to the well-known Black & Scholes equation with constant volatilityσand constant interest rater for the modelling of a European vanilla put option:





∂P˜

∂t (t,S)+σ2S2 2

2P˜

∂S2(t,S)+r S∂P˜

∂S(t,S)rP˜(t,S)=0, P˜(T,S)=max(0,KS),

or equivalently (by means of the change of variablesP(t,S)=P˜(T −t,S)):





∂P

∂t(t,S)σ2S2 2

2P

∂S2(t,S)−r S∂P

∂S(t,S)+r P(t,S)=0, (1a)

P(0,S)=max(0,KS). (1b)

We set for the present study:

K=100,T =1,σ=0.2 and r=0.04 . IfPis a solution to (1), then the following function

ϕ(θ,x)=P(θ,ex)e−αθ−βx with β=1 2− r

σ2,α= −r−σ2β2 2 , is a solution to:





∂ϕ

∂θσ2 2

2ϕ

∂x2 =0, (2a)

ϕ(0,x)=e−βx·max(0,Kex). (2b)

We recall that the exact solution is given by:

P˜(t,S)=K er(Tt)Φ(−d2)−SΦ(−d1), withΦ(d)= 1

p2π Z d

−∞

exp µ

z2 2

dzand:

d1=ln(S/K)+(r+σ2/2)(T −t) σp

T −t ,d2=d1σp T −t.

We thus aim at simulating equivalent formulations (1) and (2) and then at comparing corresponding solu- tions.

Numerical analysis applied to financial issues (Y. Penel) 1/2

(2)

EFREI MASTERS DEGREE IN FINANCIAL ENGINEERING

Exercise 1 (Heat equation on a uniform grid)

Letxandxbe two real numbers such thatx¿lnK¿x. We consider a space discretization given by xj=x+(j−1)∆x,x= xx

Nx−1for someNx>1and a time discretizationtn=(n−1)∆t,∆t= T Nt−1for a suitableNt>1.

Implement and compare performance of the explicit Euler scheme, the implicit Euler scheme and the Crank-Nicholson scheme for the resolution of (2). Comparisons will be made on the primitive functionP˜. Note that the stability condition reads∆t≤∆x2

σ2 . Exercise 2 (Heat equation on a nonuniform grid)

LetSandS be two real numbers such thatS¿K ¿S. We consider an asset discretization given by Sj=S+(j−1)∆S,S= SS

NS−1for someNS>1and a time discretizationtn=(n−1)∆t,∆t= T Nt−1for someNt>1. The corresponding space discretization is imposed by the change of variable:

xj=lnSj. We set∆xj=xj+1xj.

1. Derive a formula approaching the second order spatial derivative on nonuniform grids.

2. Then implement the resolution of(2)by means of the Crank-Nicholson scheme.

Exercise 3 (Resolution of the Black & Scholes model in primitive variables)

1. Given a uniform discretization of the time-asset space[0,T]×[S,S], propose a numerical scheme based on the explicit Euler scheme for the time derivative to solve(1).

2. Find out by means of numerical simulations a suitable value for∆t. 3. Implement the Crank-Nicholson scheme applied to(1).

4. Comment numerical results.

Numerical analysis applied to financial issues (Y. Penel) 2/2

Références

Documents relatifs

1960). Water vapour will condense on the surface even if the relative humid- ity is as low as 85%. The total time-of-wetness on such a metal surface will be due t o

L’accès à ce site Web et l’utilisation de son contenu sont assujettis aux conditions présentées dans le site LISEZ CES CONDITIONS ATTENTIVEMENT AVANT D’UTILISER CE SITE WEB.

With the assumptions precised below, we show in Section 4.3 that the SPDE admits a unique invariant probability measure µ, which is ergodic and strongly mixing, with

Under the strict dissipativity condition 3.8, we can prove that the averaging principle holds in the strong and in the weak sense; moreover the “fast” numerical scheme has the

Assuming that space and time can only have discrete values, it is shown how deformed space and time cause gravitational attraction, whose law in a

Unit´e de recherche INRIA Rennes, Irisa, Campus universitaire de Beaulieu, 35042 RENNES Cedex Unit´e de recherche INRIA Rh ˆone-Alpes, 655, avenue de l’Europe, 38330 MONTBONNOT

Keywords : stochastic differential equation, Euler scheme, rate of convergence, Malliavin calculus.. AMS classification: 65C20 60H07 60H10 65G99

This has already been succesfully applied to the second order formula- tion of the acoustic wave equation and we focus here on the first order formulation of acoustic and