R: R: Hull White Calibration?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

R: R: Hull White Calibration?

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

Luigi,
I tried on another machine, and it doesn't break up, actually. There must be something wrong with my Visual Studio...accidentally I also realized that on some particular keyboard combinations (very common in C++ programming, though, like "->" or "xxx(") the Visual Studio suddenly exits without allowing any previous file storing. Sorry to have queried the list with a machine-specific problem.

However even on a different machine the model doesn't calibrate yet. After the calibration process it always returns the initial parameters (I also tried to perturbate the default parameters to see what happens).

As you can see from the example code I sent before the sequence of actions I undertake to calibrate the model is the following:

1) I create a vector of handles to CapHelpers from the term structure of atm cap volatilitiesm,
2) instantiate the optimization method (I used roughly the same code from the Swaption example),
3) instantiate the model with a relinkable to a term structure of rates,
4) calibrate the model using as arguments the vector of (handles to) CapHelpers and the instantiated optimization method.

Am I missing something?

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.