efficient simulation and calibration of general hjm models ...€¦ · e cient simulation and...

28
Efficient simulation and calibration of general HJM models by splitting schemes Philipp D¨ orsek (ETH Z¨ urich) joint work with Josef Teichmann (ETH Z¨ urich) 4th Young Researcher Workshop, Berlin, October 12, 2012

Upload: others

Post on 26-Jun-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Efficient simulation and calibration of generalHJM models by splitting schemes

Philipp Dorsek (ETH Zurich)

joint work with Josef Teichmann (ETH Zurich)

4th Young Researcher Workshop, Berlin, October 12, 2012

Page 2: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Contents

1 Calibration

2 Splitting for stochastic differential equations

3 Application to the Heath-Jarrow-Morton model

4 Numerical example

Page 3: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Contents

1 Calibration

2 Splitting for stochastic differential equations

3 Application to the Heath-Jarrow-Morton model

4 Numerical example

Page 4: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Why calibration? I

• client request for financial derivative

• task of sell-side trader:• quote a price• after the deal: hedge the institution’s exposure due to the

trade

• for both of those tasks: requires a model (obtaining price,perform hedge with respect to model parameters)

Page 5: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Why calibration? II

• in order to be able to hedge: choose sufficiently sophisticatedmodel able to be close to true dynamics

• calibrate model parameters to the market

• hope: will remove arbitrage opportunities with respect toinstruments used for calibration

• additionally: by calculating Greeks, able to perform hedgesbecause the model not only predicts the risk-neutral price ofthe quoted derivative, but also the future evolution of thehedging instruments

Page 6: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

The limits of calibration

• calibration is an expensive task: need to price many financialinstruments often (inside optimisation routine)

• therefore: try to only calibrate to products that are easily andcheaply priced (ideally closed-form solutions!)

• problem: will reduce number of models we can choose

• additionally: might need different models to price differentderivatives on the same underlying – potentially arbitrageopportunities in a single trader’s portfolio!

• thus: want a single model (here: of interest rates)• matching statistical properties of the underlying• easy to calibrate• cheap to evaluate (for, e.g., exotic derivative)

• if statistical properties of underlying well-matched, might notneed to recalibrate so often!

Page 7: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Contents

1 Calibration

2 Splitting for stochastic differential equations

3 Application to the Heath-Jarrow-Morton model

4 Numerical example

Page 8: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Numerical discretisation of SDEs

• consider SDE on RN ,

dX (t, x) = V0(X (t, x))dt+d∑

j=1

Vj(X (t, x))dW jt , X (0, x) = x

• usual discretisation: Euler scheme

• leads to issues for non-Lipschitz problems (Hutzenthaler,Jentzen, Kloeden 2011)

• strong rate 1/2 (important for multilevel Monte Carlo ofHeinrich and Giles), weak rate 1

• our aim: method• of weak order 2• simple to implement

Page 9: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Splitting for ODEs

• consider ODE on RN ,

X (t, x) = f (X (t, x)) + g(X (t, x)), X (0, x) = x

• if split equations

X1(t, x) = f (X1(t, x)), X1(0, x)= x ,

X2(t, x) = g(X2(t, x)), X2(0, x) = x

easier to solve: approximate X using concatenation of theflows X1, X2

• Lie-Trotter splitting: X (t, x) = X1(t,X2(t, x)) + O(t2)• Strang splitting: X (t, x) = X1(t/2,X2(t,X1(t/2, x))) + O(t3)

• iteration yields global first (Lie-Trotter) or second (Strang)order

Page 10: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Ninomiya-Victoir splitting

• SDE in Stratonovich form,

dX (t, x) =d∑

j=0

Vj(X (t, x)) ◦ dW jt , X (0, x) = x

• Markov semigroup Pt f (x) := E[f (X (t, x))]

• split equations

X0(t, x) = V0(X0(t, x)), X0(0, x) = x ,

dXj(t, x) = Vj(Xj(t, x)), Xj(0, x) = x , j = 1, . . . , d

• split Markov semigroups P jt f (x) := E[f (Xj(t, x))]

• local discretisation error

Pt f (x) =1

2P0t/2

(P1t · · ·Pd

t + Pdt · · ·P1

t

)P0t/2f (x) + O(t3),

at least for “sufficiently nice” f

• what happens in the O(t3)?

Page 11: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Reduction to Kolmogorov equations

• by the forward Kolmogorov equation and Taylor expansion,

Pt f (x) = f (x) + tGf (x) +1

2t2G2f (x) + . . .

with G the generator

• similarly for P jt using Gj

• note G =∑d

j=0 Gj (at least formally)

• hence, for local error: need to bound Gj1Gj2Gj3 (locally,expand to third order)

• possible using• spaces of bounded and uniformly continuous functions,

assuming bounded and smooth coefficients• spaces of functions with controlled growth, allowing the vector

fields to be unbounded

• the second approach works for stochastic partial differentialequations (non-locally compact state space)

Page 12: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

The SPDE case I

• H Hilbert space, ψ : H → (0,∞) such that{x ∈ H : ψ(x) ≤ R} weakly compact for all R > 0

• Bψ(H) := {f : H → R : ‖f ‖ψ <∞}, where‖f ‖ψ := supx∈H ψ(x)−1|f (x)|

• Bψ(H) space of all functions in Bψ(H) that can beapproximated by functions of the formx 7→ g(〈y1, x〉, . . . , 〈yk , x〉) with g : Rk → R smooth andbounded with all derivatives bounded and y1, . . . , yk ∈ H

• Markov semigroups (Pt)t≥0 on Bψ(H) are strongly continuous

• how does the generator look like?

Page 13: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

The SPDE case II

• to characterise generator G: need spaces of differentiablefunctions Bψk (H)

• if X satisfies Da Prato-Zabczyk-SPDE

dX (t, x) = AX (t, x)dt + V0(X (t, x))dt +d∑

j=1

Vj(X (t, x))dB jt ,

then for Bψ2 (H),

Gf (x) = Df (x)(Ax)+Df (x)(V0(x))+1

2

d∑j=1

D2f (x)(Vj(x),Vj(x))

• just as in finite-dimensional setting!

• similarly for Stratonovich SPDEs

Page 14: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

The SPDE case III

• using these spaces of differentiable functions: can makeG =

∑dj=0 Gj precise (holds true on twice differentiable

functions)

• if we want to do Taylor expansion to order O(t3), require f 6times differentiable in the above sense

• approximation Q(∆t)f := 12 P0

t/2

(P1t · · ·Pd

t + Pdt · · ·P1

t

)P0t/2f

Theorem (D., Teichmann 2010, 2011, D., Teichmann,Veluscek 2012)

If f ∈ Bψ6 (H) on a sufficiently larger Hilbert space H, then

Pt f (x)− QN(t/N)f (x) = O(N−2)

• proof works using arguments of E. Hansen, A. Ostermann forgeneral operator splitting methods

Page 15: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Contents

1 Calibration

2 Splitting for stochastic differential equations

3 Application to the Heath-Jarrow-Morton model

4 Numerical example

Page 16: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Interest rate modelling

• basic approaches to interest rate modelling:• short rate models: over-the-night interest rate (Rt)t≥0, bond

prices derived using B(t,T ) = E[exp(−∫ T

tRxdx)]

• term structure models: entire term structure of bond prices(B(t,T ))T≥0 for every t ≥ 0 modelled directly

• advantages of short rate models:• low-dimensional• efficient pricing, calibration, hedging

• disadvantages:• low flexibility• not able to match complex initial interest rate curves

consistently over time

Page 17: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

HJM equation

• basic equation of term structure models:Heath-Jarrow-Morton equation

• stochastic partial differential equation

• in Musiela (time-to-maturity) parametrisation:

drt(x) =

(d

dxrt(x) + αt(x)

)dt +

d∑j=1

σjt(x)dW jt ,

x time to maturity, rt forward rate, α drift, σj diffusions

• Da Prato-Zabczyk-type equation on suitable Hilbert space H(Filipovic: weighted Sobolev space on [0,∞))

• bond price:

B(t,T ) = exp

(−∫ T−t

0rt(ξ)dξ

)

Page 18: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Why to use the HJM SPDE?

• advantages of the infinite-dimensional model:• very flexible• can match complex interest rate behaviour• can include jumps and stochastic volatility

• disadvantages:• complicated model• no closed-form solutions (for practically relevant choices of

volatilities)• difficult to do pricing, calibration, hedging

Page 19: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Numerics for HJM

• our contribution: efficient numerical pricing and calibration• consider inherently infinite-dimensional model• development of effective algorithms• convergence analysis• implementation in C++

• other approaches:• T. Bjork, A. Szepessy, R. Tempone, G. Zouraris 2002: Monte

Carlo simulation and adaptivity• M. Krivko, M. Tretyakov 2011: efficient discretisation in space

Page 20: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

A splitting approach to the HJM equation

• split up the equation into parts corresponding to the transportpart, the HJM drift, and the diffusions

• solve those separately, one after the other (Strang,Ninomiya-Victoir, symmetrically weighted sequential splitting)

Theorem (D., Teichmann 2010, 2011)

Under appropriate smoothness assumptions, the scheme yields aweak approximation of order two: if rt denotes the numericalapproximation using N steps of the scheme,

E[f (rt)]− E[f (rt)] = O(N−2)

for all sufficiently smooth functions f : H → R.

• consequence of the general result on splitting schemes

Page 21: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

How does the splitting work?

• want to solve

drt(x) =

(d

dxrt(x) + α(rt , x)

)dt +

d∑j=1

σj(rt , x) ◦ dW jt

• one after the other, solve

d

dtr 01t (x) =

d

dxr 01t (x), r 01

0 (x) = ρ(x),

d

dtr 02t (x) = α(r 02

t , x), r 020 (x) = ρ(x),

dr jt (x) = σj(r jt , x) ◦ dW jt , r j0(x) = ρ(x),

• through correct concatenation: second weak order• easy to implement

• transport equation exactly solvable• ODEs on Hilbert space solvable using standard Runge-Kutta

methods

Page 22: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

what functions can we use?

• what weight function should we use?

• bond price: B(t,T ) = exp(−∫ T−t

0 rt(ξ)dξ)

• hence: choose ψ(x) = cosh(β‖x‖H), then bond maturing atT in Bψ(H) for β large enough

• works also for standard derivatives (caplets, swaps, swaptionsetc.)

• derivatives with option component usually not differentiable

• nevertheless observe optimal rates of convergence numerically(in finite dimensions known, cf. smoothing properties, UFGcondition, work of S. Kusuoka)

Page 23: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Contents

1 Calibration

2 Splitting for stochastic differential equations

3 Application to the Heath-Jarrow-Morton model

4 Numerical example

Page 24: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

A HJM model with stochastic volatility

• use model with independent randomness for stochastic,time-homogeneous, state-dependent, mean-reverting volatility,

drt(x) =

(d

dxrt(x) + α(rt , x , vt)

)dt

+d∑

j=1

σj(rt , x , vt)dW jt ,

dvt = −αvtdt +d∑

j=1

γjdW jt

• Markovian dynamics

• flexible SABR-type volatility structure

• expected to allow good fits of given caplet data

• easy to calibrate to other products, e.g., swaptions

Page 25: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Calibration of the model

• parametrisation for the volatilities:

σj(r , x , v) = tanh(cj exp(v)

∫ tj

0r(s)ds)λj(x)

• fit market data of bond and caplet prices simultaneously• bond prices: reproduced exactly (input to the model!)• caplet prices: used for calibration of the parameters of the

volatility vector fields

• 13 parameters used to match 120 prices (3 factors)

• calibration time: 14.5 minutes• 1743 evaluations, i.e., .5 seconds per calculation of 120 prices• 2048 quasi-Monte Carlo paths• 120 timesteps of the highly efficient second order splitting

scheme

Page 26: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Calibration results (implied vol)

0.05 0.1

0.2

0.25

0.3

ttm: 1, L=0.044842

0.05 0.1

0.2

0.25

0.3

ttm: 2, L=0.049291

0.05 0.1

0.15

0.2

0.25

ttm: 3, L=0.051787

0.05 0.1

0.15

0.2

0.25

ttm: 4, L=0.053765

0.05 0.1

0.15

0.2

0.25

ttm: 5, L=0.055473

0.05 0.1

0.15

0.2

0.25

ttm: 6, L=0.056694

0.05 0.1

0.15

0.2

0.25

ttm: 7, L=0.057394

0.05 0.1

0.15

0.2

0.25

ttm: 8, L=0.057104

0.05 0.1

0.15

0.2

0.25

ttm: 9, L=0.056574

0.05 0.10.1

0.15

0.2

ttm: 10, L=0.057849

market data

calibration results

Page 27: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Remarks on the calibration

• good fit of medium and long maturities

• in order to fit short maturities better: jumps

• single model, i.e., leads to time-homogeneous dynamics

• should give more stable calibration, i.e., better hedges, noneed to recalibrate all the time (only plug in the new forwardrate curve and stochastic volatility)

Page 28: Efficient simulation and calibration of general HJM models ...€¦ · E cient simulation and calibration of general HJM models by splitting schemes Philipp D orsek (ETH Zurich) joint

Summary

• recap on calibration

• splitting schemes for SDEs and SPDEs

• advantages of HJM methodology over short rate models

• calibration of HJM model with stochastic, time-homogeneous,state-dependent volatility to real-world caplet data

• strategy applicable to other problems:• (multidimensional) SABR model• outside finance: stochastic Navier-Stokes equations

• code (partially) available online athttp://www.math.ethz.ch/~doersekp/was/

Philipp Dorsek and Josef Teichmann.Efficient simulation and calibration of general HJM models bysplitting schemes.ArXiv e-prints, December 2011,http://arxiv.org/abs/1112.5330.