Q: Option Pricing and SquareRoot Process

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

Q: Option Pricing and SquareRoot Process

kryp33
Hi All,

What is the easiest way to implement the following in QuantLib?

I need to find an option price assuming that the process is defined as dR=SQRT(R)*Sigma*dZ

I found the class SquareRootProcess, but I cannot plug it into example in QuantLib EquityOption,
Since pricing engines there expect that the stochastic process should be derived from class GeneralizedBlackScholesProcess, but SquareRoot process derived from StochasticProcess1D.

Is there any other example that I can use for the task or may be you can point me to the right steps?

Thanks,
Sergey

Reply | Threaded
Open this post in threaded view
|

Re: Q: Option Pricing and SquareRoot Process

Luigi Ballabio
On Wed, 2009-01-28 at 06:40 -0800, kryp33 wrote:

> What is the easiest way to implement the following in QuantLib?
>
> I need to find an option price assuming that the process is defined as
> dR=SQRT(R)*Sigma*dZ
>
> I found the class SquareRootProcess, but I cannot plug it into example in
> QuantLib EquityOption,
> Since pricing engines there expect that the stochastic process should be
> derived from class GeneralizedBlackScholesProcess, but SquareRoot process
> derived from StochasticProcess1D.

The easiest way would be to modify (or clone and modify) the engine you
want so that it accepts a SquareRootProcess.  The path generation
already works with it; the reason a BS process is required was to get
the required discount factors from it.  If you pass your engine both a
square-root process and a discount curve, you should be ok.

Luigi


--

A child of five would understand this. Send someone to fetch a child of
five.
-- Groucho Marx



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users