Exercise: Quadratic Variation by Simulation
Prerequisites: Brownian Motion
Problem
The lesson states that the quadratic variation of Brownian motion on is deterministic:
This exercise asks you to verify the statement numerically and quantify the rate of convergence.
- Simulate a single Brownian path on using a uniform grid of points. For , compute the sample quadratic variation . Report each value.
- Compare to the first-order variation at the same grid sizes. Describe how scales with , and contrast with .
- For the case, repeat the simulation times and plot (or summarise statistics of) the empirical distribution of . Is the limit exactly , or does it fluctuate? Report the sample mean and standard deviation, and compare the standard deviation to the theoretical prediction.
- Conceptually: explain in one paragraph why is consistent with .
Hint
Use
rng.standard_normal(n) to generate the i.i.d. Gaussian increments. For part 3, the theoretical variance of under a uniform grid is .Jump to the solution when you're ready.