Sub topic 11
Macaulay Duration: Weighted Average Time to Cash Flows
Assume you know how to calculate present value, identify a bond’s coupon and par value, and price a bond by discounting its cash flows. Macaulay duration is a measure of the weighted average time until a bond’s promised cash flows are received.
The Working Model
Each cash flow receives a weight equal to its present value divided by the bond’s total price:
\[ wt=\frac{CFt/(1+y)^t}{P} \]
The Macaulay duration is the weighted average payment time:
\[ D{\text{Mac}}=\frac{\sum{t=1}^{n} t \times \frac{CF_t}{(1+y)^t}}{P} \]
For a bond that pays \(m\) times per year, use the yield per period and divide the result by \(m\):
\[ D{\text{Mac}}= \frac{\sum{t=1}^{n}\frac{t}{m}\times\frac{CF_t}{(1+y/m)^t}}{P} \]
Here, \(CF_t\) is the cash flow in period \(t\), \(y\) is the annual yield, and \(P\) is the bond price.
The duration is measured in years. It is usually less than the bond’s maturity because the investor receives coupon payments before maturity.
Worked Example
Consider a three-year, annual-pay bond with:
- Par value: 100
- Coupon rate: 5%
- Yield to maturity: 4%
- Annual coupon: 5
The price is the present value of the cash flows:
| Year | Cash flow | Present value at 4% |
|---|---|---|
| 1 | 5 | 4.8077 |
| 2 | 5 | 4.6228 |
| 3 | 105 | 93.3445 |
The bond price is approximately 102.775. The duration calculation is:
\[ D_{\text{Mac}}= \frac{1(4.8077)+2(4.6228)+3(93.3445)}{102.775} \approx 2.861\text{ years} \]
The final payment receives the largest weight because it contains the par value. The coupon payments still reduce the average time below three years.
def macaulay_duration(face, coupon_rate, ytm, years, freq=1):
n = int(years * freq)
coupon = face * coupon_rate / freq
periodic_yield = ytm / freq
price = 0.0
weighted_time = 0.0
for t in range(1, n + 1):
cash_flow = coupon + (face if t == n else 0)
present_value = cash_flow / (1 + periodic_yield) ** t
price += present_value
weighted_time += (t / freq) * present_value
return price, weighted_time / price
price, duration = macaulay_duration(100, 0.05, 0.04, 3)
print(round(price, 4))
print(round(duration, 4))Interpreting Duration
A zero-coupon bond has no payments before maturity, so its Macaulay duration equals its maturity. A coupon bond has a shorter duration because coupons arrive earlier.
In general:
- A lower coupon produces a longer duration.
- A longer maturity usually produces a longer duration.
- At a given coupon and maturity, a lower yield usually produces a longer duration.
- A higher coupon shifts more present value toward earlier payments and shortens duration.
Exercise
A two-year annual-pay bond has cash flows of 6 at year 1 and 106 at year 2. At a 5% yield, its price is 101.814. Its cash-flow present values are 5.714 and 96.100. What is its Macaulay duration?
Show answer
(1 × 5.714 + 2 × 96.100) / 101.814 = 1.943 years.