Sub topic 15
Pathwise Valuation and Monte Carlo Simulation
Working model
Assume you know present value, bond cash flows, expected value, and basic probability. You should also understand that a binomial interest rate tree represents several possible future rate paths.
Pathwise valuation prices a security separately on each possible path of future interest rates. It then averages those discounted path values under the risk-neutral probability measure. The risk-neutral measure is a pricing framework in which the expected discounted payoff equals the current arbitrage-free price.
For a path with one-period short rates \(r0, r1, \ldots, r_{T-1}\), the discount factor to time zero is:
1 / [(1 + r_0)(1 + r_1) ... (1 + r_{T-1})]
If the security pays \(X_T\) at time \(T\), its path value is:
X_T / [(1 + r_0)(1 + r_1) ... (1 + r_{T-1})]
Monte Carlo simulation generates many such paths. The estimated price is the average of the path values.
From a tree to simulated paths
A binomial tree uses a limited number of paths and usually supports backward induction. Monte Carlo simulation uses many randomly generated paths. This makes it useful for securities with path-dependent cash flows, such as payments that depend on whether a rate has crossed a barrier.
| Method | Main calculation | Strength | Limitation |
|---|---|---|---|
| Binomial tree | Backward induction through nodes | Handles early exercise clearly | Can become large with many periods |
| Monte Carlo | Average discounted path values | Handles complex path dependence | Early exercise requires special methods |
The simulation must use risk-neutral dynamics and a rate process calibrated to the observed yield curve. A simple teaching example can use a short-rate process with a constant drift and volatility. That process is illustrative, not a production calibration.
import math
import random
random.seed(7)
face = 100.0
periods = 3
paths = 100_000
initial_rate = 0.03
drift = 0.001
volatility = 0.01
values = []
for _ in range(paths):
rate = initial_rate
discount_factor = 1.0
for _ in range(periods):
discount_factor /= 1.0 + rate
shock = random.gauss(0.0, 1.0)
rate += drift + volatility * shock
values.append(face * discount_factor)
price = sum(values) / len(values)
standard_error = (
math.sqrt(sum((x - price) ** 2 for x in values) / (paths - 1))
/ math.sqrt(paths)
)
print(f"Estimated price: {price:.4f}")
print(f"Standard error: {standard_error:.4f}")The standard error measures simulation noise. Increasing the number of paths generally reduces it by approximately the square root of the number of paths. For example, multiplying the paths by 100 reduces the standard error by about 10, assuming the model and implementation remain unchanged.
Pathwise cash flows
For a coupon bond, add each coupon to the path at its payment date and discount it using the rates observed earlier on that same path. For a path-dependent security, determine the cash flow from the entire simulated history before discounting it.
Exercise
Why can Monte Carlo simulation price a path-dependent security when a simple spot-rate formula may not?
Show answer
The simulation records the complete history of each rate path, so it can determine cash flows that depend on events or rates observed during the path before discounting and averaging them.