• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Learn more Join!
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models. Learn more Join!

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.

[math]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)[/math]
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 [imath]x(t) = \ln r(t)[/imath] and apply the Ito's lemma
[math]dx(t) = k(\ln(\theta) - x(t))dt + \sigma dW_t \tag{1}[/math]From [imath](1)[/imath], we find that [imath]x(t)[/imath] follows the OU process and can be calculated analytically.
 
Back
Top