Exercise: Delta Hedging P&L Simulation
Prerequisites: Delta, Geometric Brownian Motion
Problem
A trader sells one ATM European call (, years, , , ) and dynamically delta-hedges. They discretise the hedging into equally-spaced rebalancing times over .
-
Simulate GBM paths of the underlying. For each path, compute the terminal hedged P&L:
- Initially short 1 call, hold shares, cash balance .
- At each rebalancing, update delta to (buy/sell to match). Cash accrues at rate .
- At expiry, pay out on the short call, close the share position at .
The final P&L is the remaining cash balance minus the option payoff.
-
For three discretisation levels , report the mean and standard deviation of terminal P&L. Verify that mean is close to zero (cost of hedging absorbs the option premium) and std shrinks as grows.
-
Convergence rate. The theoretical hedging-error scaling is . Verify this by plotting vs. .
-
Discussion. What source of residual P&L remains at any finite ? (Hint: this is the gamma risk — the curvature that first-order delta hedging misses.)
Hint
For simulation, use
rng = np.random.default_rng(0) and generate log-returns with . Use for risk-neutral pricing and hedging.Jump to the solution when you're ready.