Hello all, the QuantLib test-suite (capfloor.cpp) checks that the put/call parity (capNPV - floorNPV = swapNPV) holds. It seems to me that this test is passed successfully only as long as one chooses term structure daycount Actual360(), see function setup() in capfloor.cpp. After setting this to e.g. ActualActual(ActualActual::ISDA) and keeping anything else unchanged, the test suite fails with the following messages .. Running 236 test cases... .. because the cap price is overstated. I assume that the term structure daycounter should not have this effect on pricing results. Shouldn't it be arbitrary? Would you please have a quick look and correct me if I am wrong. I noticed this while building a small caplet volatility bootstrap tool that I'd like to contribute (eventually) if there is any interest. Many thanks for your efforts, Roland
|
On 07/18/2006 01:55:44 PM, Roland Lichters wrote: > the QuantLib test-suite (capfloor.cpp) checks that the put/call > parity (capNPV - floorNPV = swapNPV) holds. It seems to me that this > test is passed successfully only as long as one chooses term > structure daycount Actual360(), see function setup() in capfloor.cpp. > > I assume that the term structure daycounter should not have this > effect on pricing results. Shouldn't it be arbitrary? Yes and no. For instance, the swap price changes---the coupons will have the same fixings, but the discount factors will change due to the different day-count convention. The change has a smaller effect on the cap and floor (where fixing and discounting are not so neatly separated) hence the failure. I've put a warning in the documentation for the Black engine until we figure out what to fix. Later, Luigi P.S. Yes, the caplet-bootstrapping tool would be interesting. ---------------------------------------- Anyone who says he can see through women is missing a lot. -- Groucho Marx |
In reply to this post by Roland Lichters
Hi Roland
the bug it's been fixed on the CVS trunk. Please let me know if you still have problem
ciao -- Nando
On 7/18/06, Roland Lichters <[hidden email]> wrote:
|
In reply to this post by Roland Lichters
I tried the prerelease tarball and yes, I can confirm that the bug is fixed. Many thanks for your efforts! Roland
|
Free forum by Nabble | Edit this page |