Monte Carlo simulation of stock price paths

Interactive simulation comparing real-world and risk-neutral stock price paths, with theoretical confidence bands

The lognormal model generates stock price paths by simulating in discrete steps (see Hull 2023, chap. 10):

\[ S_{t+\Delta t} = S_t \exp\!\left[\left(\mu - \frac{\sigma^2}{2}\right)\Delta t + \varepsilon\,\sigma\sqrt{\Delta t}\right] \]

where \(\varepsilon\) is a standard normal random variable. Toggle between real-world and risk-neutral paths to see Girsanov’s theorem in action: only the drift changes, not the volatility.

Tip

How to experiment

  1. Toggle between real-world and risk-neutral paths — notice the fan of paths shifts up or down but has the same spread.
  2. Increase \(\sigma\) to see paths become more volatile.
  3. Add more paths for a smoother picture; check whether simulated quantiles match the theoretical bands.

References

Hull, John. 2023. Risk Management and Financial Institutions. 6th ed. New Jersey: John Wiley & Sons.