Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Hi All,
What is the best way to get BS process to generate paths using the exact formulea instead of the Euler schemes. i.e. Currently BS process uses Sn+1 - Sn = (mu - 0.5*sigma^2)* (Sn)deltat + sigma *Sn*sqrt(deltat)*N(0,1) What I would like to use is the exact equation to generate the same paths i.e Sn+1 = Sn*exp[(mu - 0.5*sigma^2) + sigma*sqrt(dt)*N(0,1)] Is this something I can do using existing processes in Quantlib, or do I have to do this myself? The reason I am asking is I need this done for BS, OU process etc where we have exact and near exact solutions. Thanks and regards, Thusitha |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
On Thu, 2009-01-29 at 12:40 -0800, thusi wrote:
> Hi All, > > What is the best way to get BS process to generate paths using the exact > formulea instead of the Euler schemes. i.e. > > Currently BS process uses > Sn+1 - Sn = (mu - 0.5*sigma^2)* (Sn)deltat + sigma *Sn*sqrt(deltat)*N(0,1) > > What I would like to use is the exact equation to generate the same paths > i.e > Sn+1 = Sn*exp[(mu - 0.5*sigma^2) + sigma*sqrt(dt)*N(0,1)] Thusitha, the existing BS process evolves log(S), so it might already do what you need in this case. Is that so? Luigi -- Westheimer's Discovery: A couple of months in the laboratory can frequently save a couple of hours in the library. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
Yeah,
It already does that. I figured that out later on. I forgot to make a post regarding that. Thanks
... [show rest of quote]
|
Free forum by Nabble | Disable Popup Ads | Edit this page |