शुरू करेंमुफ़्त में शुरू करें

Dollar convexity

Calculating the dollar convexity of a bond is an important first step in using convexity to predict bond prices. In this exercise, you are going to calculate the dollar convexity of a 10 year bond paying a 2% coupon, with a yield of 3% and face value of USD 100.

Recall that the formula for dollar convexity is given by:

\( Dollar \ Convexity = Convexity \times Bond \ Price \times 0.01^2\)

numpy_financial has already been imported for you as npf.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Bond Valuation and Analysis in Python

पाठ्यक्रम देखें

अभ्यास निर्देश

  • Find the dollar convexity of a 10 year bond with a 2% annual coupon and 3% yield and print the result.

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Find price of a 10 year bond with 2% coupon and 3% yield, shift yields, and reprice
price = ____
price_up = ____
price_down = ____

# Calculate convexity of the bond
convexity = ____

# Calculate dollar convexity and print the result
dollar_convexity = ____
print("Dollar convexity: ", ____)
कोड संपादित करें और चलाएँ