Login  Register

BS Path Generation using exact formulea instead of Discritization schemes

classic Classic list List threaded Threaded
3 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

BS Path Generation using exact formulea instead of Discritization schemes

thusitha liyanage
6 posts
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






Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: BS Path Generation using exact formulea instead of Discritization schemes

Luigi Ballabio
3579 posts
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
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: BS Path Generation using exact formulea instead of Discritization schemes

thusitha liyanage
6 posts
Yeah,

It already does that. I figured that out later on. I forgot to make a post regarding that.

Thanks

Luigi Ballabio wrote
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
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users