How to overwrite the local vol calculation

View: New views
4 Messages — Rating Filter:   Alert me  

How to overwrite the local vol calculation

by Yomi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a local vol surface that has been calibrated to market data.
I want to create a derivated GeneralizedBlackScholesProcess using only this vol surface.
i could use in my constructor a flat vol, but then after I would like to link my localVolSurface_ to the one I pass as argument.

Any idea how to do?

Cheers

Re: How to overwrite the local vol calculation

by Luigi Ballabio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-06-17 at 02:59 -0700, Yomi wrote:
> I have a local vol surface that has been calibrated to market data.
> I want to create a derivated GeneralizedBlackScholesProcess using only this
> vol surface.
> i could use in my constructor a flat vol, but then after I would like to
> link my localVolSurface_ to the one I pass as argument.
>
> Any idea how to do?

It's not possible with the current implementation. You'll have to patch
the GeneralizedBlackScholesProcess class.

Luigi


--

All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore, if
you can't get them together again, there must be a reason. By all
means, do not use a hammer.
-- IBM maintenance manual, 1925



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
QuantLib-users@...
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Re: How to overwrite the local vol calculation

by Yomi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Luigi.
I have managed to make it work.
If I have time I will work on the reverse calibration process (from local to implied) and try to contribute it.
 
BTW, the access to the local volatility is really slow. The performance are not so good with the by default diffusion process.
I have my own parametric local vol, but have you noticed this before?
 
Regards

2008/7/1 Luigi Ballabio <luigi.ballabio@...>:
On Tue, 2008-06-17 at 02:59 -0700, Yomi wrote:
> I have a local vol surface that has been calibrated to market data.
> I want to create a derivated GeneralizedBlackScholesProcess using only this
> vol surface.
> i could use in my constructor a flat vol, but then after I would like to
> link my localVolSurface_ to the one I pass as argument.
>
> Any idea how to do?

It's not possible with the current implementation. You'll have to patch
the GeneralizedBlackScholesProcess class.

Luigi


--

All parts should go together without forcing. You must remember that
the parts you are reassembling were disassembled by you. Therefore, if
you can't get them together again, there must be a reason. By all
means, do not use a hammer.
-- IBM maintenance manual, 1925




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
QuantLib-users@...
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Re: How to overwrite the local vol calculation

by Luigi Ballabio :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-07-01 at 13:54 +0100, Guillaume Pealat wrote:
> BTW, the access to the local volatility is really slow. The
> performance are not so good with the by default diffusion process.
> I have my own parametric local vol, but have you noticed this before?

No---I haven't worked much with local volatility...

Luigi


--

The rule on staying alive as a forecaster is to give 'em a number or
give 'em a date, but never give 'em both at once.
-- Jane Bryant Quinn



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
QuantLib-users@...
https://lists.sourceforge.net/lists/listinfo/quantlib-users
LightInTheBox - Buy quality products at wholesale price