Two classes can have the same average mark and still look very different. In one, every student scores close to the average; in the other, marks are scattered from very low to very high. The mean cannot tell these apart. Variance and standard deviation can: they measure how far the values typically sit from the mean.

Variance is the average of the squared deviations from the mean. Standard deviation (SD, written σ) is the positive square root of the variance, which brings the answer back to the same units as the data. If marks are in points, the SD is in points and the variance is in points squared.

Variance σ² = Σ(x − x̄)² ÷ n • SD σ = √variance

Here x̄ is the mean and n is the number of values. Squaring each deviation does two jobs: it stops positive and negative deviations from cancelling out, and it gives extra weight to values far from the mean.

Work in three steps: find the mean, square each value's distance from it, and average those squares.

Worked example 1: five scores

Find the variance and SD of 4, 8, 6, 10 and 12.

Step 1: the mean is (4 + 8 + 6 + 10 + 12) ÷ 5 = 40 ÷ 5 = 8.

Step 2: the deviations are −4, 0, −2, 2 and 4. Their squares are 16, 0, 4, 4 and 16, which add to 40.

Step 3: variance = 40 ÷ 5 = 8, so SD = √8 = 2√2 ≈ 2.83.

The deviations always add to zero, here −4 + 0 − 2 + 2 + 4 = 0. That makes a useful check that the mean was right before you start squaring.

Leaving the SD as 2√2 is often fine, because exam options are usually written in surd form.

When the mean is not a whole number, deviations become messy decimals. A shortcut avoids them entirely:

Variance = (mean of the squares) − (square of the mean) = Σx² ÷ n − x̄²

Worked example 2: the same five scores

The squares of 4, 8, 6, 10 and 12 are 16, 64, 36, 100 and 144, adding to 360. Their mean is 360 ÷ 5 = 72. Subtract the square of the mean: 72 − 8² = 72 − 64 = 8, matching the deviation method.

A handy memory line: the variance is the mean of the squares minus the square of the mean. The order matters. Squaring first and averaging second always gives the larger number, so the result can never come out negative.

When values repeat, multiply each squared deviation by its frequency f and divide by the total frequency N = Σf.

Worked example 3: a frequency table

x12345
f23532

N = 15 and the mean is (2 + 6 + 15 + 12 + 10) ÷ 15 = 45 ÷ 15 = 3, as the symmetry suggests. The squared deviations are 4, 1, 0, 1 and 4; weighted by frequency they add to 8 + 3 + 0 + 3 + 8 = 22. Variance = 22 ÷ 15 ≈ 1.467.

The SD is √(22 ÷ 15) ≈ 1.21. For grouped data in class intervals, use each class's midpoint as x and proceed the same way.

These are the most tested properties, because they turn long calculations into one line.

  • Change of origin. Adding or subtracting the same number from every value shifts the whole data set without changing its spread. The mean moves; the variance and SD do not.
  • Change of scale. Multiplying every value by k multiplies the SD by |k| and the variance by k². Dividing by k divides the SD by |k|.

Worked example 4: shifting the data

Find the SD of 10, 12, 12, 12, 13, 13, 15 and 17.

The mean is 104 ÷ 8 = 13. The squared deviations are 9, 1, 1, 1, 0, 0, 4 and 16, adding to 32, so the variance is 32 ÷ 8 = 4 and the SD is 2. Subtracting 8 from every value gives 2, 4, 4, 4, 5, 5, 7 and 9, with mean 5 and the same SD of 2. Only the origin moved.

Worked example 5: a linear change

The SD of x is 2. What is the SD of y = 5 − 3x? The 5 changes only the origin, and the −3 scales the spread by |−3| = 3. So SD(y) = 3 × 2 = 6, and the variance of y is 36.

Two special cases follow directly. The variance of a constant is zero, since nothing deviates. And for the first n natural numbers 1, 2, …, n, the variance is (n² − 1) ÷ 12.

For the first 10 natural numbers that is 99 ÷ 12 = 8.25.

SD alone cannot compare two groups with very different means. A spread of 10 runs means a lot for a batsman averaging 20 and much less for one averaging 80. The coefficient of variation (CV) expresses the SD as a percentage of the mean:

CV = SD ÷ mean × 100

Worked example 6: which batsman is more consistent?

Batsman A averages 50 with an SD of 10, so his CV is 10 ÷ 50 × 100 = 20%.

Batsman B averages 40 with an SD of 6, a CV of 6 ÷ 40 × 100 = 15%. B has the lower CV, so B is more consistent, even though A scores more on average.

  • ✘ Reporting the variance when the question asks for the SD, or the reverse.
  • ✘ Changing the SD when a constant is added to every value. Shifts leave the spread alone.
  • ✘ Multiplying the variance by k instead of k² after a change of scale.
  • ✘ Giving a negative SD after multiplying by a negative number. Use the absolute value.
  • ✘ Dividing by n − 1 when the question means the whole group. With n − 1, worked example 1 would give 40 ÷ 4 = 10 instead of 8.

For the measures of centre that variance is built around, see mean, median and mode, and for averages of groups see weighted average.

Q1. What is the variance of 2, 4, 6, 8 and 10? easy

✅ Answer: (b) 8

💡 Explanation: The mean is 6. The deviations are −4, −2, 0, 2 and 4; their squares add to 16 + 4 + 0 + 4 + 16 = 40, and 40 ÷ 5 = 8. 2√2 is the standard deviation, not the variance.

Q2. The standard deviation of a data set is 4. If 10 is added to every value and the result is multiplied by 5, what is the new standard deviation? medium

✅ Answer: (b) 20

💡 Explanation: Adding 10 moves every value by the same amount and leaves the spread unchanged. Multiplying by 5 multiplies the SD by 5: 4 × 5 = 20.

Q3. The variance of x is 9. What is the variance of y = 7 − 2x? medium

✅ Answer: (c) 36

💡 Explanation: The 7 changes only the origin. Multiplying by −2 multiplies the variance by (−2)² = 4, so the new variance is 4 × 9 = 36. Variance is never negative.

Q4. What is the variance of the first 7 natural numbers? medium

✅ Answer: (a) 4

💡 Explanation: For 1, 2, …, n the variance is (n² − 1) ÷ 12. With n = 7 that is 48 ÷ 12 = 4, so the SD is 2.

Q5. A data set has mean 60 and standard deviation 12. What is its coefficient of variation? easy

✅ Answer: (c) 20%

💡 Explanation: CV = SD ÷ mean × 100 = 12 ÷ 60 × 100 = 20%.

Should I divide by n or by n − 1?

Divide by n when the data is the whole group you are describing, which is what aptitude questions almost always intend. Dividing by n − 1 gives the sample variance, used in statistics when the data is a sample standing in for a larger population. If a question does not say 'sample', use n.

Can the standard deviation be zero or negative?

It can be zero, but only when every value is the same, because then no value deviates from the mean. It can never be negative: variance is an average of squares, and the SD is its positive square root.

How is this different from mean deviation?

Mean deviation averages the distances from the mean while ignoring their signs. Variance squares the deviations instead, which weights large deviations more heavily, and the SD takes the square root to return to the original units.

All problems and solutions on this page are original. No outside facts are relied on; every numeric answer is recomputed by software before publishing.

How this page was prepared. Drafted with AI assistance (Claude (Anthropic AI model)) from the sources listed above. 19 calculations on this page were recomputed by software and matched. Automated checks also covered structure, internal links and duplicate text. Software checks cannot confirm facts.

Found an error? Report it and we will correct the page.