Sub topic 1
Discounting Cash Flows: The Foundation
This chapter assumes you know present and future value with compound interest, basic algebra, and what a bond is. Each cash flow received later is worth less today, so pricing a bond means discounting each promised payment back to the present.
Prerequisites
You should be comfortable with present value, future value, and compound interest. You should also be able to use a financial calculator and know that a bond pays periodic coupons and returns par value at maturity.
Bond Features That Drive Cash Flows
A bond's promised cash flows come from three features. Par value (face value) is the principal repaid at maturity, usually 100 per unit. The coupon rate sets the annual interest as a percentage of par. Maturity sets how many years remain until the final payment. A 5-year, 6% semiannual bond with par 100 pays 3.00 every six months and 103.00 at the last payment.
Pricing a Bond as a Present Value
The price equals the present value of every cash flow, discounted at the yield per period. The following function computes that sum.
def bond_price(face, coupon_rate, ytm, years, freq=1):
"""Full price on a coupon date: PV of coupons plus PV of par."""
n = int(years * freq)
c = face * coupon_rate / freq
y = ytm / freq
pv_coupons = sum(c / (1 + y) ** t for t in range(1, n + 1))
pv_face = face / (1 + y) ** n
return pv_coupons + pv_face
for ytm in (0.04, 0.05, 0.06):
print(ytm, round(bond_price(100, 0.05, ytm, 3), 4))Yield to Maturity as the Internal Rate of Return
Yield to maturity (YTM) is the single discount rate that equates the bond's price to the present value of its cash flows. It is the internal rate of return on buying the bond at its market price and holding it to maturity. Solving for YTM requires iteration or a financial calculator, because no closed-form solution exists for bonds with more than one cash flow.
Why Prices and Yields Move in Opposite Directions
Price and yield have an inverse relationship. When the yield falls below the coupon rate, the price rises above par. When the yield equals the coupon rate, the price equals par. When the yield rises above the coupon rate, the price falls below par. The curve is also convex, so a given yield change moves the price more when yields are low than when they are high.
Accrued Interest, Flat Price, and Full Price
Between coupon dates, the buyer owes the seller interest earned since the last payment. The quoted flat price (clean price) excludes this interest. The full price (dirty price) equals the flat price plus accrued interest.
def accrued_interest(face, coupon_rate, freq, days_since_last_coupon, days_in_period):
coupon = face * coupon_rate / freq
return coupon * days_since_last_coupon / days_in_period
flat_price = 101.50
ai = accrued_interest(100, 0.06, 2, 60, 180)
print(round(ai, 4), round(flat_price + ai, 4))> callout note: Settlement is the day the buyer pays. Accrued interest depends on the settlement date, not the trade date, so always confirm which date the question uses.
Exercise
A 6% semiannual bond with par 100 has a flat price of 101.50 and 60 of 180 days have elapsed in its coupon period. What is the full price?
Show answer
Accrued interest is 3.00 × 60/180 = 1.00, so the full price is 101.50 + 1.00 = 102.50.