top of page

20.1 Statistical Diagrams

AQA A-level Maths Statistics and Mechanics Year 1 (AS) · 7357 · Chapter 20: Working with Data

What is in the full lesson (34 activities)

Every item below opens free in the course.

A free AQA A-level Maths SM Year 1 lesson for AQA A-level Mathematics (7357) from OBA School: histograms, cumulative frequency graphs, box plots and stem-and-leaf diagrams, and choosing between them (AQA 7357: L1). 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, including for the large data set

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.

The large data set

Throughout the statistics in this course you will meet a large data set about cars. For each car it records variables such as the make, the propulsion type (petrol, diesel, electric, hybrid and so on), the engine size in cm³, the mass in kg, the CO₂ emissions in g/km and other emissions, the region where the car was registered and the year. The rows below are made up, but they look like the real thing.

  • Ford; Propulsion Petrol; Engine size (cm³) 998; Mass (kg) 1248; CO₂ (g/km) 114; Region North West
  • Vauxhall; Propulsion Diesel; Engine size (cm³) 1598; Mass (kg) 1395; CO₂ (g/km) 119; Region London
  • Nissan; Propulsion Electric; Engine size (cm³) 0; Mass (kg) 1580; CO₂ (g/km) 0; Region Scotland

You will use technology for long calculations on these data, so the skill is in choosing a sensible diagram or measure, knowing what typical values look like, spotting values that cannot be right, and interpreting results in context. For example, an electric car has an engine size and CO₂ emissions of 0, so electric cars should usually be analysed separately.

Worked example: checking a row

One row of the data reads: Petrol, engine size 0 cm³, mass 1210 kg, CO₂ 126 g/km.

Answer: A petrol car must have an engine, so an engine size of 0 is an error or a missing value. Check it before using the row.

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 sample of 120 petrol cars is taken from the large data set. Their CO₂ emissions, c g/km, are grouped as follows.
Classes: 80 ≤ c < 100 (16), 100 ≤ c < 110 (30), 110 ≤ c < 120 (38), 120 ≤ c < 140 (28), 140 ≤ c < 180 (8).
Frequency densities: 16 ÷ 20 = 0.8, 30 ÷ 10 = 3, 38 ÷ 10 = 3.8, 28 ÷ 20 = 1.4, 8 ÷ 40 = 0.2

Answer: Plot bars of heights 0.8, 3, 3.8, 1.4 and 0.2 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 cars with emissions between 105 g/km and 150 g/km, and the probability that a car chosen at random from the sample is in this range.
105 to 110: 3 × 5 = 15 110 to 140: 38 + 28 = 66 140 to 150: 0.2 × 10 = 2
Total = 15 + 66 + 2 = 83 cars. Probability ≈ 83/120 = 0.692

Answer: about 83 cars; probability about 0.692

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 the times taken by a delivery driver on the same journey using two different routes.
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.

Worked example: comparing regions in the large data set

Box plots are drawn for the masses of the petrol cars in a sample from two regions. Region A: median 1290 kg, IQR 310 kg. Region B: median 1420 kg, IQR 180 kg.

Answer: Cars in region B are typically heavier (higher median), and their masses are more consistent (smaller IQR).

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 drivers on each shift take to complete a short delivery round.
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 drivers 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

With the large data set, use histograms, cumulative frequency graphs or box plots for continuous variables such as mass or CO₂ emissions, and a bar chart or pie chart for a categorical variable such as propulsion type or region. A stem-and-leaf diagram is only practical for a small sample taken from it.

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

Continue in the full course

This lesson is section 20.1 of our free AQA 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 20.1 in the free course →

 

 

 

 

 

 

 

bottom of page