Workspace /C4 Delta-Hedge Simulator
C4

Delta-Hedge Simulator

Write or buy European options at their Black–Scholes–Merton value, delta-hedge them with shares at discrete dates over many simulated stock paths, and see what the hedge leaves behind.

Learning focus: a delta hedge rebalanced at discrete dates replicates the option only on average: the P&L is noisy, the noise falls roughly like 1 ÷ √(rebalances), and hedging at an implied volatility the stock does not deliver leaves a systematic gain or loss.

Option position
yrs
%
%
Volatility and stock paths
%
%
%
Mean hedging P&L
3.22
± 2.83 standard error
Std of P&L
89.51
Std as % of premium
8.56%
5th percentile
−144.17
95th percentile
142.80
BSM premium (per option)
10.4506
Position 1,045.06
Rule-of-thumb std
92.23
Volatility-gap benchmark
0.00
Initial hedge
63.68 shares

With realised volatility equal to implied, the mean P&L (3.22) is within three standard errors of zero: discrete hedging adds noise, not a systematic gain or loss. The spread is about 8.6% of the premium with 52 hedge intervals.

One sample path

A written option's hedge buys shares after the stock rises and sells after it falls, always trading after the move, which is why discrete hedging is imperfect.

Hedging P&L across paths

Each path's final hedged value is discounted to today at the risk-free rate; the width of this distribution is the cost of hedging only at discrete dates.

Spread of P&L against rebalancing frequency

Same seed at each frequency: quadrupling the hedge intervals roughly halves the spread, the 1 ÷ √N shape.

Sample path, rebalance by rebalance
DateTime (yrs)StockΔ per optionShares tradedShares heldCash
00.0000100.000.636863.6863.68−5,323.25
10.0192102.770.68614.9368.61−5,834.62
20.0385102.880.68720.1268.72−5,852.08
30.0577106.200.74205.4774.20−6,439.10
40.0769105.860.7366−0.5473.66−6,387.98
50.0962105.780.7351−0.1573.51−6,378.46
60.1154106.570.74781.2774.78−6,520.28
70.1346106.100.7402−0.7674.02−6,445.57
80.1538103.340.6916−4.8669.16−5,949.52
90.1731107.210.75846.6875.84−6,671.26
100.1923107.150.7576−0.0875.76−6,669.18
110.2115103.550.6940−6.3669.40−6,017.31
120.2308103.860.69960.5569.96−6,080.71
130.250099.320.6040−9.5660.40−5,137.19
140.2692102.540.67216.8267.21−5,841.19
150.2885105.320.72655.4472.65−6,419.79
160.3077109.490.79847.1979.84−7,212.74
170.3269112.920.84794.9584.79−7,778.40
180.3462114.530.86902.1286.90−8,028.24
190.3654115.060.87690.7887.69−8,125.81
200.3846110.880.8245−5.2382.45−7,553.56
210.4038112.730.85222.7785.22−7,872.67
220.4231117.500.90785.5690.78−8,533.59
230.4423110.440.8229−8.4982.29−7,603.63
240.4615113.950.87425.1487.42−8,196.17
250.4808115.000.88911.4988.91−8,375.20
260.5000111.980.8526−3.6585.26−7,974.41
270.5192113.390.87482.2287.48−8,233.33
280.5385118.290.92975.5092.97−8,891.57
290.5577115.510.9061−2.3790.61−8,626.76
300.5769114.740.9006−0.5590.06−8,572.22
310.5962115.650.91411.3591.41−8,736.20
320.6154117.970.93942.5393.94−9,043.03
330.6346115.520.9200−1.9392.00−8,828.58
340.6538116.330.93211.2093.21−8,977.19
350.6731118.750.95572.3695.57−9,266.56
360.6923118.740.95930.3695.93−9,317.68
370.7115119.050.96500.5796.50−9,394.44
380.7308113.670.9216−4.3392.16−8,910.89
390.7500111.050.8893−3.2388.93−8,560.95
400.7692116.590.96137.1996.13−9,407.90
410.7885116.680.96700.5796.70−9,483.21
420.8077121.130.99032.3499.03−9,775.48
430.8269120.230.99090.0599.09−9,791.12
440.8462114.060.9652−2.5696.52−9,508.07
450.8654116.470.98632.1198.63−9,762.94
460.8846119.000.99631.0099.63−9,891.22
470.9038124.310.99990.3599.99−9,944.80
480.9231126.091.00000.01100.00−9,956.12
490.9423128.451.00000.00100.00−9,965.82
500.9615125.961.00000.00100.00−9,975.41
510.9808132.071.00000.00100.00−9,985.01
521.0000131.74Expiry−100.000.005.39

The first path of the simulation, for the whole position. At expiry the shares are sold and the option settled, so the last cash figure is this path's hedging P&L before discounting.