Variance of a Discrete Random Variable
Calculate variance using probability weights. Distinguish standard deviation from variance.
6 min · Statistics and probability · Intermediate
Learning goals
- Calculate variance using probability weights.
- Distinguish standard deviation from variance.
Understand the concept
For a discrete random variable X with finite possible values x and probabilities p(x), its mean μ is Σxp(x). Its variance is Σ(x − μ)²p(x), the probability-weighted squared distance from the mean.
An equivalent formula is E[X²] − μ². Standard deviation is the square root of variance and has the same units as X. Probabilities must sum to one.
Worked example 1
For X equal to 0 or 4 with probability 1/2 each, μ = 2 and variance = 4.
Worked example 2
For a constant X = 7, the variance and standard deviation are both zero.
Check your understanding
UNVRST English edition · Educational support · Editorial policy