R: R: Hull White Calibration?

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

R: R: Hull White Calibration?

Berardi Luca
R: R: [Quantlib-users] Hull White Calibration?

Luigi, Nando

I think I finally found what was going wrong...
I realized that when instantiating the set of CapHelpers the corresponding pricing engine is silently set to BlackCapFloor... while I was expecting it was set to a pricing engine related to the model used (Hull & White in my case).

Having the pricing engine set to BlackCapFloor implies that the market values of caps COINCIDE with the values given by the model, and no optmization was really carried out.

Now I set the engine to AnalyticalCapFloor, which contains the cap/floor pricing formulas for the Hull & White model, and some calibration is made...even if I still have to check it is made correctly (choosing an appropriate set of initial values for the parameters, for example).

Thanx for your help, anyway.
Ciao,
Luca



-----Messaggio originale-----
Da: Luigi Ballabio [[hidden email]]
Inviato: giovedì 25 marzo 2004 10.23
A: Berardi Luca
Cc: [hidden email]
Oggetto: Re: R: [Quantlib-users] Hull White Calibration?


On 2004.03.24 18:37, Berardi Luca wrote:
> I perhaps managed to find the exact location where the exception is
> thrown.
>
> 9) XiborManager::getHistory()
>
> at this point the exception is thrown, and is subsequently catched by
> ParCoupon::amount() but no action is taken: there is only a comment
> "//fall through and forecast".

That's ok. The code first tries to fetch a stored fixing, and when it's 
told (by an exception) that the fixing isn't there it estimates it.

> I'm now including in the attachment the (self-contained) source code
> which is giving me pain...perhaps on someone else's machine is it 
> going to work?

I didn't really look at the results, but on my machine it compiled, 
linked and ran without errors in release mode with version 0.3.5 (to be 
released in a few days.) Now I'm trying with 0.3.4... ok, it doesn't 
give any error either. Maybe you can try on a coworker's machine?

Later,
        Luigi


DISCLAIMER: Privileged/Confidential Information may be contained in this message and in any of its attachments (the "message"). If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply e-mail. The contents of this message shall be understood as neither given nor endorsed by Banca Profilo S.p.A., nor Profilo SGR S.p.A., nor Profilo Asset Management SGR S.p.A., nor Profilo Academy S.p.A.. Banca Profilo S.p.A., Profilo SGR S.p.A., Profilo Asset Management SGR S.p.A., Profilo Academy S.p.A. do not accept liability for corruption, interception or amendment, if any, or the consequences thereof.

Il presente messaggio e/o i suoi allegati (di seguito il "messaggio") possono contenere informazioni privilegiate e/o confidenziali. Se non siete i destinatari indicati nel messaggio (o persona incaricata di inoltrare il messaggio al/i destinatario/i), non potete copiare o inoltrare il messaggio ad altri e siete invitati a distruggerlo dandone informazione al mittente a mezzo e-mail. Il contenuto del presente messaggio non deve essere considerato come trasmesso o autorizzato nè da Banca Profilo S.p.A., nè da Profilo SGR S.p.A., nè da Profilo Asset Management SGR S.p.A., nè da Profilo Academy S.p.A.. Nè Banca Profilo S.p.A., nè Profilo SGR S.p.A., nè Profilo Asset Management SGR S.p.A., nè Profilo Academy S.p.A. si assumono alcuna responsabilità per eventuali intercettazioni, modifiche o danneggiamenti del presente messaggio e-mail e per le eventuali conseguenze.


Reply | Threaded
Open this post in threaded view
|

Default engines [it was 'Hull White Calibration?']

Ferdinando M. Ametrano-3
Hi all

Luca Berardi wrote:
>I think I finally found what was going wrong...
>I realized that when instantiating the set of CapHelpers the corresponding
>pricing engine is silently set to BlackCapFloor... while I was expecting
>it was set to a pricing engine related to the model used (Hull & White in
>my case).

which reminds me that I'm still wondering if we should remove the default
engine from our interfaces?
Pros&cons anyone?

ciao -- Nando



Reply | Threaded
Open this post in threaded view
|

Re: Default engines [it was 'Hull White Calibration?']

Luigi Ballabio-2
On 2004.03.25 15:22, Ferdinando Ametrano wrote:
> which reminds me that I'm still wondering if we should remove the  
> default engine from our interfaces?

In general, if the default engine is the null engine, it avoids having  
to choose upon instantiation of the instrument and it's still safe  
because it will throw if one doesn't set an actual engine before  
pricing. For specific instruments, it depends. For European options, it  
would make sense to set the analytic engine as a default---instantiate  
the instrument and most times it's ready for pricing. For American  
options, I doubt that there is a consensus as to which is the preferred  
engine---in this case, no default (meaning a null default) would be  
appropriate.

Later,
        Luigi


Reply | Threaded
Open this post in threaded view
|

Re: R: R: Hull White Calibration?

Luigi Ballabio-2
In reply to this post by Berardi Luca
On 2004.03.25 14:59, Berardi Luca wrote:
> I think I finally found what was going wrong...
> I realized that when instantiating the set of CapHelpers the
> corresponding pricing engine is silently set to BlackCapFloor...

Ouch. Cap helpers shouldn't do that...
I'll check whether they can be made to signal an error if no engine is  
explicitly set.

Thanks for finding out,
                        Luigi