- Joined
- 7/17/08
- Messages
- 307
- Points
- 38
Hi all
Just finished my masters, and have a bit of code sitting around which I used in my thesis in case anyone wants it. Everything is in Matlab.
I was working on a project trying various structural bond pricing models to price corporate bonds, and implemented the Merton 1974, Longstaff and Schwartz 1995, and Briys and de Varenne 1997 models, as well as the Vasicek 1977 risk-free bond model.
In addition, and as a requirement for some of the above models, I wrote some code to fit the Vasicek interest rate process to an observed term structure (yield curve) and thereby allow you to retrieve the parameters which when fed into the Vasicek model will result in the observed structure.
I was going to post the code on the Mathworks community site, but its been redesigned and seems really painful now
I owe a debt of thanks to a German guy who sent me some R code upon which showed the term structure modelling idea being applied, as per the papers of Eom, Huang and Helwege 2004, so I figured I'd try to give something back. If anyone wants any of the above code, just message me to let me know. It should be easily readable and adaptable I'd think.
Anyway, if the above makes sense and the code will be of any use to anyone, let me know.
Just finished my masters, and have a bit of code sitting around which I used in my thesis in case anyone wants it. Everything is in Matlab.
I was working on a project trying various structural bond pricing models to price corporate bonds, and implemented the Merton 1974, Longstaff and Schwartz 1995, and Briys and de Varenne 1997 models, as well as the Vasicek 1977 risk-free bond model.
In addition, and as a requirement for some of the above models, I wrote some code to fit the Vasicek interest rate process to an observed term structure (yield curve) and thereby allow you to retrieve the parameters which when fed into the Vasicek model will result in the observed structure.
I was going to post the code on the Mathworks community site, but its been redesigned and seems really painful now
I owe a debt of thanks to a German guy who sent me some R code upon which showed the term structure modelling idea being applied, as per the papers of Eom, Huang and Helwege 2004, so I figured I'd try to give something back. If anyone wants any of the above code, just message me to let me know. It should be easily readable and adaptable I'd think.
Anyway, if the above makes sense and the code will be of any use to anyone, let me know.