Exercise: Itô vs. Ordinary Chain Rule — Where They Diverge Numerically
Problem
A trader simulates geometric Brownian motion with drift , volatility , horizon , and paths. They want to confirm that by Monte Carlo.
Two code snippets compute the mean of :
# Snippet A: naive (ordinary chain rule)
# "Since d(ln S) = dS/S, log-return has drift mu."
log_ret_mean_A = mu * T # = 0.10
# Snippet B: Itô-correct
# "d(ln S) = (mu - 0.5*sigma^2) dt + sigma dW, so log-return has drift mu - 0.5*sigma^2."
log_ret_mean_B = (mu - 0.5 * sigma**2) * T # = 0.02-
Simulate the process yourself in Python or R and report the empirical mean of . Which of snippet A or snippet B does the data support?
-
The naive prediction (A) would say that the arithmetic expected return . Compute the correct value of from GBM theory and from the simulation. How far off is the naive prediction?
-
For what range of (holding ) is the naive log-return drift of A within 10% of the correct Itô log-return drift of B? Beyond that volatility, the naive calculation mis-prices options badly. Give a qualitative interpretation: why does the mistake grow with ?
-
Optional extension. Repeat the simulation with . Plot histograms of for paths. Overlay both theoretical means (A and B). Which one lands in the histogram's centre?
Hint
Use
rng = np.random.default_rng(0) to make your results reproducible. Part 2 needs from the MGF of a Gaussian — no Itô correction here because you are taking the expectation of an exponential directly.Jump to the solution when you're ready.