Re:HullWhiteProcess class usage...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re:HullWhiteProcess class usage...

marco.tarenghi@libero.it
Hi Toyin, my name is Marco and I am one of the persons who contributed the forward processes files to QuantLib.
Actually I have to say that we cannot find the files you mentioned in your mail...
We have the 0.3.12 release, but we do not find the forward processes neither the mcHullWhite pricing engine class.
Where did you find them?
Anyway I cannot clearly understand your problem: I mean, the two processes are nearly the same so you should be able to instantiate them in the same way and you can avoid to set the ForwardMeasureTime.
But probably if I could see the files I would better understand.

On the other side you are also right: at the moment you have to instantiate only simple StochasticProcess1D objects if you need to use the stocahsticProcessArray. Actually, when we developed the forward processes classes, we focused on the pricing side of the problem. When the process is in the risk neutral measure, you cannot price the instrument (e.g. a cap) via Monte Carlo.
This problem was much more evident in the g2Process, where passing to the forward measure also the correlation matrix changes: we spent a lot of time on this silly fact...
I do not know what you are really interested in, but if you need a process containing two other process, I sugget you to follow the g2Process idea, that is creating a new stochasticProcess containing two simple processes, and these processes could be either forward processes or not. Just be careful when considering the measure in which you're doing the pricing!!

I hope I've been clear, please feel free to contact me for any other question.

Regards,
Marco


---------- Initial Header -----------

Reply | Threaded
Open this post in threaded view
|

Re:HullWhiteProcess class usage...

Toyin Akin
Hi,

Firstly excellent work (you and your team) on the new framework, I've been
playing with it for a
while.

Actually Luigi contributed this code within the dev version of CVS (no
examples though) and with the current problems that sourceforge is having
you cannot directly obtain this code.

Okay, basically I'm looking for a class similar to mchullwhiteengine that
uses the non-forward process class.

Basically I want to simply compute the payoff and discount. I do not want to
use some sort of forwarddate notion. I suspect that the non-forward
HullWhite process class provides this for me.
However the problem is how does one discount the payoff (line #79 of the
mchullwhiteengine.cpp file) if I use this class.