Over $[0, T]$, the sum of squared Brownian increments on an $N$-step uniform partition converges almost surely to the elapsed time [1, 2]:
$$ [W]_T = \lim_{N \to \infty} \sum_{n=0}^{N-1} (\Delta W_n)^2 = T. $$Because this pathwise limit depends only on the diffusion scale and not on any drift, realized variance recovers diffusion volatility directly from discrete returns.
Realized variance and sampling precision
On a grid with step $\Delta = \frac{T}{N}$, each increment is $\Delta W_n = \sqrt{\Delta}\,Z_n$ for independent $Z_n \sim \mathcal{N}(0, 1)$, so the sum scales a chi-square variable with $N$ degrees of freedom:
$$ \sum_{n=0}^{N-1} (\Delta W_n)^2 = \frac{T}{N}\sum_{n=0}^{N-1} Z_n^2. $$This sum has exact mean $T$ and standard deviation $T\sqrt{\frac{2}{N}}$.
For a log-price diffusion $d\ln S_t = \bigl(\mu - \frac{\sigma^2}{2}\bigr)\,dt + \sigma\,dW_t$, the drift contributes $O(\Delta^2)$ per squared step ($O(\Delta)$ over $N$ steps) and vanishes as $\Delta \to 0$. The realized variance estimator
$$ \hat{\sigma}^2 = \frac{1}{T}\sum_{n=0}^{N-1} (\Delta \ln S_n)^2 $$therefore has relative standard error $\sqrt{\frac{2}{N}}$, while the volatility estimator $\hat{\sigma}$ has relative standard error $\frac{1}{\sqrt{2N}}$. Over $N = 252$ daily returns at $\sigma = 20\%$, that places the volatility estimate within $\pm 0.9$ percentage points; higher sampling frequency narrows the error until microstructure noise intervenes.
Measuring the discrete residual
To observe the $\frac{1}{\sqrt{N}}$ fluctuations directly in simulation, track $w_t = W_t$ alongside the Itô integral $i_t = \int_0^t w_s\,dW_s$ (see The Itô integral of W dW). Their combination isolates half the gap between $T$ and the discrete quadratic variation:
$$ \begin{aligned} z_T &= i_T - \frac{1}{2}(w_T^2 - T) \\ &= \frac{1}{2}\Bigl(T - \sum_{n=0}^{N-1} (\Delta W_n)^2\Bigr), \end{aligned} $$which has mean $0$ and exact standard deviation $\frac{T}{\sqrt{2N}}$.
![Symmetric fan of Itô discrepancy z_t = [W]_t - t centered on zero with spread ~0.070 at N = 100 steps](/images/sito-notes/qv-n100-dark.webp)
Run this in sItô
Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun:
- Open quadratic variation ($N = 100$ steps) in sItô ↗
- Open quadratic variation ($N = 10^3$ steps) in sItô ↗
| Grid ($T = 1$) | $\operatorname{sd}\bigl[\sum (\Delta W_n)^2\bigr]$ | Exact $\operatorname{sd}[z_1]$ | Simulated $\operatorname{sd}[z_1]$ (mean $0$) |
|---|---|---|---|
| $N = 100$ | 0.141 | $7.07 \times 10^{-2}$ | $7.0 \times 10^{-2}$ |
| $N = 10^3$ | $4.47 \times 10^{-2}$ | $2.24 \times 10^{-2}$ | $2.2 \times 10^{-2}$ |
When asset prices contain jumps, squared jump sizes add directly to $\sum (\Delta \ln S_n)^2$, breaking convergence to integrated diffusive variance; see What a diffusion cannot do and Compiling parametric SDEs into fast Monte Carlo simulations.
Related notes: Time-dependent volatility.