Mean & variance
A skill in Probability & statistics, part of CSCA Mathematics. Here is the idea, the method step by step and the formulas you need.
On the exam
Our rough estimate from the official CSCA syllabus.
The idea
Variance = the average squared distance from the mean; standard deviation = √variance.
y = ax + b: mean a·x̄ + b, variance a²s².
Statistics in CSCA asks you to describe data with numbers. The mean x̄ shows the centre. The variance s² shows the spread: it is the mean of the squared distances from the mean. The standard deviation s is the square root of the variance, in the same units as the data. A small variance means the data sit close together.
To find the variance, first find the mean. Then, for each value, find its distance from the mean, square it, and take the mean of these squares. With a frequency table, weight each squared distance by its frequency. Medians, modes and percentiles appear too, so always sort the data first.
A favourite question changes every value in the same way. If every value is multiplied by a and then b is added, the new mean is a·x̄ + b, but the new variance is a²s². Adding b moves all the data together and does not change the spread at all.
Step by step
- meanx̄ = x₁ + … + xₙn
- variances² = the average of (x − x̄)²
- ax + bmean × a + b, variance × a²
- tableweight each value by its frequency
The full lesson in SAVVY takes about 4 minutes: worked examples, things to remember and common traps.
Worked examples
Example 1
Find the mean and the variance (the mean of the squared distances from the mean) of 3, 5, 7.
- mean3 + 5 + 73 = 5
- squared distances4, 0 and 4
- variance4 + 0 + 43 = 83
- answermean 5, variance 83
Example 2
Find the median of 12, 7, 9, 15, 10, 8.
- sort7, 8, 9, 10, 12, 15
- middle two9 and 10
- median9 + 102 = 9.5
- answer9.5
Common mistakes
- Scaling the variance like the mean. If every value is tripled, the variance is multiplied by 3² = 9, and the standard deviation by 3.
- Thinking a shift changes the spread. Adding 5 to every value moves the whole set 5 to the right; the distances between the values stay the same.
- Forgetting to square the distances. The plain distances from the mean always add up to 0. Square them first, then take the mean.
Try it yourself
Every value of a data set is increased by 5. The old mean was 12 and the old standard deviation was 2. Find the new mean and the new standard deviation.
Show answer
- mean12 + 5 = 17
- spreada shift does not change it, so the standard deviation stays 2
- answermean 17, standard deviation 2
Key formulas
Mean and variance
x̄ = (x₁ + … + xₙ)/ns² = [(x₁ − x̄)² + … + (xₙ − x̄)²]/n
When it helps: Variance measures how spread out the data is.
Example: 2, 4, 6: x̄ = 4, s² = 8/3.
Changing the data
yᵢ = axᵢ + b ⇒ȳ = a x̄ + b
s_y² = a² s_x²
When it helps: Adding b moves the mean but doesn't change the spread.
Example: Variance 2: the variance of 3x + 1 is 9 × 2 = 18.
Expected value
E(X) = x₁p₁ + x₂p₂ + …binomial B(n, p): E = np, D = np(1 − p)
When it helps: The average result over many tries.
Example: X ~ B(10, 0.3): E = 3, D = 2.1.
Learn first
Helps with
Other topics in Probability & statistics
Practise mean & variance free
SAVVY has practice questions on this topic with step-by-step explanations, a full lesson and an AI tutor that explains where you went wrong. Free to start.
Practise this topic free →