Quant Memo
Advanced

Quadratic Variation

The sum of squared price moves, and the one measurement of a jagged path that settles down instead of blowing up. It is why stochastic calculus needs an extra term, why volatility is observable from a single path, and what a variance swap actually pays.

Prerequisites: Brownian Motion, Variance, Intuitively

Here is a question that sounds trivial and is not: how far did the price move today? Not where it ended up — how much travelling did it do? The obvious answer is to add up the sizes of all the little moves. Try it on real data and something disturbing happens. Hourly bars give one number, minute bars a bigger one, every tick bigger still, with no sign of stopping. The distance travelled by a price is not a well-defined quantity at all; it depends entirely on how closely you look.

There is, however, exactly one way of measuring a jagged path that does settle down: instead of adding up the moves, add up their squares. That number converges, and essentially all of continuous-time finance is built on the fact that it does.

The analogy: measuring a coastline

How long is the coast of Britain? A 100-kilometre ruler gives one answer. A 1-kilometre ruler picks up every bay you skipped, so the answer grows. A metre stick grows it again. The coastline has no length in the ordinary sense — every refinement finds more detail.

A price path is the same kind of object. But watch what changes when you square each measurement before adding. Squaring punishes small pieces enormously: halve a step and its square drops by a factor of four, while you only gain twice as many steps. For a smooth curve the squares therefore shrink to nothing.

A random path is different, and this is the crux: halve the time interval and a random step does not halve. It shrinks by 2\sqrt{2}, because randomness accumulates as the square root of time. Square that and you get a factor of two, exactly cancelled by having twice as many steps. The total stays put. Squared moves are the natural unit of a random path, the way ordinary lengths are the natural unit of a smooth one.

Writing it down

Take a process XtX_t over the interval from 00 to TT. Chop that interval into nn pieces at times 0=t0<t1<<tn=T0 = t_0 < t_1 < \cdots < t_n = T. Over each piece the process moves by XtiXti1X_{t_i} - X_{t_{i-1}}. The quadratic variation of XX up to time TT, written [X]T[X]_T, is what the sum of the squares of those moves converges to as the pieces get arbitrarily small:

[X]T=limni=1n(XtiXti1)2.[X]_T = \lim_{n\to\infty} \sum_{i=1}^{n}\big(X_{t_i} - X_{t_{i-1}}\big)^2 .

In words: chop the path finely, square every step, add them up, and see where that total lands as your chopping gets finer. Three facts do all the work:

  • For any smooth path — anything with a derivative — [X]T=0[X]_T = 0.
  • For a standard Brownian motion WW, [W]T=T[W]_T = T exactly, and it is not random. Every single path gives the same answer.
  • For a process with volatility σ\sigma, [X]T=σ2T[X]_T = \sigma^2 T. The drift contributes nothing at all.

That middle fact is usually abbreviated to the shorthand (dW)2=dt(dW)^2 = dt: a squared Brownian increment behaves like plain elapsed time, not like a negligible second-order crumb. It is the reason Itô's lemma carries a term that ordinary calculus does not.

random path squared steps add to T smooth path squared steps add to 0
Two paths that both travel a similar distance. Refine the time grid and the squared steps of the smooth path collapse toward zero, while the squared steps of the random path hold their total exactly.

Worked example 1: watching it converge, by hand

Take one year, so T=1T = 1, and chop it into nn equal steps of length Δt=1/n\Delta t = 1/n.

The Brownian case. Each step ΔW\Delta W is normal with standard deviation Δt\sqrt{\Delta t}, so its square has expectation Δt=1/n\Delta t = 1/n. There are nn steps, so the expected total is n×(1/n)=1n \times (1/n) = 1. The total's variance also has a clean form: for a standard normal ZZ, Var(Z2)=2\operatorname{Var}(Z^2) = 2, and since (ΔW)2=ΔtZ2(\Delta W)^2 = \Delta t\, Z^2, each squared step has variance 2(Δt)22(\Delta t)^2. Adding nn independent ones gives 2n(Δt)2=2/n2n(\Delta t)^2 = 2/n, so the total's standard deviation is 2/n\sqrt{2/n}.

The smooth case. Take the straight line f(t)=tf(t) = t. Every step is exactly Δt=1/n\Delta t = 1/n, so every square is 1/n21/n^2, and nn of them sum to 1/n1/n.

Ordinary distance travelled, for contrast. The average size of a Brownian step is 2/πΔt0.798/n\sqrt{2/\pi}\,\sqrt{\Delta t} \approx 0.798/\sqrt{n}, and nn of those sum to 0.798n0.798\sqrt{n}.

steps nnsquared steps, Browniansquared steps, straight linetotal distance, Brownian
101.00 ± 0.450.1002.5
1001.00 ± 0.140.0108.0
10,0001.00 ± 0.0140.000179.8
1,000,0001.00 ± 0.00140.000001797.9

Three behaviours in one table. The middle column dies. The right column diverges — a Brownian path really does travel infinitely far in a finite year. Only the second column locks onto a number, and that number is T=1T = 1, with the wobble around it shrinking like 1/n1/\sqrt{n}.

See the same thing by eye. Set the explorer to Brownian with zero drift and redraw several times. The paths end up all over the place — the level is wildly random. But their roughness is visibly identical every time. That constant roughness is the quadratic variation, and it is the part you can measure.

Path explorer
0-1time →
end (bold path) 0.02spread of ends 0.736 independent paths, same settings

Worked example 2: realised variance from five days of data

This is quadratic variation as a trading desk actually computes it. Five daily log returns:

+1.20%,0.80%,+0.30%,1.50%,+0.60%.+1.20\%,\quad -0.80\%,\quad +0.30\%,\quad -1.50\%,\quad +0.60\%.

Step 1 — square each one (as decimals, so 1.20 percent is 0.0120):

0.000144,0.000064,0.000009,0.000225,0.000036.0.000144,\quad 0.000064,\quad 0.000009,\quad 0.000225,\quad 0.000036 .

Step 2 — add them. The total is 0.0004780.000478. That is the realised variance over the five days. Note what you did not do: you never subtracted a mean. Quadratic variation squares raw increments, and over short horizons the drift is far too small to matter.

Step 3 — put it on a yearly footing. Per day the variance is 0.000478/5=0.00009560.000478/5 = 0.0000956. Multiply by 252 trading days: 0.0000956×252=0.0240910.0000956 \times 252 = 0.024091. Take the square root: 0.024091=0.1552\sqrt{0.024091} = 0.1552, so 15.5 percent annualised volatility.

Step 4 — look at where it came from. The single 1.50%-1.50\% day contributed 0.0002250.000225 out of 0.0004780.000478 — 47 percent of the entire week's variance, from one day out of five. This is not an artefact of the example; it is what squaring does, and it is why realised volatility is jumpy.

+1.2% -0.8% +0.3% -1.5% +0.6% daily returns 30% 13% 2% 8% 47% share of the week's realised variance
Squaring concentrates everything into the big days. One move out of five supplies nearly half the week's realised variance — which is why a volatility estimate can lurch on a single session.

Step 5 — price a trade with it. A variance swap pays the difference between realised and strike variance. Say you are long with a vega notional of $50,000 per volatility point at a strike of 14. The variance notional is 50,000/(2×14)=1,785.7150{,}000/(2 \times 14) = 1{,}785.71 per point of variance, and the payoff is

1,785.71×(15.522142)=1,785.71×(240.9196.0)80,100.1{,}785.71 \times \big(15.52^2 - 14^2\big) = 1{,}785.71 \times (240.9 - 196.0) \approx 80{,}100 .

Roughly $80,100. Notice that the contract settles on the sum of squared returns and on nothing else — it is a direct trade on quadratic variation.

What this means in practice

  • Volatility is observable; return is not. Pinning down an expected return takes decades of data, but a single day of intraday prices gives a decent volatility estimate — because quadratic variation is a property of the path, not an average over scenarios.
  • It is why Itô calculus exists. Since (dW)2=dt(dW)^2 = dt survives instead of vanishing, a second-order term appears in the chain rule, and that term is where the 12σ2\tfrac12\sigma^2 in Black-Scholes comes from.
  • It is what a delta hedge accumulates. A hedged option bleeds theta and earns gamma against realised squared moves; the P&L is a bet on quadratic variation against implied variance.
  • Jumps break the tidy version. A gap adds its square all at once, so realised variance in a jumpy market mixes diffusion and jumps, and separating them is its own research area.

Quadratic variation is the sum of squared increments in the limit of fine sampling. It is zero for anything smooth and equal to σ2T\sigma^2 T for anything driven by Brownian motion — the drift disappears entirely. That single asymmetry is why volatility can be measured from one path, and why stochastic calculus needs a term ordinary calculus does not.

The classic confusion is treating quadratic variation as ordinary variance. Variance is an expectation over many possible outcomes; quadratic variation is computed along a single realised path, with no averaging and no mean subtracted. For Brownian motion the two coincide, which is what makes the confusion easy. The practical trap follows from it: theory says finer sampling gives a better estimate, so people compute realised variance tick by tick — and get a badly inflated number, because at that frequency bid-ask bounce dominates the real price moves and every spurious flip adds its square to the total. Desks sample every 5 to 15 minutes, or use noise-robust estimators, precisely because the limit in the definition is not one you can take on real data.

Related concepts

Practice in interviews

Further reading

  • Shreve, Stochastic Calculus for Finance II (ch. 3)
  • Karatzas & Shreve, Brownian Motion and Stochastic Calculus (ch. 1)
  • Andersen & Bollerslev, Answering the Skeptics: Yes, Standard Volatility Models Do Provide Accurate Forecasts (1998)
ShareTwitterLinkedIn