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
- Var(X) = E[X²] − (E[X])².
- Var(aX + b) = a² Var(X): the shift b does not matter, the scale is squared.
- For independent X and Y: Var(X + Y) = Var X + Var Y.
- Standard deviation = √Var, and SD(aX + b) = |a| SD(X).
- 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.
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).
| list | mean | variance | std dev |
|---|---|---|---|
| X = 1, 2, 3, 4, 5 | 3 | 2 | 1.4142 |
| Y = 2X + 7 | 13 | 8 | 2.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)?
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.