16.3 Calculations from Frequency Tables
OCR A-level Maths Statistics and Mechanics Year 1 (AS) · H240 · Chapter 16: Working with Data
What is in the full lesson (21 activities)
Every item below opens free in the course.
- Video: Find the mean: example 1
- Video: Find the mean: example 2
- Video: Find the mean: example 3
- Video: Find the mean: example 4
- Video: Find the mean: example 5
- Video: Introduction to median
- Video: Find the median: example 1
- Video: Find the median: example 2
- Video: Find the median: example 3
- Video: Find the median: example 4
- Video: Find the median: example 5
- Video: Introduction to mode
- Video: Find the mode: example 1
- Video: Find the mode: example 2
- Video: Find the mode: example 3
- Notes: Lesson notes: Calculations from Frequency Tables
- Interactive lesson: Interactive lesson: Mean, Median and Mode Balance
- Interactive lesson: Interactive practice: Calculations from Frequency Tables Practice
- Practice questions: Practice questions (8 questions, 15 marks)
- Worksheet: Worksheet: Calculations from Frequency Tables
- Answers: Answers and mark scheme of the Worksheet: Calculations from Frequency Tables
A free OCR A-level Maths SM Year 1 lesson for OCR A Level Mathematics A (H240) from OBA School: mean, median and standard deviation from ungrouped and grouped frequency tables (OCR H240: 2.02f, 2.02g). Watch the video, read the explanation and worked examples, then try the revision questions. You can work through the full lesson, with more videos, an interactive lesson, a practice quiz and printable worksheets, in our free online course.
What you will learn
- Find the median, mean and standard deviation from a discrete frequency table
- Estimate the mean and standard deviation of grouped data using midpoints
- Find class boundaries and midpoints for rounded data and ages
- Estimate the median of grouped data and choose a suitable average
Key words
- Frequency table: A table that shows how many times each value, or each class of values, occurs.
- Midpoint: The value halfway between the class boundaries; it stands in for every value in the class.
- Class boundaries: The true lower and upper limits of a class once rounding is taken into account.
- Modal class: The class with the highest frequency (the highest frequency density when widths differ).
- Skew: A lack of symmetry. With positive skew the long tail is on the right and the mean is above the median.
Discrete frequency tables
When each value x occurs f times, the totals are weighted by the frequencies. Your calculator can do this in its statistics mode, but you must be able to show the working.
Key fact: x̅ = (Σ fx)/(Σ f) σ² = (Σ fx²)/(Σ f) − x̅²
- Frequency, f; 1 28; 2 15; 3 9; 4 6; 5 2; Total 60
- fx; 1 28; 2 30; 3 27; 4 24; 5 10; Total 119
- fx²; 1 28; 2 60; 3 81; 4 96; 5 50; Total 315
Worked example: passengers in cars
The table shows the number of people in each of 60 cars passing a junction.
Median: the 30.5th value. Cumulative frequencies 28, 43, ... so the 29th to 43rd values are all 2. Median = 2.
x̅ = 119/60 = 1.983 σ² = 315/60 − (119/60)² = 1.316
Answer: median 2, mean 1.98, standard deviation √1.316 = 1.15 people
Grouped data: estimating the mean and standard deviation
Once data are grouped, the exact values are lost. Assume every value in a class lies at the midpoint, and use the midpoints as x. The answers are estimates.
Worked example: journey times
100 workers record the time, t minutes, of their journey to work: 0 ≤ t < 10 (14), 10 ≤ t < 20 (31), 20 ≤ t < 30 (25), 30 ≤ t < 45 (18), 45 ≤ t < 60 (12).
Midpoints 5, 15, 25, 37.5, 52.5. Σ fx = 2465, Σ fx² = 81337.5
t̅ ≈ 2465/100 = 24.65 σ² ≈ 81337.5/100 − 24.65² = 205.75
Answer: mean about 24.7 minutes, standard deviation about 14.3 minutes
Class boundaries for rounded data and ages
Look carefully at how the data were recorded before finding midpoints.
- Heights to the nearest cm, class 150 to 154: boundaries 149.5 and 154.5, midpoint 152.
- Ages in completed years, class 16 to 29: a person is in this class from their 16th birthday until just before their 30th, so the boundaries are 16 and 30 and the midpoint is 23.
- Masses written as 20 ≤ m < 30: the boundaries are exactly as written, midpoint 25.
Worked example: ages from a census-style table
The ages of 100 residents of a ward: 0 to 15 (18), 16 to 29 (15), 30 to 44 (21), 45 to 64 (26), 65 to 89 (20).
Midpoints 8, 23, 37.5, 55, 77.5 (from the boundaries in the diagram).
Σ fx = 144 + 345 + 787.5 + 1430 + 1550 = 4256.5
Answer: estimated mean age = 4256.5/100 = 42.6 years
Median of grouped data and choosing an average
Estimate the median of grouped data by linear interpolation inside the class that contains the middle value, using position n/2.
Worked example: median journey time
For the journey times, n/2 = 50. Cumulative frequencies: 14, 45, 70, 88, 100, so the median is in 20 ≤ t < 30.
Median ≈ 20 + (50 − 45)/25 × 10 = 22 minutes
Answer: median about 22 minutes, below the mean of 24.65 minutes
- Mean; Use it when Data are roughly symmetrical; Comment Uses every value; pulled by extreme values
- Median; Use it when Data are skewed or have outliers; Comment Not affected by extreme values
- Mode or modal class; Use it when Data are categorical, or the most common value is wanted; Comment May not be unique
The long tail of journeys over 45 minutes pulls the mean up, so the data have positive skew and the median of 22 minutes better describes a typical journey. Quote the mean with the standard deviation and the median with the IQR.
Common mistakes
- Dividing Σ fx by the number of classes instead of by Σ f.
- Using Σ (fx)² instead of Σ fx²: square x first, then multiply by f.
- Using class widths, upper boundaries or frequencies in place of midpoints.
- Taking the midpoint of the class 16 to 29 (ages) as 22.5 instead of 23.
- Giving an estimate from grouped data as if it were exact.
Revision questions
Try these, then check your answers below each one.
Question 1. The values 1, 2, 3, 4 occur with frequencies 4, 6, 7, 3. Find the mean.
Answer: 2.45
Working: Σ fx = 4 + 12 + 21 + 12 = 49, Σ f = 20, mean = 2.45.
Question 2. For the same table (values 1, 2, 3, 4 with frequencies 4, 6, 7, 3), find the standard deviation, to 3 significant figures.
Answer: 0.973
Working: σ² = 139/20 − 2.45² = 0.9475, σ = 0.973.
Question 3. For the same table (values 1, 2, 3, 4 with frequencies 4, 6, 7, 3), find the median.
Answer: 2.5
Working: Cumulative frequencies 4, 10, 17, 20: the 10th value is 2 and the 11th is 3, so the median is 2.5.
Related lessons
- Previous lesson: 16.2 Standard Deviation
- Next lesson: 16.4 Scatter Diagrams and Correlation
- In this chapter: 16.1 A Reminder of Statistical Diagrams
- In this chapter: 16.5 Outliers and Cleaning Data
Continue in the full course
This lesson is section 16.3 of our free OCR A-level Maths Statistics and Mechanics Year 1 (AS) course. In the full course you get every video for this section, an animated interactive lesson, a self-marking practice quiz, a printable worksheet with a mark scheme, an end-of-chapter test and your progress saved.
Continue lesson 16.3 in the free course →