Please help and show all working.
a) Create a Newton iteration program to compute the
yield to maturity (YTM) for each bond. Submit a table similar to
Table 1 with the “price” column being replaced by the “YTM” column
filled with the computed YTMs. Plot YTMs vs maturities and
comment.
For the initial guess, choose 10%. Use the stopping criteria
|yn+1 − yn| < 10−6 .
b)Taking as input the computed YTMs in part (a), Compute spot
zero-coupon bond yield curve embedded in the observed coupon paying
bond yield curve, and the implied one-year forward rates.
. For the k-th bond, k = 1,...,30, the maturity is k years. • The face value is $100,000 and the coupon rate for the k-th bond, k = 1,..., 30, is 4%. • The prices of the bonds are given in the following table Assume that all the coupon payments are made annually. Use continuous compounding.
Table 1: Bond prices k prices 1 98,828.9817 2 97,812.0511 3 96,937.8969 4 96,159.9962 5 95,269.2339 6 94,353.5669 7 93,276.0334 8 92,237.8837 9 91,261.0455 10 90,214.0597 k prices 11 89,083.9301 12 87,944.5962 13 86,976.3584 14 85,928.4188 15 84,982.5065 16 84,248.2589 1783,540.8304 18 82,911.5228 19 82,417.0923 20 82,009.0742 k prices 21 81,633.1317 22 81,287.3700 23 81,087.7608 24 80,919.5136 25 80,780.7515 26 80,669.7282 27 80,584.8196 28 80,524.5143 29 80,487.4060 3080,472.1856
Please help and show all working. a) Create a Newton iteration program to compute the yield to maturity (YTM) for each b
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Please help and show all working. a) Create a Newton iteration program to compute the yield to maturity (YTM) for each b
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!