09 — Duration, DV01, Convexity and Curve Risk¶
Free learning pack¶
- PIMCO Fixed Income Education Center
https://www.pimco.com/ca/en/resources/education-center/fixed-income - PIMCO Understanding Duration
https://www.pimco.com/us/en/resources/education/understanding-duration - MIT Finance Theory I fixed-income materials
https://ocw.mit.edu/courses/15-401-finance-theory-i-fall-2008/ resources/fixed_income.md
Core approximations¶
dP/P ≈ -D_mod*dy
DV01 ≈ D_mod*P*0.0001
dP/P ≈ -D*dy + 0.5*C*dy^2
In [ ]:
Copied!
# MANUAL FIRST
price = 100.0
modified_duration = 5.0
shock_bp = 100
# Convert bp -> decimal yield change and calculate approximate price change.
# MANUAL FIRST
price = 100.0
modified_duration = 5.0
shock_bp = 100
# Convert bp -> decimal yield change and calculate approximate price change.
Curve vocabulary¶
front end, belly, long end, 2s10s, 5s30s, steepener, flattener, twist, butterfly.
Key-rate duration¶
Use:
dP/P ≈ -sum(KRD_k * dy_k)
After manual work inspect:
convexity() in duration.py computes the second-order term above.
src/pm/fixed_income/duration.py
src/pm/fixed_income/curve.py
ORAL CHECK¶
How can two portfolios both have duration 5 and react differently to a steepener?