Re: convergence error for flat yield curve using cubic spline
Posted by
jlee on
URL: http://quantlib.414.s1.nabble.com/convergence-error-for-flat-yield-curve-using-cubic-spline-tp15858p15868.html
Hi,
Thanks for the reply and highlighting about the compounding issue. Yes I agree the 6 month depo is not 6% if the the 3m and 3x3 FRA are 6% because of the compounding. In the code I might have created the quote but in the curve construction I only pass in 3 instruments (1w, 1m and 2y). This was just a test scenario so not real data but was getting errors. I think Peter's suggestion about the tolerance levels helps so will try that out. Thanks for looking at it.
Hi,
i just had a quick look at your swap.cpp. Seems the deposit and the fras have some redundant quotes. Did you consider the compounding? I mean doing a 3M deposit and then a 3x3 FRA gives you a payment after 3 month. The 6 M deposit does "compound" those two 3M Periods and pays only once at the end.
So flat 6% is not ok for the par quotes. Not all of them can have 6%. This holds only for the 6% cc yield cuve for example. But be aware of the discrete rates because of compounding.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users