Quadratic Variation

The quadratic variation of a path over a time interval is the total of its squared changes, measured over shorter and shorter steps. Split into steps of length , at times . Let be the change of a Wiener process over step . The sum of squared changes, its mean, and its variance are

Each squared step has mean and variance . The variance of the sum goes to , so , and the quadratic variation of over is . A smooth path, one with a continuous derivative, has quadratic variation . A Wiener path has infinite total variation, meaning that the sum of absolute changes grows without bound. It also has no derivative at any point. In the limit, products of small increments follow three multiplication rules:

Only the square of survives, and it is as large as . For an Itô process the rules give . So the quadratic variation of over is , equal to for constant , and the drift has no effect. For this reason the sum of squared log returns of a stock over many short intervals, divided by the length of the period, estimates . This estimate is called realized variance. Quadratic variation produces the in (7.4 Ito Integral) and the extra term in Itô’s lemma.

Not Taught in Lecture

The modules show the mean and the variance of one squared step. They also use the limit inside the Itô integral example. They do not name quadratic variation. The variance of the sum, smooth paths, total variation, the multiplication rules, the quadratic variation of an Itô process, and realized variance go beyond the modules.

Intuition

A trader wants to know how volatile a stock was over the past year. She takes the daily changes in its log price, squares each one, and adds them up. Squaring makes every move count, up or down, and gives large moves more weight. A natural worry is that the answer depends on the sampling. Hourly data have more terms, each of them smaller. The sum could grow, shrink, or settle as the sampling gets finer.

For a smooth path the sum shrinks to zero. Take the straight line on . With steps each change is , and the squares add to . With steps they add to , and with steps to . Each change is about the slope times , so its square is of order . There are terms, so the sum is of order and goes to .

A Wiener path behaves differently. Its change over a step has typical size , so its square is about , and squares add to about . One simulated path on gives sums of , , , and on grids of , , , and steps. The sums stay close to the elapsed time as the grid gets finer.

\usepackage{tikz}
\begin{document}
\definecolor{cold}{HTML}{2F80ED}
\definecolor{grn}{HTML}{2F9E44}
\begin{tikzpicture}[x=8cm,y=2cm,>=latex]
\draw[->] (0,0) -- (1.08,0) node[right] {$t$};
\draw[->] (0,-0.95) -- (0,1.3) node[above] {path};
\foreach \s in {0.5,1} \draw (\s,0.04) -- (\s,-0.04); \node[above] at (0.5,0.03) {$0.5$}; \node[above left] at (1,0.03) {$1$};
\foreach \s in {-0.5,0.5,1} \draw (0.005,\s) -- (-0.005,\s) node[left] {$\s$};
\draw[thick,grn] (0,0) -- (1,1);
\draw[thick,cold] (0.000,0.000) -- (0.008,0.001) -- (0.016,-0.044) -- (0.023,0.048) -- (0.031,0.130) -- (0.039,0.156) -- (0.047,0.061) -- (0.055,0.027) -- (0.062,-0.239) -- (0.070,-0.241) -- (0.078,-0.322) -- (0.086,-0.386) -- (0.094,-0.626) -- (0.102,-0.716) -- (0.109,-0.767) -- (0.117,-0.719) -- (0.125,-0.676) -- (0.133,-0.485) -- (0.141,-0.548) -- (0.148,-0.397) -- (0.156,-0.409) -- (0.164,-0.516) -- (0.172,-0.405) -- (0.180,-0.524) -- (0.188,-0.494) -- (0.195,-0.608) -- (0.203,-0.561) -- (0.211,-0.626) -- (0.219,-0.574) -- (0.227,-0.627) -- (0.234,-0.605) -- (0.242,-0.570) -- (0.250,-0.517) -- (0.258,-0.579) -- (0.266,-0.618) -- (0.273,-0.566) -- (0.281,-0.445) -- (0.289,-0.403) -- (0.297,-0.363) -- (0.305,-0.487) -- (0.312,-0.339) -- (0.320,-0.333) -- (0.328,-0.365) -- (0.336,-0.384) -- (0.344,-0.158) -- (0.352,-0.233) -- (0.359,-0.258) -- (0.367,-0.291) -- (0.375,-0.351) -- (0.383,-0.315) -- (0.391,-0.235) -- (0.398,-0.116) -- (0.406,-0.170) -- (0.414,-0.028) -- (0.422,-0.119) -- (0.430,-0.250) -- (0.438,-0.212) -- (0.445,-0.133) -- (0.453,-0.117) -- (0.461,-0.013) -- (0.469,-0.065) -- (0.477,-0.216) -- (0.484,-0.300) -- (0.492,-0.384) -- (0.500,-0.376) -- (0.508,-0.291) -- (0.516,-0.257) -- (0.523,-0.192) -- (0.531,-0.192) -- (0.539,-0.199) -- (0.547,-0.284) -- (0.555,-0.289) -- (0.562,-0.262) -- (0.570,-0.152) -- (0.578,-0.163) -- (0.586,-0.231) -- (0.594,-0.245) -- (0.602,-0.068) -- (0.609,-0.053) -- (0.617,0.050) -- (0.625,0.096) -- (0.633,-0.022) -- (0.641,0.029) -- (0.648,0.023) -- (0.656,0.075) -- (0.664,0.111) -- (0.672,-0.132) -- (0.680,-0.163) -- (0.688,-0.271) -- (0.695,-0.234) -- (0.703,-0.195) -- (0.711,-0.180) -- (0.719,-0.031) -- (0.727,0.088) -- (0.734,0.112) -- (0.742,0.084) -- (0.750,-0.021) -- (0.758,-0.087) -- (0.766,-0.176) -- (0.773,-0.083) -- (0.781,0.039) -- (0.789,-0.042) -- (0.797,-0.007) -- (0.805,-0.046) -- (0.812,0.015) -- (0.820,0.046) -- (0.828,0.046) -- (0.836,0.060) -- (0.844,0.223) -- (0.852,0.210) -- (0.859,0.275) -- (0.867,0.287) -- (0.875,0.354) -- (0.883,0.520) -- (0.891,0.547) -- (0.898,0.691) -- (0.906,0.608) -- (0.914,0.609) -- (0.922,0.502) -- (0.930,0.628) -- (0.938,0.759) -- (0.945,0.857) -- (0.953,0.814) -- (0.961,0.807) -- (0.969,0.878) -- (0.977,1.006) -- (0.984,0.903) -- (0.992,0.858) -- (1.000,0.990);
\node[grn,right] at (1.01,1.06) {$x(t) = t$};
\node[cold,right] at (1.01,0.86) {$W_t$};
\begin{scope}[yshift=-5.2cm]
\draw[->] (0,0) -- (1.08,0) node[right] {$t$};
\draw[->] (0,0) -- (0,1.3) node[above] {running sum of squares};
\foreach \s in {0.5,1} \draw (\s,0.04) -- (\s,-0.04) node[below] {$\s$};
\foreach \s in {0.5,1} \draw (0.005,\s) -- (-0.005,\s) node[left] {$\s$};
\draw[thick,dashed] (0,0) -- (1,1);
\draw[thick,cold] (0.000,0.000) -- (0.008,0.002) -- (0.016,0.011) -- (0.023,0.022) -- (0.031,0.026) -- (0.039,0.026) -- (0.047,0.033) -- (0.055,0.034) -- (0.062,0.072) -- (0.070,0.073) -- (0.078,0.078) -- (0.086,0.080) -- (0.094,0.119) -- (0.102,0.123) -- (0.109,0.128) -- (0.117,0.129) -- (0.125,0.130) -- (0.133,0.150) -- (0.141,0.153) -- (0.148,0.170) -- (0.156,0.171) -- (0.164,0.177) -- (0.172,0.214) -- (0.180,0.221) -- (0.188,0.223) -- (0.195,0.230) -- (0.203,0.233) -- (0.211,0.239) -- (0.219,0.255) -- (0.227,0.261) -- (0.234,0.264) -- (0.242,0.265) -- (0.250,0.268) -- (0.258,0.283) -- (0.266,0.286) -- (0.273,0.288) -- (0.281,0.299) -- (0.289,0.300) -- (0.297,0.303) -- (0.305,0.311) -- (0.312,0.325) -- (0.320,0.330) -- (0.328,0.339) -- (0.336,0.340) -- (0.344,0.366) -- (0.352,0.370) -- (0.359,0.374) -- (0.367,0.374) -- (0.375,0.377) -- (0.383,0.384) -- (0.391,0.394) -- (0.398,0.401) -- (0.406,0.407) -- (0.414,0.418) -- (0.422,0.424) -- (0.430,0.433) -- (0.438,0.449) -- (0.445,0.454) -- (0.453,0.460) -- (0.461,0.466) -- (0.469,0.468) -- (0.477,0.480) -- (0.484,0.486) -- (0.492,0.490) -- (0.500,0.495) -- (0.508,0.499) -- (0.516,0.500) -- (0.523,0.504) -- (0.531,0.504) -- (0.539,0.509) -- (0.547,0.514) -- (0.555,0.515) -- (0.562,0.527) -- (0.570,0.539) -- (0.578,0.579) -- (0.586,0.589) -- (0.594,0.593) -- (0.602,0.615) -- (0.609,0.617) -- (0.617,0.623) -- (0.625,0.628) -- (0.633,0.636) -- (0.641,0.639) -- (0.648,0.640) -- (0.656,0.661) -- (0.664,0.662) -- (0.672,0.694) -- (0.680,0.695) -- (0.688,0.703) -- (0.695,0.704) -- (0.703,0.705) -- (0.711,0.719) -- (0.719,0.730) -- (0.727,0.739) -- (0.734,0.744) -- (0.742,0.756) -- (0.750,0.763) -- (0.758,0.766) -- (0.766,0.770) -- (0.773,0.775) -- (0.781,0.782) -- (0.789,0.786) -- (0.797,0.787) -- (0.805,0.787) -- (0.812,0.791) -- (0.820,0.802) -- (0.828,0.803) -- (0.836,0.804) -- (0.844,0.817) -- (0.852,0.818) -- (0.859,0.821) -- (0.867,0.841) -- (0.875,0.846) -- (0.883,0.872) -- (0.891,0.875) -- (0.898,0.888) -- (0.906,0.897) -- (0.914,0.902) -- (0.922,0.908) -- (0.930,0.925) -- (0.938,0.945) -- (0.945,0.950) -- (0.953,0.956) -- (0.961,0.960) -- (0.969,0.965) -- (0.977,0.973) -- (0.984,0.979) -- (0.992,0.981) -- (1.000,0.993);
\draw[thick,grn] (0,0) -- (1,0.0039);
\node[right] at (1.01,1.0) {$t$};
\node[cold,above left] at (0.42,0.42) {$\sum (\Delta W)^2$};
\node[grn,above] at (0.75,0.02) {$\sum (\Delta x)^2$};
\end{scope}
\end{tikzpicture}
\end{document}

The top panel shows that simulated path and the line . Both start at and end near . The bottom panel adds up the squared changes over the steps as time runs. For the line the running sum stays near the axis and ends at . For the Wiener path it follows the dashed line closely and ends at . Each squared step is random, but the sum of many independent squared steps stays close to its mean.

The name says what is computed. “Quadratic” means that the changes are squared, and “variation” means that the movements of the path are added up. Each step above gives one piece of the result. Steps of size make each square have mean , so the sum has mean . Adding many independent squares makes the variance small, so the sum settles at . The trader’s sum settles in the same way, at times the length of the period, and finer data make it more precise.

Properties

(One Squared Step) A single squared step is random, with a standard deviation larger than its mean.

Write with standard normal. Then , with mean . A standard normal variable has fourth moment , so the variance of one squared step is

Its standard deviation is , about times the mean, on every grid. With daily steps, , a squared step has mean and standard deviation . So one squared step alone is far from . The useful comparison is with the step itself. The step has standard deviation , more than ten times larger. Measured against , the square is of order in both its mean and its spread. The heuristic derivation of Itô’s lemma uses this to replace by .

(How Fast the Sum Settles) The error of relative to is , whatever the length of the interval.

From the derivation below, has mean and standard deviation . So its error relative to depends only on the number of steps. With daily steps it is , with weekly steps , and with monthly steps . Halving the error takes four times as many steps. The same percentages hold over a week or over a decade, because only enters. The convergence is a form of the law of large numbers, since is the average of independent copies of .

(Smooth Paths Versus Wiener Paths) A path with a continuous derivative has quadratic variation , so a Wiener path cannot have one.

Let have a continuous derivative on . Over a step, , so the sum of squared changes is

The sum is times a fixed number, so it vanishes as the steps shrink. A Wiener path has quadratic variation on every interval , so it has no continuous derivative on any interval. Its slope over one step, , has standard deviation . That is for daily steps, and it grows without bound as the steps shrink. The path also has infinite total variation. Since , the sum of absolute changes has mean . Over one year this is with daily steps and with times as many steps. The distance a Wiener path travels is unbounded, while the sum of its squared steps settles at .

(Multiplication Rules) In sums over many small steps, and add up to zero, while adds up to the elapsed time.

Each rule records what a product of increments adds up to over . The products add to , which goes to . The products add to exactly , which also goes to . The squares add to , which goes to . The table lists the three cases.

ProductSum over LimitRule

The rules matter when a function of an Itô process is expanded to second order. In the term with , only survives, and it becomes . This gives the extra drift in Itô’s lemma. In ordinary calculus all second-order terms vanish. The same rule gives the in . The left-endpoint sum that defines that integral equals on every grid, and 7.4 Ito Integral takes the limit.

(Drift Drops Out) The quadratic variation of depends on alone, so short-horizon data estimate the volatility well and the drift badly.

Square one step: . By the multiplication rules only the last term survives in the sum. So the quadratic variation over is , or when is constant. Under geometric Brownian motion the log price of a stock has . So the sum of squared log returns over short intervals, divided by the length of the period, estimates :

Here is the log return over interval . This annualized estimate is the realized variance. Its relative error is about , so more frequent sampling within the same period makes it more precise. The drift behaves the opposite way. The natural estimate of is , whose standard deviation shrinks only as the period gets longer. 3.1f Historical Volatility uses the sample standard deviation of daily returns instead, which subtracts the mean return and divides by .

Derivation

We want the mean and variance of and its limit. Each step is , with independent standard normal draws and . So the sum of squares is

which is times an average of independent copies of . Since , the mean is . Since , each copy has variance . The terms are independent, so their variances add, and

The variance falls in proportion to . Chebyshev’s inequality bounds the chance of an error of at least :

The bound goes to as for every fixed . So , and the quadratic variation of over is .

Examples

(Easy) Squared Steps on Two Grids

A Wiener path on is sampled every quarter, at . Its four changes are , , , and . So the sampled values are .

(Medium) Realized Variance From One Week

The daily log returns of a stock over one week are , , , , and . A year has trading days.

(Hard) A Month of a Stock

A stock trades at \100\mu = 0.12\sigma = 0.30d(\ln S) = (\mu - \sigma^2/2),dt + \sigma,dW_t20T = 20/250 = 0.08\Delta t = 1/250$.

See Also