efficient importance sampling in a credit risk model with...

24
A Simple Credit Risk Model Importance sampling Construction of Subsolutions Efficient Importance Sampling in a Credit Risk Model with Contagion Henrik Hult Department of Mathematics KTH Royal Institute of Technology Stockholm, Sweden University of Copenhagen, May 31, 2013 joint work with Pierre Nyquist Henrik Hult KTH Royal Institute of Technology Importance Sampling for Credit Risk

Upload: others

Post on 13-Mar-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Efficient Importance Sampling in a CreditRisk Model with Contagion

Henrik Hult

Department of MathematicsKTH Royal Institute of Technology

Stockholm, Sweden

University of Copenhagen, May 31, 2013joint work with Pierre Nyquist

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 2: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 3: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

A Simple Credit Risk Model with Contagion

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 4: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

A Simple Credit Risk Model with Contagion

A Simple Credit Risk Model with Contagion

A credit portfolio consisting of n obligors is divided into dgroups.

Let w1, . . . ,wd be the fraction of obligors in each group,wj > 0,

∑wj = 1.

Let Qn(t) = (Qn1(t), . . . ,Q

nd(t)) be number of defaults in

each group by time t .

Qn is modeled as a continuous time pure birth Markovchain with intensity nλ(Qn(t)/n) where

λ(x) = (λ1(x), . . . , λd (x)), λj(x) = (wj − xj)aeb∑d

k=1 xk .

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 5: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

A Simple Credit Risk Model with Contagion

A Simple Credit Risk Model with Contagion

Let X n(t) = Qn(t)/n.

Objective: Compute the probability that at least a fractionz has defaulted by time 1:

pn = P{ d∑

j=1

Qnj (1) ≥ nz

}= P

{ d∑

j=1

X nj (1) ≥ z

}.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 6: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Large Deviations

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 7: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Large Deviations

Large Deviations

The processes {X n} satisfy a Laplace principle: for anybounded continuous function h: D [0,1] → R

limn→∞

−1n

log Ex [exp{−nh(X n)}] = infψ{Ix (ψ) + h(ψ)},

with rate function Ix given by

Ix (ψ) =∫ 1

0L(ψ(t), ψ(t))dt ,

for all nonnegative and absolutely continuous ψ ∈ C [0,1] withψ(0) = x , and

L(x , β) = 〈β, logβ

λ(x)〉 − 〈β − λ(x),1〉.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 8: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Large Deviations

Large Deviations

In particular, with

h(ψ) =

{0, if

∑dj=1 ψj(1) ≥ z,

∞, if∑d

j=1 ψj(1) < z,

and Bz = {ψ :∑d

j=1 ψj(1) ≥ z} it follows that

−1n

log pn = −1n

log P{ d∑

j=1

Xj(1) ≥ z}= inf

ψ∈BzI0(ψ) =: γ.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 9: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Importance Sampling for the Credit Risk Model

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 10: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Importance Sampling for the Credit Risk Model

Importance Sampling

Sample X n1 , . . . , X

nN from Fn with Fn ≪ Fn on B.

Form the weighted empirical measure

Fwn (·) =

1N

N∑

k=1

dFn

dFn

(X nk )δXn

k(·).

Use the plug-in estimator

pn = Fwn (B).

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 11: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Importance Sampling for the Credit Risk Model

Efficient Importance Sampling

The choice of sampling distribution Fn is good if Std(pn) isof roughly the same size as pn.

We say that Fn is efficient if

limn→∞

−1n

log E [ p2n ] = 2γ.

Note that since E [ p2n ] ≥ p2

n it is sufficient to show

lim infn→∞

−1n

log E [ p2n ] ≥ 2γ.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 12: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Credit Risk Model

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 13: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Credit Risk Model

The Credit Risk Model

In the credit risk example {X n} is a continuous timeMarkov chain.

The only way to select the sampling distribution Fn is touse transition intensities λ(x , t) in place of λ(x), at stateX n(t) = x .

Challenge: how to find appropriate λ?

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 14: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Credit Risk Model

Some Remarks

This model has been studied by R. Carmona and S.Crépey (Int. J. Theor. Appl. Fin., 2010).

They apply a state-independent change of measure andshow by numerical experiments that importance samplingperforms poorly in the presence of contagion (b > 0).

We will solve the problem by means of the subsolutionapproach developed by P. Dupuis and H. Wang (Brown U.).

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 15: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Subsolution Approach

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 16: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Subsolution Approach

The Subsolution ApproachOverview

View the change of measure as a control problem.The value function of the control problem satisfies adynamic programming principle.Send n → ∞ and derive a limiting control problem.The value function of the limiting control problem Wsatisfies a partial differential equation (Isaacs equation).By constructing a subsolution W to the PDE a change ofmeasure can be based on DW (x , t) (gradient) and theperformance of the corresponding algorithm is given byW (0,0).The algorithm based on a subsolution W is asymptoticallyoptimal if W (0,0) = 2γ.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 17: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Subsolution Approach

The Isaac’s Equation for the Credit Risk Problem

In the credit risk problem the Isaac’s equation reduces to aHamilton-Jacobi equation:

Wt(x , t) − 2H(x ,−DW (x , t)/2) = 0,

W (x ,1) = 0, ford∑

j=1

xj ≥ z,

where the Hamiltonian is

H(x ,p) =d∑

j=1

λj(x)(epj − 1).

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 18: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

The Subsolution Approach

Subsolutions

We aim to find a subsolution W (x , t), i.e., a continuouslydifferentiable function such that

Wt(x , t)− 2H(x ,−DW (x , t)/2) ≥ 0,

W (x ,1) ≤ 0, ford∑

j=1

xj ≥ z, and

W (0,0) ≥ 2γ.

The corresponding importance sampling algorithm usesthe intensity λ(x , t) = λ(x)exp{−DW (x , t)/2}.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 19: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

One-dimensional illustration

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 20: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

One-dimensional illustration

Finding a SubsolitionOne-dimensional case

Candidate subsolution is of the form:

W (x , t ;µ) = 2∫ z

xlog

(1 +

µ

λ(y)

)dy − 2µ(1 − t).

It has

Wt(x , t) = 2µ, DW (x , t) = −2 log(

1 +µ

λ(x)

),

and

Wt(x , t ;µ) − 2H(x ,−DW (x , t ;µ)/2) = 0,

W (x ,1;µ) = 0, for x ≥ z.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 21: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

One-dimensional illustration

Finding a SubsolutionOne-dimensional case

The optimal candidate is found by maximizing W (0,0;µ)over µ:

µ∗ = argmax W (0,0;µ) = argmax 2∫ z

0log

(1 +

µ

λ(y)

)dy − 2µ.

We claim that W (0,0;µ∗) = 2γ. That is, W (x , t ;µ∗)determines an asymptotically optimal importance samplingalgorithm.

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 22: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Numerical illustration

Outline

1 A Simple Credit Risk ModelA Simple Credit Risk Model with ContagionLarge Deviations

2 Importance samplingImportance Sampling for the Credit Risk ModelThe Credit Risk ModelThe Subsolution Approach

3 Construction of SubsolutionsOne-dimensional illustrationNumerical illustration

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 23: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Numerical illustration

Illustration - Monte Carloa = 0.01, b = 5, d = 2, z = 0.25, N = 10000

Location of the outcomes

0.00 0.05 0.10 0.15 0.20 0.25

0.00

0.05

0.10

0.15

0.20

0.25

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk

Page 24: Efficient Importance Sampling in a Credit Risk Model with Contagionweb.math.ku.dk/~mikosch/extremes_2013/Hult.pdf · 2013-06-20 · A Simple Credit Risk Model Importance sampling

A Simple Credit Risk Model Importance sampling Construction of Subsolutions

Numerical illustration

Illustration - Importance Samplinga = 0.01, b = 5, d = 2, z = 0.25, N = 10000

Location of the outcomes

0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0.35

Weighted empirical measure

0.00 0.05 0.10 0.15 0.20 0.25 0.30 0.35

0.00

0.05

0.10

0.15

0.20

0.25

0.30

0.35

Henrik Hult KTH Royal Institute of Technology

Importance Sampling for Credit Risk