February 3rd, 2014, 3:23 pm
QuoteOriginally posted by: MoonDragonQuoteOriginally posted by: daveangelQuoteOriginally posted by: MoonDragonI have just found my third hull book (6th edition) in which apparently I previously made this exercise without any issue (more than 3 years ago).The formula I used was :u(t1) = 0.5/(1.025)+0.5/(1.025)^2u(t2) = 0.5/(1.025)+0.5/(1.025)^2+0.5/(1.025)^3+0.5/(1.025)^4u(t3) = 0.5/(1.025)+0.5/(1.025)^2+0.5/(1.025)^3+0.5/(1.025)^4+0.5/(1.025)^5+0.5/(1.025)^6....I believe this is the right way to make these calculation.You should be able to see that the above are approximations to what I have given you as the general case.In your formula I don't see how you take into account the coupons (here 10% per year) while for example.where does the 10% come in ?the 0.5 in you formulae are the fiddle factors of numerical integration.the general solution for u() is[$]u(t)=\int_0^t b(s) ds [$]we can evaluate numerically for example using the trapezoidal rule. for example if we use 3 vertices at 0, 0.5 and 1 then the discount factors are 1, 0.975309912 and 0.951229425. applying the trapezoid rule gives usu(1) = (1+2*0.97531+0.951229)/(2*2) = 0.975462and if we use 5 vertices then the discount factors are 1, 0.9875778, 0.975309912, 0.963194418, 0.951229425 and the trapezoid rules gives usu(1) = ( 1 + 1.975155601 + 1.950619824 + 1.926388835 + 0.951229425 ) / ( 2 * 4) = 0.975424the exact solution assuming that r is constant is (1 - b(1))/r = ( 1 - 0.955122942) / 0.05 = 0.975412if we want to calculate u(2) numerically using 4 trapezoids then the discount factors are 1,0.975309912,0.951229425,0.927743486,0.904837418and the trapezoid rule gives us = 2/(2*4) * (1 + 1.950619824 + 1.902458849 + 1.855486973 + 0.904837418) = 1.903351. And the exact form is 1.903252.
Last edited by
daveangel on February 2nd, 2014, 11:00 pm, edited 1 time in total.
knowledge comes, wisdom lingers