Hi Luigi, First, my output doesn't quite match yours for 9/6/2016. specifically my output has a curve node for 10/10/2016 instead of 10/11/2016 like yours and as a result I cannot recover the 1-month libor fixing. This was an issue I raised in my original email and it may be related to the version I am using (1.4-7 on centos). Is this just a bug in the older version of quantlib I am using (10/10 is a bank holiday in the u.s., columbus day)? EvaluationDate: 2016-09-06 ReferenceDate: 2016-09-06 Curve nodes: 2016-09-06,0.00420438 2016-09-07,0.00420438 2016-09-15,0.00438472 2016-10-10,0.00510927 2016-11-08,0.00655011 2016-12-08,0.00830808 2017-03-08,0.01237149 2017-09-08,0.01542962 Check original rate fixes 1d,2016-09-07,0.00420440,0. 1w,2016-09-15,0.00443000,0. 2m,2016-11-08,0.00663000,0. 3m,2016-12-08,0.00840670,0. 6m,2017-03-08,0.01250060,0. 12m,2017-09-08,0.01561330,0. http://www.isda.org/c_and_a/ For example for the maturity date 12/16/2016, I would want to interpolate between the 3-month (12/8/2016) and the 6-month (3/8/2017) libor nodes: Interpolate rate 2016-09-06,0.86798270 % Actual/360 simple compounding,0.86692756 % Actual/360 continuous compounding 2016-09-08,0.87695778 % Actual/360 simple compounding,0.87590202 % Actual/360 continuous compounding (I attached a Main_v4.cpp that modifies your Main_v3.cpp slightly at the end to output this interpolated rate. but it is hardcoded to really only work with the 9/6 input fixings file...) How can I interpolate this curve according to how the isda doc suggests? I thought maybe the curve class I am using is interpolating the continuous rates instead of the simple rates and so I can't replicate the result? Perhaps I should be using a different class? thanks, Vinod On Thu, Oct 13, 2016 at 5:54 AM, Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users Main_v4.cpp (8K) Download Attachment |
Hi Vinod, yes, it's likely that the different node is due to changes in newer versions of the library (either in the calendar or in the way that the libor index joins the London and US calendars). As for the interpolation: if you ask the curve for rate at a given maturity, it won't interpolate the input rates directly. In your case (since you are using a lineraly-interpolated zero curve) it will interpolate the nodes to get the zero rates at start and maturity, calculate the corresponding discounts, and obtain the forward rate from them. I can try and work out the intermediate calculations if you need it. Luigi On Thu, Oct 20, 2016 at 6:43 PM VINOD RAJAKUMAR <[hidden email]> wrote:
------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |