Skip to main content
ScotlandMathsSyllabus dot point

How do you calculate the standard deviation of a data set and use it to compare the spread of two data sets?

Calculating the standard deviation of a data set using the standard formula, and using the mean and standard deviation to compare two data sets.

A focused answer to the SQA National 5 Mathematics standard deviation content, covering how to calculate the standard deviation with the National 5 formula, what it measures, and how to compare two data sets using the mean and standard deviation together.

Generated by Claude Opus 4.810 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. What standard deviation measures
  3. The formula
  4. Calculating step by step
  5. Comparing data sets
  6. Examples in context
  7. Try this

What this dot point is asking

The SQA wants you to calculate the standard deviation of a data set using the National 5 formula, understand that it measures how spread out the data is about the mean, and use the mean together with the standard deviation to compare two data sets.

What standard deviation measures

The mean tells you the typical value of a data set, but not how varied it is. Two sets can share a mean yet be very different: one tightly bunched, the other widely scattered. Standard deviation captures that spread by measuring, on average, how far the values lie from the mean. A small standard deviation means consistent, clustered data; a large one means variable, spread-out data.

The formula

National 5 uses the sample standard deviation, dividing by n1n - 1. Two equivalent forms appear on the formula sheet; the deviation form below is the clearest to follow.

Calculating step by step

The deviation method follows a clear sequence: find the mean, find each value's deviation from it, square the deviations, add them, divide by n1n - 1, and take the square root.

A table helps with larger sets: a column for xx, a column for xxˉx - \bar{x}, and a column for (xxˉ)2(x - \bar{x})^2, then total the last column.

Comparing data sets

A complete comparison quotes both the mean and the standard deviation, and explains what each says. The means compare the typical values; the standard deviations compare the consistency. The smaller standard deviation belongs to the more consistent set.

Examples in context

Standard deviation is the standard measure of reliability. A manufacturer comparing two production lines prefers the one with the smaller standard deviation, because its output varies less. Investors use it to judge how risky a return is, since a larger standard deviation means more uncertainty. Exam boards use it to see how varied a cohort's marks are about the average.

Try this

Q1. Find the mean of 4,6,8,10,124, 6, 8, 10, 12. [1 mark]

  • Cue. 405=8\dfrac{40}{5} = 8.

Q2. Find the standard deviation of 3,5,73, 5, 7 to 1 decimal place. [3 marks]

  • Cue. Mean 55; squared deviations 4,0,44, 0, 4; s=82=2.0s = \sqrt{\tfrac{8}{2}} = 2.0.

Q3. Set A has mean 2020, SD 22; Set B has mean 2020, SD 77. Which is more consistent? [1 mark]

  • Cue. Set A, because its standard deviation is smaller.

Exam-style practice questions

Practice questions written in the style of SQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

SQA National 5 20194 marksCalculate the standard deviation of the data 2,4,5,6,82, 4, 5, 6, 8, to 1 decimal place.
Show worked answer →

The mean is 2+4+5+6+85=5\dfrac{2 + 4 + 5 + 6 + 8}{5} = 5. Using s=(xxˉ)2n1s = \sqrt{\dfrac{\sum(x - \bar{x})^2}{n - 1}}, find the squared deviations: (3)2,(1)2,02,12,32=9,1,0,1,9(-3)^2, (-1)^2, 0^2, 1^2, 3^2 = 9, 1, 0, 1, 9, summing to 2020 (2 marks). Then s=2051=5s = \sqrt{\dfrac{20}{5 - 1}} = \sqrt{5} (1 mark). So s=2.2s = 2.2 to 1 decimal place (1 mark). Markers reward the squared deviations, dividing by n1n - 1, and the rounded value.

SQA National 5 20223 marksSample P has mean 5050 and standard deviation 33. Sample Q has mean 5050 and standard deviation 99. Compare the two samples.
Show worked answer →

The means are equal at 5050, so on average the two samples are the same (1 mark). Sample P has a smaller standard deviation (33 against 99), so its data is more consistent and clustered closer to the mean; Sample Q is more spread out (1 mark). A full comparison states both the average and the spread in context (1 mark). Markers reward comparing the means and the standard deviations with a clear conclusion about consistency.

Related dot points

Sources & how we know this