The estimated price change using duration and convexity
In the prior exercises, you estimated that if yields increase by 1%, you can expect a dollar effect due to duration of -6.790577
and dollar effect due to convexity of 0.285045
. These two values are stored in the objects duration_dollar_change
and convexity_dollar_change
, respectively. You also know that the bond has a current price of $97.17106
, which is stored in the workspace as the object px
.
Recall from Chapter Three that accurate price estimations should take into account both duration and convexity. In this exercise, you will be asked to calculate the estimated change in the price based on duration and convexity. You'll then calculate the new estimated price assuming a 1% increase in yields.
Cet exercice fait partie du cours
Bond Valuation and Analysis in R
Instructions
- Estimate total change in price given a 1% increase in yields based on
duration_dollar_change
andconvexity_dollar_change
. Save this value toprice_change
. - Use
price_change
to calculate thenew_price
of your bond!
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Estimate price_change
price_change <- ___ + ___
price_change
# Estimate new_price
new_price <- ___ + ___ + ___
new_price