Friday, August 16, 2019

Riccati Equation in spot rate model


Given that dr=(ηγr)dt+αr+βdW


Let Z(r,t)=eA(t;T)rB(t;T),


dAdt=ηB12βB2dBdt=12αB2+γB1


How can we solve for B in this case?


B is a Riccati Equation. The answer for B is given below:


B(t;T)=2(eΨ1(Tt)1)(γ+Ψ1)(eΨ1(Tt)1)+2Ψ1,



where Ψ1=γ2+2α



Answer



As you noted, this is a Riccati type ODE and it can thus be simplified using the standard transformations for this class - see e.g. Wikipedia. We start by defining


C(t,T)=12αB(t,T)Ct(t,T)=12αBt(t,t)


and get


Ct(t,T)=C2(t,T)+γC(t,T)12α.


We now set


C(t,T)=Dt(t,T)D(t,T)Ct(t,T)=Dtt(t,T)D(t,T)+D2t(t,T)D2(t,T)=Dtt(t,T)D(t,T)+C2(t,T)


and get


Dtt(t,T)D(t,T)=C2(t,T)Ct(t,T)=γC(t,T)+12α=γDt(t,T)D(t,T)+12α



or


Dtt(t,T)=γDt(t,T)+12αD(t,T).


This is a homogeneous second order linear ODE with constant coefficients and can be solved using standard methods. We note that T has been fixed and make another substitution by defining τ=Tt such that E(τ)=D(t,T). We get


Eττ(τ)+γEτ(τ)12αE(τ)=0.


The characteristic equation is


r2+γr12α=0


with solutions


r1,2=12γ±12γ2+2α:=β±λ.


Note that λ=12ψ1 in your notation. We thus have the general solution


E(τ)=c1e(β+λ)τ+c2e(βλ)τ



with


Eτ(τ)=(β+λ)e(β+λ)τ+(βλ)c2e(βλ)τ


and for some constants c1 and c2 that have to be determined. We obtain the solution to the Riccati ODE by substituting back


B(t,T)=2C(t,T)α=2Dt(t,T)αD(t,T)=2Eτ(τ)αE(τ).


Applying the terminal condition yields


B(T,T)=0Eτ(0)=0c1=c2βλβ+λ.


Thus


E(τ)=c2β+λeβτ((β+λ)eλτ(βλ)eλτ)


and


Eτ(τ)=(βλ)c2eβτ(eλτeλτ).



We finally get


B(t,T)=2(β2λ2)(eλτeλτ)α((β+λ)eλτ(βλ)eλτ)=(e2λτ1)(β+λ)(βλ)e2λτ=2(eψ1(Tt)1)(γ+ψ1)(eψ1(Tt)1)+2ψ1.


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...