Sub topic 11
Building a Binomial Interest Rate Tree
Prerequisites and purpose
Assume you know present value, spot rates, bond pricing, and basic expected value. A binomial interest rate tree is a lattice of possible future short rates. The short rate is the one-period rate used to discount cash flows from one time step to the next.
The tree supports arbitrage-free valuation because every cash flow is discounted using the rate at the node where the cash flow occurs. The tree is calibrated so that it reproduces today’s market prices for zero-coupon bonds.
Tree structure
A recombining tree has one node at time 0, two nodes at time 1, and three nodes at time 2. An up move followed by a down move reaches the same node as a down move followed by an up move.
At time t, node i contains the one-period rate r(t,i). A common lognormal specification is:
r(t,i) = a(t) × exp((2i − t)σ√Δt)
Here, a(t) is the central rate level for time t, σ is the assumed interest rate volatility, and Δt is the length of one period. The index i counts upward moves, so rates increase as i increases.
| Component | Meaning |
|---|---|
| r(t,i) | Short rate at a tree node |
| a(t) | Calibrated rate level for time t |
| σ | Assumed volatility |
| Δt | Time between nodes |
Calibration and risk-neutral probabilities
Calibration chooses each a(t) so that the tree prices match market discount factors. Start with the shortest maturity. Then choose the next level so that the model price of the next zero-coupon bond equals its observed price. Continue maturity by maturity.
The probabilities used for valuation are risk-neutral probabilities. With equal up and down probabilities, p = 0.5. These probabilities are pricing weights, not forecasts of the actual economy.
from math import exp, sqrt
def build_tree(base_rates, volatility, dt=1.0):
"""Build a pedagogical recombining short-rate tree."""
tree = []
for t, central_rate in enumerate(base_rates):
level = [
central_rate * exp((2 * i - t) * volatility * sqrt(dt))
for i in range(t + 1)
]
tree.append(level)
return tree
def zero_price(tree, face=100.0, p=0.5):
values = [face] * (len(tree) + 1)
for t in range(len(tree) - 1, -1, -1):
values = [
(p * values[i + 1] + (1 - p) * values[i])
/ (1 + tree[t][i])
for i in range(t + 1)
]
return values[0]
tree = build_tree([0.03, 0.032, 0.035], volatility=0.15)
for t, level in enumerate(tree):
print(t, [round(rate, 4) for rate in level])
print("Three-period zero price:", round(zero_price(tree), 2))Common errors
- Treating node probabilities as real-world probabilities.
- Using one yield to maturity to discount every cash flow.
- Confusing a short-rate tree with a tree of bond prices.
- Forgetting that rates and cash-flow timing must use the same compounding convention.
- Applying a volatility assumption without checking whether the resulting rates remain economically reasonable.
Exercise
Why must the central levels a(t) be calibrated to zero-coupon prices?
Show answer
Calibration makes the tree reproduce observed market discount factors, so valuations are consistent with the current term structure and do not create arbitrage.