← 📊 Random Variables, Expectation & Variance
Subtopic 5 of 6

3.5Variance and standard deviation

The idea

Variance measures how spread out a variable is around its mean: the average squared distance. The standard deviation is its square root.

Think of it like this: Two archers with the same average position: the one whose arrows are scattered widely has the larger variance.

Why it exists

Variance rules decide questions about scaling data, sums of variables and standard deviations of binomials.

How it works

  1. Var(X) = E[X²] − (E[X])².
  2. Var(aX + b) = a² Var(X): the shift b does not matter, the scale is squared.
  3. For independent X and Y: Var(X + Y) = Var X + Var Y.
  4. Standard deviation = √Var, and SD(aX + b) = |a| SD(X).
  5. Variance is never negative.

Worked example: A fair die

E[X] = 3.5, E[X²] = 91/6 ≈ 15.17, so Var = 15.17 − 12.25 = 2.92 = 35/12. Doubling the die gives variance 4 × 2.92 = 11.67. The variance lab shows how a and b act on the mean, variance and SD.

Now play with it

  • →Pick the loaded preset in the table lab and read E[X], Var and SD.
  • →In the data lab set scale a = 2 and shift b = 7 and compare the variance rows.
0.4
0
0.3
1
0.2
2
0.1
5
E[X] = Σ x·p1.2
E[X²]3.6
Var(X) = E[X²] − E[X]²2.16
standard deviation1.4697
E[X²]3.6
F(2) = P(X ≤ 2)0.9

E[g(X)] = Σ g(x)·p(x): apply g to the values, not to the mean. Note E[X²] ≠ E[X]² in general; the gap is the variance. The CDF F(t) = P(X ≤ t) is a step function that climbs from 0 to 1 (GATE 2012: F(−1) = 0.5 and F(1) = 1).

listmeanvariancestd dev
X = 1, 2, 3, 4, 5321.4142
Y = 2X + 71382.8284

E[aX + b] = a·E[X] + b, but Var(aX + b) = a²·Var(X) and SD(aX + b) = |a|·SD(X). Adding b moves everything and changes the mean, not the spread. Doubling doubles the mean and the standard deviation.

Check yourself

Var(X) = 3. What is Var(2X + 5)?

Remember: Var X = E[X²] − E[X]²; Var(aX + b) = a² Var X.
Exam notes (the dense version)

Var(X) = E[X²] − (E[X])² = E[(X − μ)²]. Var(aX + b) = a² Var(X). For independent X, Y: Var(X + Y) = Var X + Var Y (in general add 2 Cov). Standard deviation σ = √Var has the units of X.

Previous year questions: Random Variables, Expectation & Variance (11)

PYQs are grouped by topic, so this is the full set for Random Variables, Expectation & Variance; try the ones that match this subtopic. Open all 11 on the topic page.