Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/yield-curve-bootstrapping-tp5464p5483.html
On Thu, 2010-05-06 at 14:37 +0530, Rambo Bachalakuri wrote:
> Thanks for your reply, I tried almost all permutations and
> combinations of all compounding and frequencies. But i never got the
> inputted 0.06 rate.
Apologies for the delay.
If you use the end date of one of the deposits you've used for the curve
(e.g., if you use
Date checkDate = Date(6, August, 2010);
instead of September 6th, which doesn't correspond to any input deposit)
you get the correct rate back. Alternatively, you can add the 4-months
deposit to the curve, at which point September 6th will give you the
correct rate, too. But in between curve nodes, you won't always
retrieve the same value---you're using log-linear interpolation on
discounts, not linear interpolation on the zero rates.
Luigi
--
Brady's First Law of Problem Solving:
When confronted by a difficult problem, you can solve it more
easily by reducing it to the question, "How would the Lone
Ranger have handled this?"
------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users