Hull - White Calibration

Posted by Perissin Francesco on
URL: http://quantlib.414.s1.nabble.com/Hull-White-Calibration-tp2662.html

public: Hull - White Calibration

Hi there,
I am calibrating my Hull-White model in QL 0.3.1 using more or less the same code given in bermudan swaption example. This means considering a set of calibration helpers, and finding the parameters alfa and sigma that minimize the error function, via the simplex optimization method.

Now I'd like to modify slightly this code, in order to keep a given alfa and to find the best sigma. Clearly, this is a much simpler problem since I have a single parameter to calibrate. Unfortunately, I am not an expert user of the library and I'd need some hints in order to reach the goal in a "decent" way...

The code I am currently using is more or less the following:

    CalibrationSet calibrationInstruments;

    .............

    Handle<Model> modelHW(new HullWhite(rhTermStructure));
    Handle<Optimization::Method> om(new Optimization::Simplex(0.25, 1e-9));
    om->setEndCriteria(Optimization::EndCriteria(10000, 1e-7));
    modelHW->calibrate(calibrationInstruments, om);


The modified code should work with a model defined as

    double givenAlfa;
    Handle<Model> modelHW(new HullWhite(rhTermStructure, givenAlfa));


Thanks for the help


Francesco Perissin
Derivatives & Structured Products
Banca del Gottardo
+41 91 808 3730

############################### DISCLAIMER #################################

This message (including any attachments) is confidential and may be
privileged. If you have received it by mistake please notify the sender by
return e-mail and delete this message from your system. Any unauthorised
use or dissemination of this message in whole or in part is strictly
prohibited. Please note that e-mails are susceptible to change. Banca del
Gottardo (including its group companies) shall not be liable for the
improper or incomplete transmission of the information contained in this
communication nor for any delay in its receipt or damage to your system.
Banca del Gottardo (or its group companies) does not guarantee that the
integrity of this communication has been maintained nor that this
communication is free of viruses, interceptions or interference.

############################################################################