Quant Memo
Foundational

Variance, Intuitively

Variance measures how spread out a random outcome is, the average squared distance from the mean. It's the second number every quant reaches for after the expected value, because it captures risk that the average alone hides.

Prerequisites: Expected Value

The Expected Value tells you where a random outcome sits on average. Variance tells you how much it moves around that average. Two bets can share the exact same expected value and still feel completely different: one barely wobbles, the other swings wildly. Variance is the number that separates them, and it's the starting point for every honest conversation about risk.

The idea in words: for each possible outcome, measure how far it lands from the mean, square that distance, and take the average of those squared distances. Squaring does two jobs at once, it makes every distance positive (so overs and unders don't cancel), and it punishes big misses far more than small ones.

If a random quantity XX has mean μ=E[X]\mu = E[X], its variance is

Var(X)=E[(Xμ)2]=ipi(xiμ)2,\mathrm{Var}(X) = E\big[(X - \mu)^2\big] = \sum_i p_i\,(x_i - \mu)^2,

where xix_i are the possible values and pip_i their probabilities. Every symbol here you already know from expected value: this is just the expected value of the squared distance from the mean.

same mean (μ) low variance high variance
Two outcomes with an identical center line but very different spread. The narrow one is low-variance; the wide one is high-variance and therefore riskier.

Notice the units. If XX is measured in dollars, variance comes out in dollars squared, an awkward unit that doesn't compare directly to the outcomes. That's exactly why Standard Deviation exists: take the square root of the variance and you're back in dollars, in a number you can lay next to the mean.

Worked example: same mean, very different risk

Bet A pays +1+1 or 1-1, each with probability 12\tfrac12. Bet B pays +10+10 or 10-10, each with probability 12\tfrac12. Both have mean μ=0\mu = 0.

For Bet A, the squared distances from the mean are (10)2=1(1-0)^2 = 1 and (10)2=1(-1-0)^2 = 1, so

Var(A)=12(1)+12(1)=1.\mathrm{Var}(A) = \tfrac12(1) + \tfrac12(1) = 1 .

For Bet B, the squared distances are 100100 and 100100, so

Var(B)=12(100)+12(100)=100.\mathrm{Var}(B) = \tfrac12(100) + \tfrac12(100) = 100 .

Same expected value, but Bet B's variance is 100100 times larger. Its standard deviation (100=10\sqrt{100}=10) is ten times Bet A's (1=1\sqrt{1}=1), which matches the intuition that its swings are ten times bigger.

A handy shortcut

Computing (xiμ)2(x_i-\mu)^2 for every outcome is tedious. The algebra collapses to a formula you'll use constantly:

Var(X)=E[X2](E[X])2.\mathrm{Var}(X) = E[X^2] - \big(E[X]\big)^2 .

Memorize this: Var(X)=E[X2](E[X])2\mathrm{Var}(X) = E[X^2] - \big(E[X]\big)^2, the average of the squares minus the square of the average. It's far faster than summing (xiμ)2(x_i - \mu)^2 term by term, and it's the form you'll reach for constantly.

Take a fair die: E[X]=3.5E[X] = 3.5, and E[X2]=1+4+9+16+25+366=91615.17E[X^2] = \tfrac{1+4+9+16+25+36}{6} = \tfrac{91}{6} \approx 15.17. So Var(X)=15.173.52=15.1712.252.92\mathrm{Var}(X) = 15.17 - 3.5^2 = 15.17 - 12.25 \approx 2.92. The average squared distance of a die roll from 3.53.5 is just under 33.

Common pitfalls

  • Variance is not in the same units as the data. It's squared. Don't compare a variance directly to a mean or a price, convert to Standard Deviation first.
  • Same mean does not mean same risk. The whole point of the diagram above: two bets with identical expected value can carry wildly different variance. Never size a position off the average alone.
  • The shortcut needs E[X2]E[X^2], not E[X]2E[X]^2 done first. A classic slip is computing E[X]E[X], squaring it, and forgetting that E[X2]E[X^2] is a separate expectation over the squared values.
  • Outliers dominate. Because distances are squared, one rare huge outcome can swell the variance far more than many small ones. That sensitivity is a feature for risk, but it means fat tails inflate variance fast.

Variance is in squared units, dollars-squared, not dollars, so never lay it next to a mean or a price; convert to Standard Deviation first. And a shared mean tells you nothing about risk: two bets with the same average can carry wildly different variance.

Once you can compute a mean and a variance for any bet, you have the two numbers that anchor almost every quant answer. The variance feeds directly into Standard Deviation, into how outcomes move together, and into the higher moments that describe the finer shape of risk.

Related concepts

Practice in interviews

Further reading

  • Blitzstein & Hwang, Introduction to Probability, ch. 4
  • Ross, A First Course in Probability
ShareTwitterLinkedIn