February 24th, 2006, 4:58 am
Hello,I have a puzzle with the calculation of YTM of bonds.With the coupon rates, maturity date given by somewebsites, I calculated the YTMs of bonds. But these YTMs are not consistent with the data on these sites.I used exponential compound rate Exp[-r*t] and annual compound rate (1+r)^t to do calculation. Neither of them fits the data. For example, here is the today's data for a bond issed by CocaCoupon Maturity Price YTM5.750 11-01-2008 101.743 5.040With exponential compound rate, 5.750/2 * Exp[-r*65/360] + 5.750/2 * Exp[-r*65/360-0.5r] + 5.750/2 * Exp[-r*65/360 - r] + 5.750/2 * Exp[-r*65/360 - 1.5r] + 5.750/2 * Exp[-r*65/360 - 2r] + 5.750/2 * Exp[-r*65/360 - 2.5r] + 100 *Exp[-r*65/360 - 2.5r] = 101.743, I get the YTM r = 5.7024;With annual compund rate,5.750/2 /(1+r)^(65/360) + 5.750/2 /(1+r)^(0.5+65/360) + 5.750/2 /(1+r)^(1+65/360) + 5.750/2 /(1+r)^(1.5+65/360) + 5.750/2 /(1+r)^(2+65/360) + 5.750/2 /(1+r)^(2.5+65/360) + 100 /(1+r)^(2.5+65/360) = 101.743,I get the YTM r = 5.8681Will anyone help me understand what a convention is adopted by the websites to get the YTM? Many thanks!