moment based statistics
Variance of a Random Variable
You should know: expectation
Overview
The variance of a random variable X measures how spread out its values are around its expected value. It is defined as the expected value of the squared deviation from the mean, Var(X) = E[(X − μ)²], where μ = E[X]. An equivalent and often more convenient computational form is Var(X) = E[X²] − (E[X])². Variance is always nonnegative, and it is zero exactly when X is constant (almost surely). Its square root, the standard deviation σ = √Var(X), expresses spread in the same units as X itself, which is why it is often reported alongside the mean.
Intuition
Think of variance as the average 'squared distance' between where a random variable actually lands and where it lands on average. Squaring the deviations does two things: it makes every deviation nonnegative (so they can't cancel out), and it penalizes large deviations more than small ones. A distribution tightly clustered around its mean has small variance; a distribution with wide swings has large variance. Squaring changes the units (dollars become dollars-squared), which is why we usually take the square root at the end to get the standard deviation back into the original units.
Formal Definition
For a random variable X with mean μ = E[X], the variance is:
Worked Examples
First find the mean.
Find E[X^2] by averaging the squares of the outcomes.
Apply the shortcut formula.
Answer: Var(X) = 35/12 ≈ 2.917.
Practice Problems
X takes value 1 with probability 0.5 and value 3 with probability 0.5. Find Var(X).
If Var(X) = 4, find Var(3X + 5).
A factory's daily output (in units) has mean 100 and variance 25. What is the standard deviation, and roughly what range covers most days (mean ± 2 standard deviations)?
Quiz
Summary
- Var(X) = E[(X−μ)²] = E[X²] − (E[X])² measures the average squared deviation from the mean.
- Standard deviation σ = √Var(X) restores the original units.
- Variance scales quadratically under linear transformations: Var(aX+b) = a²Var(X).
References
- WebsiteWikipedia — Variance
Mathematics