Serving the Quantitative Finance Community

 
User avatar
JohnGu
Topic Author
Posts: 0
Joined: June 18th, 2013, 1:33 am

instantaneous forward rate

March 5th, 2014, 12:24 pm

Hi all, a question is to calculate the instantaneous forward rate of future time t , e.g f(0,t).Data we have are the zero rates of different maturities.I tried the gradient function in matlab but the results were quite off.Any help is appreciated! Thank you.John.
 
User avatar
yin413
Posts: 0
Joined: November 10th, 2013, 12:08 pm

instantaneous forward rate

March 5th, 2014, 3:42 pm

interpolate the zero curve, and find a derivative?
 
User avatar
JohnGu
Topic Author
Posts: 0
Joined: June 18th, 2013, 1:33 am

instantaneous forward rate

March 7th, 2014, 3:17 am

That's the method I am using.But the value i get is quite off.I used the gradient function in matlab.
 
User avatar
mathmarc
Posts: 2
Joined: March 18th, 2003, 6:50 am

instantaneous forward rate

March 8th, 2014, 3:04 pm

QuoteOriginally posted by: JohnGuThat's the method I am using.But the value i get is quite off.I used the gradient function in matlab.Why do you want to compute instantaneous forwards? They are a useful theoretical concept, but I have never seen a practical case where you would want to use them. You are better off using discount factors or zero-coupon rates. When you said that the value is off, you compare them to what?The instantaneous forwards are defined as the integrant to use to obtain the (market) discount factors through an integral. They are defined "almost everywhere", they are in particular ill-defined in points where the curve is non-differentiable (in particular in node point of a curve interpolated linearly). Even if your curve is correctly defined in theory, your implementation may be wrong all the time (your implementation is relying on a countable number of points, so all of them may be in the "almost" part of "almost everywhere").
 
User avatar
JohnGu
Topic Author
Posts: 0
Joined: June 18th, 2013, 1:33 am

instantaneous forward rate

March 9th, 2014, 1:08 am

QuoteOriginally posted by: mathmarcQuoteOriginally posted by: JohnGuThat's the method I am using.But the value i get is quite off.I used the gradient function in matlab.Why do you want to compute instantaneous forwards? They are a useful theoretical concept, but I have never seen a practical case where you would want to use them. You are better off using discount factors or zero-coupon rates. When you said that the value is off, you compare them to what?The instantaneous forwards are defined as the integrant to use to obtain the (market) discount factors through an integral. They are defined "almost everywhere", they are in particular ill-defined in points where the curve is non-differentiable (in particular in node point of a curve interpolated linearly). Even if your curve is correctly defined in theory, your implementation may be wrong all the time (your implementation is relying on a countable number of points, so all of them may be in the "almost" part of "almost everywhere").Check out Hull white 1996 paper. I compared my implementation with their results.The forward instantaneous forward rate is used to find the displacement of the tree node for the hull white trinomial tree.