Skip to content
SPM Tuition
Mathematics · Dispersion of ungrouped data

Finding variance and standard deviation

The formula has a square, a mean and a root, and the order keeps slipping.

The variance is the average of the squared distances from the mean, and the standard deviation is its square root. Both measure how far values sit from the mean.

This lesson is part of dispersion of ungrouped data. It follows calculating range and interquartile range.

What are the two formulas?

Method Formula Best when
Deviations σ² = Σ(x − μ)² ÷ N The mean is a whole number
Σx² σ² = Σx² ÷ N − μ² The values are large

The standard deviation is σ = √(σ²). Both methods give the same variance, which makes a good cross-check.

Worked example: 4, 6, 8, 10, 12

The mean is (4 + 6 + 8 + 10 + 12) ÷ 5 = 40 ÷ 5 = 8.

Deviation method. The deviations are −4, −2, 0, 2, 4. Squared: 16, 4, 0, 4, 16, which add to 40. The variance is 40 ÷ 5 = 8.

Σx² method. The squares are 16, 36, 64, 100, 144, which add to 360. Then 360 ÷ 5 − 8² = 72 − 64 = 8. The two methods agree.

The standard deviation is √8 = 2.83 (to two decimal places).

The slip that costs marks

The common slip is to subtract the mean instead of its square in the second method: 72 − 8 = 64. That gives a variance of 64, which is 8 times too large.

The check is quick. A variance of 64 would mean the typical distance from the mean is 8, but every value is at most 4 away. A standard deviation cannot exceed the largest distance from the mean, so 8 is impossible.

Reading the answer

A standard deviation of 2.83 means the values sit, in a typical sense, about 2.83 away from the mean of 8. A set with a smaller standard deviation is more tightly packed.

Standard deviation is never negative. If your working gives a negative variance, a sign slipped in the Σx² method, because the mean squared cannot exceed the mean of the squares.

Check yourself

Find the variance and standard deviation of 2, 3, 5, 6, 9.

Answer

Mean = 25 ÷ 5 = 5. Deviations: −3, −2, 0, 1, 4. Squared: 9, 4, 0, 1, 16, which add to 30. Variance = 30 ÷ 5 = 6.

Check with Σx²: 4 + 9 + 25 + 36 + 81 = 155, so 155 ÷ 5 − 25 = 31 − 25 = 6. Standard deviation = √6 = 2.45.

What to study next

Continue with comparing data sets using centre and spread. If squaring and roots still cause slips, try the algebra step repair trainer.

For a teacher to watch your working, see online one-to-one Mathematics tuition.

Common questions

What is the formula for variance?

Variance σ² = Σ(x − μ)² ÷ N, which is the average of the squared distances from the mean. An equivalent form is σ² = Σx² ÷ N − μ². Both give the same result, so use the one that gives easier arithmetic.

What is the standard deviation?

It is the square root of the variance, so it has the same unit as the data. A variance of 8 gives a standard deviation of about 2.83. The standard deviation is easier to interpret because the unit matches.

Why are the deviations squared?

The deviations from the mean add up to zero, because the positive and negative ones cancel. Squaring makes every term positive, so the spread is measured without cancelling. Taking the square root afterwards returns to the original unit.

Which formula is easier for an exam?

The deviation form is safer when the mean is a whole number. The Σx² form is faster when the values are large but needs careful squaring. Check with the other form on a short list if you have time.

If the formula is memorised but the arithmetic drifts, one-to-one lessons let a teacher watch your working and pick the method that makes fewer slips for you.

  • Online one-to-one lessons for your child with an experienced teacher.
  • Your first class is a one-hour trial, from RM50. The fee is agreed before you book.
  • Happy with the teacher? Continue with lessons of about 1.5 hours. If not, ask for another teacher.