Practice free
Unit 11 · Probability and statistics

Variance of random variables

Grade 11 (Algebra 2) · PP. Probability distributions · 30 practice questions

How this works

Find each value's distance from the mean, square it, multiply by its probability, and add.

A random variable X takes the values 14, 20, and 26 with probabilities 0.25, 0.5, and 0.25. The mean of X is 20. What is the variance of X?

14: distance −6, squared
−6 × (−6) = 36
20: distance 0
0 × 0 = 0
26: distance 6, squared
6 × 6 = 36
Weight by the probabilities
0.25 × 36 + 0.5 × 0 + 0.25 × 36 = 18

Answer: 18

Watch out: Forgetting to square: 0.25 × (−6) + 0 + 0.25 × 6 = 0. Square the distances first (36 each), giving 18.

Try it

1. A random variable X takes the values 21, 25, and 29 with probabilities 0.25, 0.5, and 0.25. The mean of X is 25. What is the variance of X?

2. A random variable X takes the values 32, 36, and 40 with probabilities 0.25, 0.5, and 0.25. The mean of X is 36. What is the variance of X?

3. A random variable X takes the values 38, 50, and 62 with probabilities 0.25, 0.5, and 0.25. The mean of X is 50. What is the variance of X?

Answers are checked in the free account — with a hint before the answer, and the full solution after a miss.

How to help at home

A variance weighs how far each value of a random variable sits from its mean, squares those distances, and then averages them with the probabilities as weights. The middle value sits right on the mean and contributes nothing, while the two outer values each sit 4 away and between them carry a weight of 0.5: 4 × 4 = 16, 16 × 0.5 = 8, which is the variance.

More in PP. Probability distributions