Measurement, Space & Statistics

Comparing Data and Relative Frequency

Year 9

  • ✓By the end of this lesson students will be able to calculate relative frequency from given data.
  • ✓By the end of this lesson students will be able to compare two data sets using measures of centre (mean, median) and spread (range, interquartile range).
  • ✓By the end of this lesson students will be able to interpret and draw conclusions from comparisons of data sets.
  • ✓By the end of this lesson students will be able to understand the relationship between relative frequency and probability.

Key concepts

Relative Frequency

Relative frequency is the proportion of times a particular event or outcome occurs within a data set. It is calculated by dividing the frequency of that outcome by the total number of observations. Relative frequency provides an estimate of the probability of an event occurring based on observed data.

Relative Frequency = (Frequency of outcome) / (Total number of observations)
Comparing Data Sets

When comparing two or more data sets, we analyse their similarities and differences to draw meaningful conclusions. This typically involves comparing measures of centre (such as the mean or median) to understand the typical value, and measures of spread (such as the range or interquartile range) to understand the variability or consistency of the data. Visual displays like back-to-back stem-and-leaf plots and box plots are powerful tools for visual comparison.

Key facts to remember

  • 1Relative frequency is calculated as (Frequency of outcome) / (Total number of observations).
  • 2Relative frequency provides an estimate of the probability of an event.
  • 3Measures of centre (mean, median) describe the typical or average value of a data set.
  • 4Measures of spread (range, interquartile range) describe the variability or consistency within a data set.
  • 5The mean is affected by outliers, while the median is more resistant to them.
  • 6The range is the difference between the highest and lowest values.
  • 7The interquartile range (IQR) is the difference between the upper quartile (Q3) and the lower quartile (Q1), representing the spread of the middle 50% of the data.
  • 8Visual displays like back-to-back stem-and-leaf plots and box plots are effective for comparing data sets.

Worked examples

Example 1

A survey asked 80 students about their favourite colour. The results are shown in the table below. Calculate the relative frequency for each colour, expressing your answers as decimals rounded to two decimal places.

IFirst, confirm the total number of observations. In this case, it is given as 80 students.
IIFor each colour, divide its frequency by the total number of observations (80).
IIIRed: 24 / 80 = 0.30
IVBlue: 20 / 80 = 0.25
VGreen: 16 / 80 = 0.20
VIYellow: 12 / 80 = 0.15
VIIPurple: 8 / 80 = 0.10
VIIICheck: The sum of relative frequencies should be 1 (or very close due to rounding): 0.30 + 0.25 + 0.20 + 0.15 + 0.10 = 1.00

Answer

Red: 0.30, Blue: 0.25, Green: 0.20, Yellow: 0.15, Purple: 0.10

Relative frequencies can also be expressed as fractions or percentages.

Example 2

Two Year 9 maths classes, Class A and Class B, took the same test. Their scores (out of 30) are listed below:\nClass A: 18, 22, 25, 15, 20, 23, 19, 26, 17, 21\nClass B: 16, 20, 21, 22, 24, 25, 19, 23, 18, 27\nCompare the performance of the two classes using the mean and range.

I**For Class A:**
II1. Calculate the sum of scores: 18+22+25+15+20+23+19+26+17+21 = 206
III2. Calculate the mean: Mean = Sum / Number of scores = 206 / 10 = 20.6
IV3. Identify the highest score: 26
V4. Identify the lowest score: 15
VI5. Calculate the range: Range = Highest - Lowest = 26 - 15 = 11
VII**For Class B:**
VIII1. Calculate the sum of scores: 16+20+21+22+24+25+19+23+18+27 = 215
92. Calculate the mean: Mean = Sum / Number of scores = 215 / 10 = 21.5
103. Identify the highest score: 27
114. Identify the lowest score: 16
125. Calculate the range: Range = Highest - Lowest = 27 - 16 = 11
13**Comparison:**
14Class B has a slightly higher mean score (21.5) compared to Class A (20.6), indicating that, on average, Class B performed marginally better. Both classes have the same range (11), suggesting a similar spread or variability in their test scores.

Answer

Class A: Mean = 20.6, Range = 11. Class B: Mean = 21.5, Range = 11. Conclusion: Class B had a slightly higher average score, while both classes showed similar variability in scores.

Always state both the calculated measures and a clear comparative statement.

Example 3

The daily maximum temperatures (in °C) for two cities over 9 days in autumn are:\nCity P: 18, 20, 21, 22, 23, 24, 25, 26, 28\nCity Q: 17, 19, 20, 21, 23, 25, 26, 27, 29\nCompare the temperatures of the two cities using the median and interquartile range (IQR).

I**For City P:** (Data is already ordered)
II1. Number of data points (n) = 9
III2. Median (Q2): The middle value. Position = (n+1)/2 = (9+1)/2 = 5th value. Median = 23°C.
IV3. Lower Half: 18, 20, 21, 22. Q1 (median of lower half): (20+21)/2 = 20.5°C.
V4. Upper Half: 24, 25, 26, 28. Q3 (median of upper half): (25+26)/2 = 25.5°C.
VI5. IQR = Q3 - Q1 = 25.5 - 20.5 = 5°C.
VII**For City Q:** (Data is already ordered)
VIII1. Number of data points (n) = 9
92. Median (Q2): The middle value. Position = (n+1)/2 = (9+1)/2 = 5th value. Median = 23°C.
103. Lower Half: 17, 19, 20, 21. Q1 (median of lower half): (19+20)/2 = 19.5°C.
114. Upper Half: 25, 26, 27, 29. Q3 (median of upper half): (26+27)/2 = 26.5°C.
125. IQR = Q3 - Q1 = 26.5 - 19.5 = 7°C.
13**Comparison:**
14Both City P and City Q have the same median daily maximum temperature of 23°C, indicating a similar typical temperature. However, City Q has a larger interquartile range (7°C) compared to City P (5°C). This suggests that the middle 50% of temperatures in City Q are more spread out or variable than in City P.

Answer

City P: Median = 23°C, IQR = 5°C. City Q: Median = 23°C, IQR = 7°C. Conclusion: Both cities have the same median temperature, but City Q has a greater spread in its middle 50% of temperatures.

When calculating Q1 and Q3 for an odd number of data points, the median itself is not included in either the lower or upper half.

Common mistakes

  • ✗Confusing frequency with relative frequency; relative frequency is a proportion, not a count.
  • ✗Forgetting to divide by the total number of observations when calculating relative frequency.
  • ✗Only calculating one measure (e.g., just the mean) when asked to compare data sets, neglecting measures of spread.
  • ✗Incorrectly calculating the interquartile range (IQR), especially when dealing with an odd number of data points or misidentifying Q1 and Q3.
  • ✗Failing to provide a clear, comparative statement that interprets the calculated statistics in the context of the problem.

Exam tips

  • ★Always show full working for calculations of mean, median, range, and IQR to earn full marks, even if the final answer is incorrect.
  • ★When comparing data sets, explicitly state what each calculated measure (e.g., 'the mean indicates...', 'the IQR shows...') tells you about the data.
  • ★Read the question carefully to determine which measures of centre and spread are most appropriate for the data (e.g., median and IQR are often better for skewed data or data with outliers).
  • ★Ensure your conclusions are well-supported by the statistics you have calculated and directly address the question asked.

Ready to practise?

Try a problem on this topic

Snap a photo or type a question — get step-by-step working instantly.