Solving a BK equation

Joined
7/8/23
Messages
1
Points
1
Hello everyone :)

I'm trying to solve this equation I got by using Itô lemma on some Black-Karasinski model.

dr(t)=r(t)(kln(θ)+σ22kln(r(t)))dt+σr(t)dW(t)d r(t)=r(t)\left(k \ln (\theta)+\frac{\sigma^2}{2}-k \ln (r(t))\right) d t+\sigma r(t) d W(t)
but I'm having a bit of trouble expressing the short rate, and then generating a few trajectories in python.

Thanks in advance to anyone who takes the time to help me ;)
 
Hint: Denote x(t)=lnr(t)x(t) = \ln r(t) and apply the Ito's lemma
dx(t)=k(ln(θ)x(t))dt+σdWt(1)dx(t) = k(\ln(\theta) - x(t))dt + \sigma dW_t \tag{1}From (1)(1), we find that x(t)x(t) follows the OU process and can be calculated analytically.
 


Write your reply...
Back
Top Bottom