Aan de slagGa gratis aan de slag

Percent duration and dollar duration

Dollar duration and DV01 are more commonly used in the real world to quickly measure the interest rate risk of a bond or portfolio. They can also be used for other financial instruments that contain some interest rate risk.

In this exercise, you are going to find the dollar duration and DV01 of a bond. The bond has a 30 year maturity, coupon rate of 3.5%, yield to maturity of 5%, and face value of USD 100.

numpy_financial has already imported for you as npf.

Deze oefening maakt deel uit van de cursus

Bond Valuation and Analysis in Python

Cursus bekijken

Oefeninstructies

  • Find the duration of a 30 year bond with a coupon rate of 3.5% and yield of 5% in the usual way.
  • Find the dollar duration of the bond.
  • Find the DV01 of the bond.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Find the duration of the bond
price = ____
price_up = ____
price_down = ____
duration = ____

# Find the dollar duration of the bond
dollar_duration = ____ * ____ * ____
print("Dollar Duration: ", ____)

# Find the DV01 of the bond
dv01 = ____ * ____ * ____
print("DV01: ", ____)
Code bewerken en uitvoeren