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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 . 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 , and take the square root.
A table helps with larger sets: a column for , a column for , and a column for , 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 . [1 mark]
- Cue. .
Q2. Find the standard deviation of to 1 decimal place. [3 marks]
- Cue. Mean ; squared deviations ; .
Q3. Set A has mean , SD ; Set B has mean , SD . 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 , to 1 decimal place.Show worked answer →
The mean is . Using , find the squared deviations: , summing to (2 marks). Then (1 mark). So to 1 decimal place (1 mark). Markers reward the squared deviations, dividing by , and the rounded value.
SQA National 5 20223 marksSample P has mean and standard deviation . Sample Q has mean and standard deviation . Compare the two samples.Show worked answer →
The means are equal at , so on average the two samples are the same (1 mark). Sample P has a smaller standard deviation ( against ), 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
- Calculating the five-figure summary (minimum, lower quartile, median, upper quartile, maximum), the range and interquartile range, drawing boxplots, and comparing two data sets.
A focused answer to the SQA National 5 Mathematics statistics content, covering the five-figure summary, the median and quartiles, the range and interquartile range, drawing and reading boxplots, and comparing two data sets by their average and spread.
- Drawing and interpreting scattergraphs, describing correlation, drawing a line of best fit, finding its equation and using it to estimate values.
A focused answer to the SQA National 5 Mathematics scattergraph content, covering plotting and interpreting scattergraphs, describing positive, negative and no correlation, drawing a line of best fit, finding its equation, and using it to estimate values.
- Calculating percentage increase and decrease, finding the original amount in reverse percentage problems, and using a multiplier for repeated percentage change including appreciation, depreciation and compound interest.
A focused answer to the SQA National 5 Mathematics percentages content, covering percentage increase and decrease using a multiplier, reverse percentage problems to find an original amount, and repeated percentage change such as compound interest, appreciation and depreciation.
- Calculating with fractions: adding, subtracting, multiplying and dividing fractions and mixed numbers, and finding a fraction of a quantity.
A focused answer to the SQA National 5 Mathematics fractions content, covering adding and subtracting fractions with a common denominator, multiplying and dividing fractions, working with mixed numbers, and finding a fraction of a quantity, all for non-calculator work.
- Working with vectors in two and three dimensions: vector components, adding and subtracting vectors, multiplying by a scalar, and calculating the magnitude of a vector.
A focused answer to the SQA National 5 Mathematics vectors content, covering vectors in component form, adding and subtracting vectors, multiplying a vector by a scalar, and finding the magnitude of a vector in two and three dimensions.
Sources & how we know this
- SQA National 5 Mathematics Course Specification — SQA (2018)