fixedRate = 0.04;//dummy value

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

fixedRate = 0.04;//dummy value

Lars Schouw
I found a comment in the SwaptionHelper.cpp source code file.
fixedRate = 0.04;//dummy value
Is there any reason this has to be hardcoded?
What is the meaning of this and where does it get used in the calibration?

Lars


Yahoo! FareChase - Search multiple travel sites in one click.
Reply | Threaded
Open this post in threaded view
|

Re: fixedRate = 0.04;//dummy value

Luigi Ballabio
On 11/17/2005 09:12:26 AM, Lars Schouw wrote:
> I found a comment in the SwaptionHelper.cpp source code file.
>
> fixedRate = 0.04;//dummy value
> Is there any reason this has to be hardcoded?
> What is the meaning of this and where does it get used in the
> calibration?

Lars,
        it could be any value (0.0 might be less confusing, though.  
I'll change it for next release.)

The swap that is being istantiated with the above rate is used for  
extracting its fair fixed rate. This depends only on the floating leg  
and the payment schedule of the fixed leg---not on its rate.  
Unfortunately, we do have to pass a dummy number to the swap  
constructor anyway. After calculating the fair fixed rate, the swap is  
discarded and replaced with an at-the-money swap paying the fair rate;  
that is what we wanted to obtain in the first place.

Later,
        Luigi

----------------------------------------

There is no opinion so absurd that some philosopher will not
express it.
-- Marcus Tullius Cicero, "Ad familiares"