16.1 A Reminder of Statistical Diagrams
OCR A-level Maths Statistics and Mechanics Year 1 (AS) · H240 · Chapter 16: Working with Data
What is in the full lesson (24 activities)
Every item below opens free in the course.
- Video: Types of Data
- Video: Introduction: Types of data
- Video: Types of Data example 1
- Video: Frequency distribution table example 1
- Video: Data represented in a grouped frequency table example 2
- Video: Data represented in a grouped frequency table example 3
- Video: Stem and Leaf example 1
- Video: Dh org and summ data stem and leaf example 2
- Video: Stem and Leaf example 3
- Video: Stem and Leaf example 4
- Video: Cumulative Frequency: example 1
- Video: Cumulative Frequency: example 2
- Video: Cumulative Frequency example 3
- Video: Histogram: example 1
- Video: Class width / Freq density and Histogram example 1
- Video: Class width / Freq density and Histogram example 2
- Video: Histogram Intro2
- Video: Histogram: Polygon
- Notes: Lesson notes: A Reminder of Statistical Diagrams
- Interactive lesson: Interactive lesson: Frequency Density Lab
- Interactive lesson: Interactive practice: A Reminder of Statistical Diagrams Practice
- Practice questions: Practice questions (8 questions, 12 marks)
- Worksheet: Worksheet: A Reminder of Statistical Diagrams
- Answers: Answers and mark scheme of the Worksheet: A Reminder of Statistical Diagrams
A free OCR A-level Maths SM Year 1 lesson for OCR A Level Mathematics A (H240) from OBA School: histograms, cumulative frequency graphs, box plots and stem-and-leaf diagrams, and choosing between them (OCR H240: 2.02a, 2.02b, 2.02i). 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
- Draw and interpret histograms using frequency density, where area represents frequency
- Use a cumulative frequency graph to estimate the median, quartiles and percentiles
- Draw and compare box plots, commenting on location and spread in context
- Read stem-and-leaf diagrams, including back-to-back diagrams
- Choose a suitable diagram for a data set and criticise a poor choice
Key words
- Frequency density: Frequency divided by class width. It goes on the vertical axis of a histogram.
- Class width: The difference between the upper and lower class boundaries, for example 10 for the class 20 ≤ t < 30.
- Cumulative frequency: The running total of the frequencies up to the upper boundary of each class.
- Quartiles: Q₁, Q₂ (the median) and Q₃ split the ordered data into four equal parts.
- Interquartile range: IQR = Q₃ − Q₁, the spread of the middle half of the data.
- Percentile: The kth percentile is the value below which k% of the data lie.
Histograms
A histogram shows grouped continuous data. The classes can have different widths, so the height of each bar is the frequency density and the area of each bar is proportional to the frequency. The bars touch, because the data are continuous.
Key fact: frequency density = frequency/(class width) area of bar ∝ frequency
Worked example: drawing a histogram
A survey records the distance, d km, that 120 workers in one local authority travel to work.
Classes: 0 ≤ d < 2 (18), 2 ≤ d < 5 (33), 5 ≤ d < 10 (40), 10 ≤ d < 20 (24), 20 ≤ d < 40 (5).
Frequency densities: 18 ÷ 2 = 9, 33 ÷ 3 = 11, 40 ÷ 5 = 8, 24 ÷ 10 = 2.4, 5 ÷ 20 = 0.25
Answer: Plot bars of heights 9, 11, 8, 2.4 and 0.25 over the class intervals (See the figure in the printable lesson notes).
To estimate how many values lie in part of a class, assume the values are spread evenly through the class. Then the number in a part of the bar is frequency density × width of that part.
Worked example: estimating from a histogram
Estimate the number of these workers who travel between 4 km and 12 km, and the probability that a worker chosen at random travels this far.
4 to 5 km: 11 × 1 = 11 5 to 10 km: 40 10 to 12 km: 2.4 × 2 = 4.8
Total = 11 + 40 + 4.8 = 55.8, so about 56 workers. Probability ≈ 55.8/120 = 0.465
Answer: about 56 workers; probability about 0.465
Cumulative frequency graphs
Plot each cumulative frequency at the upper class boundary and join the points with straight lines (or a smooth curve), starting from zero at the lowest boundary. For n values, read the median at n/2, the quartiles at n/4 and 3n/4, and the kth percentile at k% of n.
Worked example: median, quartiles and a percentile
200 people complete a puzzle. Times t minutes: 0 < t ≤ 10 (16), 10 < t ≤ 20 (44), 20 < t ≤ 30 (70), 30 < t ≤ 40 (48), 40 < t ≤ 60 (22).
Cumulative frequencies at 10, 20, 30, 40, 60: 16, 60, 130, 178, 200.
Median (100th value): 20 + (100 − 60)/70 × 10 = 25.7
Q₁ (50th): 10 + (50 − 16)/44 × 10 = 17.7 Q₃ (150th): 30 + (150 − 130)/48 × 10 = 34.2
90th percentile (180th): 40 + (180 − 178)/22 × 20 = 41.8
Answer: median 25.7 min, IQR 34.2 − 17.7 = 16.4 min, 90th percentile 41.8 min
Box plots and comparing data sets
A box plot shows the minimum, lower quartile, median, upper quartile and maximum. It makes two data sets easy to compare. A good comparison makes two points, each in context:
- location: compare the medians (what is typical)
- spread: compare the IQRs or ranges (how consistent the data are)
Worked example: comparing two routes
The box plots show journey times for a commuter using two routes to work.
Route A: median 22, IQR 25 − 18 = 7. Route B: median 20, IQR 21 − 19 = 2.
Answer: Route B has a lower median, so its journeys are usually quicker. Route B also has a much smaller IQR, so its journey times are more consistent.
Exam tip: Use the IQR, not the range, as the main measure of spread when there are extreme values: the range depends only on the two most extreme values.
Stem-and-leaf diagrams and choosing a diagram
A stem-and-leaf diagram keeps every data value and shows the shape. In a back-to-back diagram the leaves on the left are read from right to left. Always include a key. For n values, the median is the (n + 1)/2th value; here the quartiles are the medians of the lower and upper halves.
- 8 5 2; Stem 1; Leaves: evening shift 9
- 7 3 3 1; Stem 2; Leaves: evening shift 4 6 9
- 8 4 0; Stem 3; Leaves: evening shift 1 3 3 6
- 1; Stem 4; Leaves: evening shift 0 4
- ; Stem 5; Leaves: evening shift 2
Key: 3 | 2 | 6 means 23 minutes for the morning shift and 26 minutes for the evening shift.
Worked example: back-to-back stem-and-leaf
The diagram shows the time, in minutes, that 11 workers on each shift take to travel to work.
Morning: 12, 15, 18, 21, 23, 23, 27, 30, 34, 38, 41. Median = 6th value = 23. Q₁ = 18, Q₃ = 34.
Evening: 19, 24, 26, 29, 31, 33, 33, 36, 40, 44, 52. Median = 33. Q₁ = 26, Q₃ = 40.
Answer: The evening shift workers typically take longer (median 33 against 23); the spreads are similar (IQR 14 against 16).
- Bar chart, vertical line chart; Good for Discrete or categorical data; Weakness Not for continuous data
- Histogram; Good for Grouped continuous data, unequal classes, shape; Weakness Raw values are lost
- Cumulative frequency graph; Good for Medians, quartiles, percentiles of large grouped data; Weakness Shape harder to see
- Box plot; Good for Comparing two or more data sets; spotting skew; Weakness Hides detail such as gaps or two peaks
- Stem-and-leaf; Good for Small data sets; keeps raw values; Weakness Unwieldy for large data sets
Common mistakes
- Plotting frequency instead of frequency density when the classes have different widths.
- Plotting cumulative frequencies at the midpoints of the classes instead of the upper class boundaries.
- Comparing data sets with numbers only. Each comparison needs a statement in context, such as "usually quicker".
- Forgetting the key on a stem-and-leaf diagram, or reading the left-hand leaves of a back-to-back diagram in the wrong order.
- Using a histogram for discrete data such as the number of children in a family. Use a bar chart or vertical line chart.
Revision questions
Try these, then check your answers below each one.
Question 1. On a histogram, the class 15 ≤ t < 25 has frequency 40. Find the frequency density of its bar.
Answer: 4
Working: Class width = 25 − 15 = 10, so frequency density = 40 ÷ 10 = 4.
Question 2. A histogram has a bar for 10 ≤ x < 20 with frequency density 2.5 and a bar for 20 ≤ x < 50 with frequency density 0.8. Estimate the number of values between 15 and 30.
Answer: 20.5
Working: 2.5 × 5 + 0.8 × 10 = 12.5 + 8 = 20.5, so about 20 or 21 values.
Question 3. Which diagram is best for comparing the distributions of two large sets of continuous data? (Choose from: Box plots drawn on the same scale; Two pie charts; A vertical line chart; A scatter diagram.)
Answer: Box plots drawn on the same scale
Working: Box plots on a common scale show the medians and IQRs side by side, so they are easy to compare.
Related lessons
- Next lesson: 16.2 Standard Deviation
- In this chapter: 16.3 Calculations from Frequency Tables
- In this chapter: 16.4 Scatter Diagrams and Correlation
- In this chapter: 16.5 Outliers and Cleaning Data
Continue in the full course
This lesson is section 16.1 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.1 in the free course →