CQF June 2021 M6L1 Extra Notes
CQF June 2021 M6L1 Extra Notes
Basic Finance
A zero coupon bond (ZCB) is a contract which pays a
known, …xed amount, called the principal at some known
date in the future called the maturity ; T . Typically the
principal is a normalised quantity of $1: Usually, but not
always, the value of the bond prior to maturity is less
than the principal. As we approach T , the value of the
bond converges to the principal.
y = y (T ; t) ;
that is it is contingent on today being t:
3
Now consider Taylor’s theorem for V = V (y ) a small
change in yield y
dV 1 d2V 2
V (y + y ) = V (y ) + y + 2 2 y + :::
dy dy
dV
V (y + y ) V (y ) = y + O y2
dy
hence to leading order
dV
V = y
dy
so the relative change is
V 1 dV
= y:
V V dy
Of importance is the quantity
N
X
(T t) e y(T t) + (ti t) Cie y(ti t)
i=1
1 dV ti>t
=
V dy XN
e y(T t) + Cie y(ti t)
i=1
ti>t
called the duration. The larger the duration, the bigger
the response of the bond’s relative value to changes in
yield.
4
Interest Rate Modelling
Introduction
When pricing non linear derivatives products a model for
the randomness in the underlying is required.
Monte Carlo
Trees
PDEs
5
This is an introduction to the PDE framework for interest
rate products.
6
The model will allow the short-term interest rate, the
spot rate, to follow a random walk.
7
Stochastic interest rates
The ‘spot rate’that we will be modelling is a very loosely-
de…ned quantity, meant to represent the yield on a bond
of in…nitesimal maturity.
8
From this we will see the development of a model for all
other rates.
9
The pricing equation for the general model
When interest rates are stochastic a …xed-income instru-
ment has a price of the form V (r; t). Previously we used
V (S; t) to denote an equity derivative price where the
underlying stock S was used, to hedge with. Pricing in-
terest rate products presents a di¤erent problem, which
lies in the hedging. There are now no assets with which
to hedge because r is not a traded quantity, which is what
makes interest rate derivatives harder.
10
The only way to construct a hedged portfolio is by
hedging one bond with a bond of a di¤erent maturity.
The bond with maturity T1 has price V1(r; t; T1) and the
bond with maturity T2 has price V2(r; t; T2).
We have
= V1 V2: (2)
@V1 @V1 1 2 @ 2 V1
@t dt + @r dr + 2 w @r2 dt
@V2 @V2 1 2 @ 2 V2
@t dt + @r dr + 2 w @r2 dt ; (4)
12
This is not riskless because the dr brings in the random
component dX: So if we can eliminate the coe¢ cients
of dr then the portfolio is risk-free. That is @V 1
@r and
@V2
@r ; so we set
@V1 @V2
= 0;
@r @r
which is rearranged to give
@V1 @V2
= : (5)
@r @r
.
d = @V1
+ 1 w 2 @ 2 V1 @V1 @V2 @V2 2
+ 12 w2 @@rV22 dt
@t 2 @r2 @r @r @t
(6)
@V1
+ 1 w 2 @ 2 V1 rV1 @V2
+ 1 w 2 @ 2 V2 rV2
@t 2 @r2 = @t 2 @r2 : (9)
@V1 @V2
@r @r
The lhs depends only on V1; i.e. on T1: The rhs is de-
pendant upon V2 only, i.e. on T2: This is one equation in
two unknowns - but more importantly should hold for all
14
r and t: Hence (9) is a function of (r; t) ; i.e. a function
of 2 common variables to V1 and V2: LHS is f (r; t; T1)
and RHS is g (r; t; T2) :
So (9) becomes
@V1
+ 1 w 2 @ 2 V1 rV1 @V2
+ 1 w 2 @ 2 V2 rV2
@t 2 @r2 = @t 2 @r2 = constant
@V1 @V2
@r @r
15
Hedging with V1 and V2, or V3 and V4 or Vi and Vj etc.
makes no di¤erence. The nonlinear operator
2
@
@t + 12 w2 @r
@
2 r
@
@r
is a universal operator, i.e. some function for all Vi: Let’s
call this a (r; t) is a universal property of interest rates -
but currently does not have a nice …nance interpretation.
@V + 1 w2 @ 2V rV
@t 2 @r2 = a(r; t)
@V
@r
16
We can write this w.lo.g as
@V 1 2 @ 2V @V
+ w 2
+ (u w) rV = 0: (10)
@t 2 @r @r
17
For example, the …nal condition for a zero-coupon is
V (r; T ) = 1:
18
The market price of risk?
!
@V @V 1 @ 2V
@V
dV = w dX + + w2 2 + u dt: (11)
@r @t 2 @r @r
@V 1 2 @ 2V @V @V
+ w + u w rV = 0
@t 2 @r2 @r @r
19
which can be arranged to give
@V 1 2 @ 2V @V @V
+ w 2
+ u = w + rV: (12)
@t 2 @r @r @r
@V @V
dV = w dX + w + rV dt;
@r @r
or
@V
dV rV dt = w (dX + dt): (13)
@r
20
which gives w @V
@r (dX + dt):
21
We now approach the market price of risk di¤erently, by
not assuming the actual form of a (r; t) : Start by writing
the BPE as
@V 1 2 @ 2V @V
+ w a(r; t) rV = 0
@t 2 @r2 @r
@V 1 2 @ 2V @V
+ w = a(r; t) + rV
@t 2 @r2 @r
add u (r; t) @V
@r to both sides
@V 1 2 @ 2V @V @V @V
+ w +u = a(r; t) + rV + u (14)
@t 2 @r2 @r @r @r
23
If we compare the BPE with the BSE
@V 1 2 @ 2V @V
+ w 2
+ (u w) rV = 0:
@t 2 @r @r
@V 1 2 2 @ 2V @V
+ S + rS rV = 0;
@t 2 @S 2 @S
time decay @V
@t ,
di¤usion 12 w2,
drift (u w) and
discounting rV .
25
For …xed-income products the real growth of the spot
interest rate may be u(r; t) but we price as if it were
u(r; t) (r; t)w(r; t).
26
The relationship between prices and ex-
pectations
We can write
RT
V (S; t) = e t r( ) d
EQ[Payo¤];
27
When we have a …xed-income product and rates are sto-
chastic the present value term must go inside the expec-
tation. . .
RT
V (S; t) = EQ e t r( ) d
[Payo¤] :
28
Rule of Thumb:
r=
dS = Sdt + SdX
then the pricing equation is
@V 1 2 2 @ 2V @V
+ S 2
+( )S rV = 0 (16)
@t 2 @S @S
29
but S is traded which means it satis…es (16) ; substituting
V = S gives
( )S 1 rS = 0
r =
which is the risk-neutral growth (called r) =) S =
r
which is the Sharpe ratio.
30
Tractable models and solutions of
the pricing equation
This forms the basis of obtaining analytical/closed form
solutions of the bond pricing equation.
32
Named models
Vasicek
Ho & Lee
33
Vasicek
dr = ( r )dt + 1=2dX:
@V 1 @ 2V @V
+ 2
+( r) rV = 0:
@t 2 @r @r
V (r; T ) = 1:
A = A (t; T )
B = B (t; T )
@ A(t) rB(t)
e = A_ (t) rB_ (t) V
@t
@
eA(t) rB(t) = B (t)V;
@r
and
@2 A(t) rB(t) = B (t)2 V:
e
@r2
35
Substituting these expressions into the pricing equation
for the Vasicek model and dividing through by V we get
1
A_ (t) rB_ (t) + B (t)2 ( r )B (t) r = 0:
2
1
A_ (t) + B (t)2 B (t) +r B_ (t) + B (t) 1 = 0:
2
B_ (t) B (t) = 1
1
A_ (t) + B (t)2 B (t) = 0
2
36
In order for the …nal condition at t = T to be satis…ed
we need
eA(T ) rB(T ) = 1 =)
A(T ) rB (T ) = 0 8r
and so
A(T ; T ) = B (T ; T ) = 0:
e tB
_ (t) e t B (t) = e t
d
e tB (t) = e t
Z T
dt Z T
d e s B (s ) = e s ds
t t
s B (s ) T 1 sT
e = e
t t
T B (T ) t B (t) 1 T t
e e = e e
37
The solution is
1 (T t) )
B= (1 e
To obtain A(t) :
dA 1
= B (t)2 + B (t)
Z T
dt 2 Z
1 T
dA (s) = (1 e 2 (T s) 2e (T s) )ds
t 2 2 t
Z T
+ (1 e (T s) )ds
t
!T
1 2
A (t) = s e 2 (T s) e (T s)
2 2 2 t
!T
1 (T s)
+ s e
t
and
1 1 B (t; T )2
A(t; T ) = 2 (B (t; T ) T + t)( ) :
2 4
38
Cox, Ingersoll & Ross
p
dr = ( r )dt + r dX:
V = eA(t) rB(t);
39
@V 1 @ 2V @V
+ r 2 +( r) rV = 0:
@t 2 @r @r
giving two ODEs
1
B_ (t) = B (t)2 + B 1
2
A_ (t) = B (t)
Although the …rst ODE is a Riccati type equation,
dy
= a ( x ) y 2 + b ( x ) y c ( x)
dx
we don’t have a particular solution from which to obtain
a more general one. The following integrals should be
used as a hint (although the working is a little messy):
Z
dx 1 c x
= ln
x2 c 2 2c c+x !
Z
dx 1 eax
ax
= ln
b + ce ab b + ceax
40
Ho & Lee
dr = (t)dt + 1=2dX:
V = eA(t) rB(t)
The BPE becomes
B_ (t) = 1
1
_
A(t) = B 2 + (t)B (t)
2
which we integrate over t and T
Z T Z T
dB = ds !
t t
B (T ) B (t) = (T t)
| {z }
=0
41
so
B (t) = (T t)
and for A (t)
Z T T Z T Z
1 2
dA(s) = B ds + (s)B (s)ds
t 2 t t
A (T ) A (t)
Z T Z T
1
= (T s)2 ds + (s) (T s) ds
2 t t
Z T
1
A (t) = (T s )3 + (s) (T s) ds
6 t
Z T
1
A (t) = (s)(T s)ds + (T t)3:
t 6
@2
(t) = log ZM (t ; t) + (t t )
@t2
43
Hull & White
q
2) dr = ( (t) (t)r)dt + (t)r dX
45
Black, Derman & Toy
46
A more general model
We have seen A¢ ne Models, i.e. ones which give ZCB
prices of the form:
q
w(r; t) = (t)r + (t):
@A @B 1 2 2
r + w B (u w )B r = 0:
@t @t 2
48
@B 1 2 @ @
+ B (w 2 ) B (u w) 1 = 0:
@t 2 @r @r
1 @2 @2
B 2 (w 2 ) (u w ) = 0:
2 @r @r2
@2 2) = 0
( w
@r2
@2
2
(u w ) = 0:
@r
R @2 2 )dr = 0 R @2
@r 2 ( w @r2
(u w)dr = 0
@ (w 2 ) = (t) @ (u w) = (t)
R @@r 2 R R @@r R
@r (w ) = (t) dr @r (u w) = (t) dr
w2 = (t) r + (t) (u w) = (t) r + (t)
49
Therefore u w and w2 must be linear in r.
@A 1
= (t)B (t)B 2
@t 2
and
@B 1
= (t)B 2 + (t)B 1:
@t 2
A(T ; T ) = 0 and B (T ; T ) = 0:
50
Popular one-factor spot-rate models
The real spot rate r satis…es the stochastic di¤erential
equation
dr = u(r; t)dt + w(r; t)dX:
53
Theoretical framework
dr = u dt + w dX1
and
dl = p dt + q dX2:
long rate
stochastic MPOR
dr2 = w2dt
dl2 = q 2dt
drdl = ?
For drdl we use the correlation
h p p i
E [dX1dX2] = E 1 dt 2 dt = dtE [ 1 2]
= dt
So
drdl = w qdt
Substituting all into dV and rearranging gives
!
@V 1 @ 2V
1 @ 2V @ 2V
dV = + w2 2 + q 2 2 + wq dt +
@t 2 @r 2 @l @r@l
@V @V
dr + dl:
@r @l
56
We will de…ne the coe¢ cient of dt as
@V 1 2 @ 2V 1 2 @ 2V @ 2V
L(V ) = + w 2
+ q 2
+ wq
@t 2 @r 2 @l @r@l
where
@ 1 2 @2 1 2 @2 @2
L + w 2
+ q 2
+ wq
@t 2 @r 2 @l @r@l
is the Black-Scholes operator, therefore
@V @V
dV = L(V ) + dr + dl
@r @l
Similarly for V1 and V2 we have
@V1 @V1
dV1 = L(V1) + dr + dl
@r @l
@V2 @V2
dV2 = L(V2) + dr + dl
@r @l
Hence
@V @V
d = L(V )dt + dr + dl
@r @l
@V1 @V1
1 L ( V1 ) dt + dr + dl
@r @l
@V2 @V2
2 L ( V2 ) dt + dr + dl
@r @l
and grouping similar terms together gives
d = (L(V ) 1 L(V1 ) 2 L(V2 )) dt
57
@V1 @V2 @V1 @V2
+ @V
@r 1 @r
@V
2 @r dr + @l 1 @l 2 @l dl:
(17)
Rearranging
gives
59
as a matrix problem
0 10 1
L0(V )
L0(V1) 0
L (V2) 1
B CB C
@ @V =@r @V1=@r @V2=@r A @ 1 A= 0
@V =@l @V1=@l @V2=@l 2
| {z }
=M
and for the system to be consistent (i.e. solution exists)
we require
det M = 0
Put
1 = rw u
2 = lq p
60
We can therefore write
@V @V
L0(V ) = ( rw u) + ( lq p)
@r @l
In full, we have
@V 1 2 @ 2V @ 2V 1 2 @ 2V
+ w 2
+ wq + q 2
+
@t 2 @r @r@l 2 @l
@V @V
(u r w) + (p lq) rV = 0: (18)
@r @l
1
A(t) B (t)r C (t)l + w2B 2 + wqBC
2
1 2 2
+ q C B (u r w) C (p lq) r
2
= 0
B (t) 1 r C (t) l
1 2 2 1 2 2
+A(t) + w B + wqBC + q C
2 2
B (u r w) C (p lq)
= 0
63
Calibration
Introduction
65
The former is calibration to a snapshot of the market at
one instant in time.
66
Because of this need to correctly price liquid instruments,
the idea of yield curve …tting or calibration has become
popular.
dr = (t)dt + cdX:
B (t; T ) = (T t)
Z T
1
A(t; T ) = (s)(T s)ds + c2(T t)3:
t 6
68
(Note that the variables are r and t, but we are also ex-
plicitly referring to the parameter T , the bond maturity.)
70
ZM (t ; T ) = eA(t ;T ) r (T t ): (1)
Z T
(s)(T s)ds
t
1
= log(ZM (t ; T )) r (T t ) + c2 ( T t )3 :
6
)
x T
F (y; x) (T s) (s);
y s
@F @F
= (s )
@x @T
F (x; x) (T T ) (T ) = 0
72
First di¤erentiate the l.h.s once with respect to T
Z Z T
d T
(s)(T s)ds = (s)ds + 0
dT t t
Di¤erentiate again
Z Z
d2 T d T
(s)(T s)ds = (s)ds
dT 2 t dT t
= (T ):
@2 2 (T
log(ZM ( t ; T )) + c t ):
@t2
The parameters are not functions of the derivative matu-
rity. Interest rates can depend on time, but cannot have
(T ) in the SDE for the spot rate. That is we can’t have
a short term interest rate depend on the maturity of a
bond. Hence the solution is
73
@2 2 (t
(t) = log(ZM ( t ; t)) + c t ):
@t2
Notes:
74