Statistics · Topic 1 of 2
Comparing Data Sets
Theory
Candidates must calculate averages (mean or median) and measures of spread (Standard Deviation or Interquartile Range) to analyse data.
Crucial Update: The National 5 syllabus now requires the calculation of the Interquartile Range (IQR) (), having removed the Semi-Interquartile Range (SIQR).
Standard Deviation (): This measures how spread out data is around the mean. The formula is provided on the exam sheet in two forms:
and
Comparing Data
When comparing two datasets, you must provide two distinct statements using standard Qualifications Scotland phraseology:
- Compare the average (e.g., "On average, [Subject A] was higher/lower...").
- Compare the spread using standard deviation or IQR (e.g., "The data for [Subject A] was more/less consistent" or "more/less varied").
You must not just list the numbers; the context and comparative words are required.
The Golden Rule: a comparison always needs two statements — one about the average (which is bigger) and one about the spread (which is more consistent). A smaller standard deviation or IQR means the data is more consistent / less spread out.
⚠️ Common Examiner Traps
- Divide by : the standard-deviation formula uses , not .
- Even-sized data: with an even number of values the median is the average of the two middle numbers, and the halves for the quartiles do not include a shared middle value.
- Context and comparison words: “more consistent”, “on average higher” — bare numbers with no comparison earn no marks.
- Order the data first: quartiles and the median only work on data written from smallest to largest.
Worked examples
Example 1
Find the mean and standard deviation of the dataset: 2, 4, 6, 8, 10.
Step 1: Calculate the mean ():
Step 2: Calculate for each value:
Step 3: Sum these values ():
Step 4: Substitute into the formula (, so ):
Answer: .
Example 2
A teacher compares the test results of two classes. Class A has a mean of 65% and a standard deviation of 4.2. Class B has a mean of 72% and a standard deviation of 1.8. Make two valid comparisons.
Statement 1 (Average): On average, the test scores in Class B were higher ().
Statement 2 (Spread): The test scores in Class B were more consistent (or less varied) because their standard deviation is lower ().
Example 3
Calculate the median and Interquartile Range (IQR) for the following set of data: 12, 15, 18, 20, 22, 25, 28.
Step 1: The data is already ordered from lowest to highest.
Step 2: Find the median (), which is the middle value:
Step 3: Find the lower quartile () by finding the median of the lower half (12, 15, 18):
Step 4: Find the upper quartile () by finding the median of the upper half (22, 25, 28):
Step 5: Calculate the IQR:
Answer: Median = 20, IQR = 10.
Example 4
Median & IQR of an Even-sized Set
Calculate the median and interquartile range of: 3, 5, 8, 9, 12, 14, 17, 20.
Step 1: There are 8 values (an even number), so the median is the average of the two middle values, the 4th and 5th:
Step 2: The lower half is 3, 5, 8, 9. Its median (the lower quartile) is the average of 5 and 8:
Step 3: The upper half is 12, 14, 17, 20. The upper quartile is the average of 14 and 17:
Step 4: The IQR is :
Answer: median = 10.5, IQR = 9.