Lecture 03-The HJM Framework
Lecture 03-The HJM Framework
0.4 1.4
0.3 1.2
0.2 1
0.1 0.8
0 0.6
r(t)
r(t)
-0.1 0.4
-0.2 0.2
-0.3 0
-0.4 -0.2
-0.5 -0.4
-0.6 -0.6
0 10 20 30 40 50 0 10 20 30 40 50
time time
Figure: Within the Vasicek Model model context, the impact of variation of
mean-reversion λ, and of the volatility parameter η on the Monte Carlo paths.
0.18 0.4
0.16 0.35
0.14
0.3
0.12
0.25
0.1
r(t)
r(t)
0.2
0.08
0.15
0.06
0.1
0.04
0.02 0.05
0 0
0 10 20 30 40 50 0 10 20 30 40 50
time time
Figure: For the CIR model, the impact of variation of mean-reversion λ, and of
the volatility parameter γ on the Monte Carlo paths.
I 1. Equilibrium models.
I 2. Short-rate models in the HJM Framework.
I 3. Market Models models in the HJM Framework.
Now, we define the implied forward rate, R(t, S, T ), at time t for the
period [S, T ] as:
P(t, T )
e−(T −S)R(t,S,T ) = ,
P(t, S)
def ∂
f (t, T ) = lim R(t, S, T ) = − log P(t, T ).
S→T ∂T
Arbitrage-free HJM
I As we see, under the HJM framework the short rate r (t), is defined
as the limit of the instantaneous forward rate r (t) ≡ f (t, t). The
zero-coupon bond, P(t, T ), with maturity T , follows:
1
P(t, T ) = M(t)EQ · 1 F(t)
M(T )
" ! #
Z T
= EQ exp − r (s)ds · 1 F(t) .
t
I What are the tradables in this market and what quantities are the
martingales ?
I How to find αQ (t, T ) in
I After a lot of derivations for dZ (t) and setting the drift to zero we
find.
Lech A. Grzelak Financial Engineering- Interest Rates and xVA 13 / 30
Arbitrage Free Conditions under HJM
Proof.
The proof easily follows by deriving the dynamics of Z (t) and equating
all the drift terms to zero.
d
Z b(α) ∂ ∂
Z b(α) ∂
f (x, α)dx = f (b, α) b(α) − f (a, α) a(α) + f (x, α)dx
dα a(α) ∂α ∂α a(α) ∂α
Lech A. Grzelak Financial Engineering- Interest Rates and xVA 15 / 30
Ho-Lee Model and Python Simulation
Ho-Lee Model
I We specify a certain form of a volatility σ(t, T ) for the
instantaneous forward rate f (t, T ) and determine the resulting
short-rate dynamics. The first, and the simplest possibility is to
consider σ(t, T ) to be constant, i.e.:
σ(t, T ) = σ.
Ho-Lee Model
∂
I By setting θ(t) = f (0, t) + σ 2 t, we arrive at:
∂t
dr (t) = θ(t)dt + σdW Q (t),
I Are Pmrkt (0, T ) and Pmodel (0, T ) the same for all T ?
Figure: Comparison of the ZCBs from the Ho-Lee model vs. Market P(0, T )
for different T .
Hull-White Model
I Let us now consider a short-rate model generated by the HJM
volatility given by:
I By Lemma we find:
t
σ 2 −λ(t−s) −λ(t−s)
Z
αQ (s, t) = σe−λ(t−s) σe−λ(u−t) du = − e e −1 ,
s λ
which implies that αQ (t, t) = 0.
Lech A. Grzelak Financial Engineering- Interest Rates and xVA 20 / 30
Hull-White Model
Hull-White Model
and
∂
σ(s, t) = −λσe−λ(t−s) = −λσ(s, t),
∂t
with σ(t, t) = σ.
I The dynamics for r (t) is therefore given by:
Z t Z t
∂ ∂ Q
dr (t) = f (0, t)+ α (s, t)ds−λ σ(s, t)dW Q (s) +σdW Q (t).
∂t 0 ∂t 0
Hull-White Model
I We see that Brownian motion dW Q (t) is present in two terms. In
Rt
order to find explicitly the solution for the integral 0 σ(s, t)dW Q (s)
we can use definition of the short-rate which yields:
Z t Z t
r (t) = f (0, t) + αQ (s, t)ds + σ(s, t)dW Q (s),
0 0
As:
t
σ 2 −2λt λt
Z
2
αQ (s, t)ds =
2
e e −1 ,
0 2λ
we obtain the following dynamics for process r (t):
σ2
1 ∂
dr (t) = λ f (0, t) + f (0, t) + 2 1 − e−2λt − r (t) dt + σdW Q (t).
λ ∂t 2λ
Hull-White Model
I So finally, by taking:
1 ∂ σ2
f (0, t) + f (0, t) + 2 1 − e−2λt ,
θ(t) =
λ ∂t 2λ
the dynamics of the process r (t) yields:
∂ log P(0, )
r (0) = f (0, 0) ≈ − , for → 0.
∂
0.4 1.4
0.3 1.2
0.2 1
0.1 0.8
0 0.6
r(t)
r(t)
-0.1 0.4
-0.2 0.2
-0.3 0
-0.4 -0.2
-0.5 -0.4
-0.6 -0.6
0 10 20 30 40 50 0 10 20 30 40 50
time time
I Are Pmrkt (0, T ) and Pmodel (0, T ) the same for all T ?
Figure: Comparison of the ZCBs from the Hull-White model vs. Market
P(0, T ) for different T .
Summary
Homework Exercises
The solutions for the homework can be find at
https://github.com/LechGrzelak/QuantFinanceBook
I Exercise
Consider the “exponential-Vasicek” model given by the following
system of equations:
r (t) = ey (t) ,
dy (t) = (θ − ay (t))dt + σdW (t) y (t0 ) = y0 .
σ2
dr (t) = r (t) θ + − a log r (t) dt + σr (t)dW (t).
2
I Show that
θ σ2
lim E[r (t)] = e a + 4a .
t→∞
I Exercise
I The “exponential-Vasicek” model does not allow for negative
interest rates. In order to “fix” that problem we introduce a
so-called shift parameter ζ,
r˜(t) = r (t) − ζ, ζ ∈ R+ .
I Find the dynamics for r˜(t), simulate Monte Carlo paths and
compare to r (t).
I Discuss the impact of shift on ZCBs, P(t0 , T ).