STEM-TutorLearn • Practice • ExcelBook Free DemoFree demo

Standard deviation, explained with examples

Standard deviation tells you how spread out data is around its mean. It is one of the most used numbers in statistics, from exam grades to scientific experiments.

On this page
  1. What standard deviation measures
  2. The formulas
  3. Why divide by n − 1?
  4. Step-by-step calculation
  5. How changes to data affect the standard deviation
  6. The empirical rule
  7. Interpreting standard deviation in context
  8. Common mistakes
  9. Practice questions
  10. Frequently asked questions
  11. Key takeaways
  12. Related guides

What standard deviation measures

Two classes can both have a mean test score of 70. In one class, everyone scored between 65 and 75. In the other, scores ranged from 30 to 100. The mean is the same, but the spread is very different. Standard deviation measures that spread: roughly, it is the typical distance of a data value from the mean. A small standard deviation means values cluster tightly around the mean; a large one means they are widely spread.

The formulas

Population standard deviation: σ = √( Σ(x − μ)² / N ), where μ is the population mean and N is the population size.

Sample standard deviation: s = √( Σ(x − x̄)² / (n − 1) ), where x̄ is the sample mean and n is the sample size.

The variance is the square of the standard deviation: σ² or s². Variance is useful in theory, because variances of independent variables add, but standard deviation is easier to interpret because it has the same units as the data.

Why divide by n − 1?

When you work with a sample, you measure distances from the sample mean, not the true population mean. The sample mean is, by definition, the centre of your particular data, so the distances to it are slightly smaller on average than distances to the true mean would be. Dividing by n − 1 instead of n corrects for this, making s² an unbiased estimate of the population variance. This adjustment is called Bessel's correction. In AP Statistics, you almost always work with samples, so s with n − 1 is the default.

Step-by-step calculation

Example 1: a sample

Find the sample standard deviation of 4, 8, 6, 5, 7.

Example 2: the same data as a population

If 4, 8, 6, 5, 7 were the whole population, find σ.

Example 3: a frequency table

Scores: 1 (frequency 2), 2 (frequency 5), 3 (frequency 3). Find the population standard deviation.

How changes to data affect the standard deviation

Example 4: a linear transformation

Temperatures in a city have mean 20 °C and standard deviation 5 °C. Find the mean and standard deviation in °F, using F = 1.8C + 32.

-3-2-10123P(Z > 1)z (standard deviations from the mean)
The standard normal curve. Probabilities are areas under the curve; the shaded area is the probability of a value more than one standard deviation above the mean (about 0.16).

The empirical rule

For data that is approximately normal (bell-shaped and symmetric), about 68% of values lie within one standard deviation of the mean, about 95% within two, and about 99.7% within three. This is also called the 68-95-99.7 rule. It gives a quick sense of what counts as unusual: a value more than two standard deviations from the mean is in the outer 5% or so.

Example 5: using the empirical rule

Heights of adult women are approximately normal with mean 162 cm and standard deviation 6 cm. Roughly what percentage are between 150 cm and 174 cm?

Interpreting standard deviation in context

On AP free-response questions, you may be asked to interpret a standard deviation. A strong answer uses context and the word “typically”: “The commute times typically vary by about 8 minutes from the mean of 32 minutes.” Avoid saying all values are within one standard deviation; many are not.

Common mistakes

Practice questions

Try each one before opening the answer.

Q1. Find the sample standard deviation of 2, 4, 4, 4, 5, 5, 7, 9.

Show answer
Mean 5; sum of squares 32; s² = 32/7 ≈ 4.57; s ≈ 2.14.

Q2. Every value in a data set is doubled. What happens to the standard deviation?

Show answer
It doubles.

Q3. A data set has variance 16. What is its standard deviation?

Show answer
4.

Q4. Can a standard deviation be negative?

Show answer
No. It is a square root of an average of squares, so it is at least 0. It equals 0 only when all values are the same.

Q5. Test scores are approximately normal with mean 70 and SD 10. About what percentage are above 90?

Show answer
90 is 2 SDs above, so about 2.5%.

Frequently asked questions

What is a good standard deviation?

There is no universal answer. It depends on the context and the size of the mean. Comparing the standard deviation with the mean, or with another data set, is more useful than looking at it alone.

Is standard deviation on the AP Statistics exam?

Yes. It appears in Unit 1 for describing data and throughout the course in sampling distributions, confidence intervals and tests.

Is it in GCSE or A level Maths?

Standard deviation is part of A level Maths statistics. GCSE uses the range and interquartile range instead.

Key takeaways