Cumulative Frequency & Ogives: Finding the Five Number Summary from Grouped Data
What Is Cumulative Frequency?
Cumulative frequency is the running total of frequencies up to each class boundary. For grouped data — where individual values are not available — cumulative frequency tables and their graphical counterpart (the ogive) provide the primary method for estimating quartiles and constructing box plots.
Imagine recording the time (in minutes) that 80 customers wait in a queue. Rather than listing all 80 values, the data is grouped into intervals: 0–5, 5–10, 10–15, and so on. The cumulative frequency table tracks how many customers waited up to each boundary.
Building a Cumulative Frequency Table
Consider waiting times for 80 customers:
| Time (min) | Frequency | Cumulative Frequency |
|---|---|---|
| 0 ≤ t < 5 | 8 | 8 |
| 5 ≤ t < 10 | 15 | 23 |
| 10 ≤ t < 15 | 22 | 45 |
| 15 ≤ t < 20 | 18 | 63 |
| 20 ≤ t < 25 | 12 | 75 |
| 25 ≤ t < 30 | 5 | 80 |
Drawing an Ogive (Cumulative Frequency Curve)
An ogive plots cumulative frequency against the upper class boundary. To draw one:
- Plot each upper class boundary on the x-axis
- Plot the corresponding cumulative frequency on the y-axis
- Start with a point at (0, 0) — zero items below the lowest boundary
- Connect points with a smooth curve (or straight lines for a cumulative frequency polygon)
The resulting S-shaped curve allows reading off any percentile by drawing a horizontal line from the desired cumulative frequency to the curve, then dropping down to the x-axis.
Exam Tip
On GCSE and IB exams, always plot points at the upper class boundary, not the midpoint. For the interval 10 ≤ t < 15, plot the point at t = 15.
Estimating the Five Number Summary from an Ogive
For n = 80 data values:
- Minimum: The lower boundary of the first class = 0
- Q1 position: n/4 = 20th value
- Median position: n/2 = 40th value
- Q3 position: 3n/4 = 60th value
- Maximum: The upper boundary of the last class = 30
Reading from the ogive (or interpolating from the table):
- Q1: The 20th value falls in the 5–10 interval (CF goes from 8 to 23). Linear interpolation: 5 + (20 − 8)/(23 − 8) × 5 = 5 + 4.0 = 9.0 minutes
- Median: The 40th value falls in the 10–15 interval (CF goes from 23 to 45). Interpolation: 10 + (40 − 23)/(45 − 23) × 5 = 10 + 3.86 = 13.9 minutes
- Q3: The 60th value falls in the 15–20 interval (CF goes from 45 to 63). Interpolation: 15 + (60 − 45)/(63 − 45) × 5 = 15 + 4.17 = 19.2 minutes
Estimated five number summary: (0, 9.0, 13.9, 19.2, 30) IQR = 19.2 − 9.0 = 10.2 minutesImportant Distinction
Values estimated from grouped data are approximations. The exact five number summary requires the original ungrouped data. Interpolation assumes values are evenly distributed within each class interval, which may not be true.
The Linear Interpolation Formula
To estimate the value at cumulative frequency position p:
Estimated value = L + ((p − CF_before) / f) × w Where: L = lower class boundary of the interval containing position p CF_before = cumulative frequency before this interval f = frequency of this interval w = class widthThis formula assumes uniform distribution within the interval. Most exam boards accept this method and the graphical (ogive reading) method.
From Ogive to Box Plot
Once the five number summary is estimated from the ogive, a box plot can be drawn. The process:
- Read Q1, median, and Q3 from the ogive using horizontal lines at n/4, n/2, and 3n/4
- Use the class boundaries for Min and Max (or the actual extreme values if known)
- Draw the box from Q1 to Q3, with a line at the median
- Extend whiskers to Min and Max
This technique appears frequently on GCSE Higher papers and IB Mathematics examinations, where students must convert between cumulative frequency diagrams and box plots.
Comparing Distributions Using Ogives
Plotting two ogives on the same axes allows direct comparison. The distribution whose ogive lies to the right has generally higher values. Where the curves are closest together, the distributions overlap most. The vertical distance between curves at any x-value shows the difference in cumulative frequency at that point.
For example, comparing waiting times at two branches: if Branch B's ogive lies entirely to the right of Branch A's, every quartile estimate for Branch B will be higher, confirming longer wait times across the board.
Reading Any Percentile from an Ogive
The ogive is not limited to quartiles. Any percentile can be estimated:
- 10th percentile (P10): Draw horizontal line at 0.10 × n
- 90th percentile (P90): Draw horizontal line at 0.90 × n
- Interdecile range: P90 − P10 (covers the middle 80%)
This flexibility makes the ogive one of the most versatile tools for summarizing grouped data.
Common Mistakes
- Plotting at midpoints: Cumulative frequency should always be plotted at the upper class boundary, not the class midpoint
- Forgetting the origin point: Start the ogive at (lower boundary of first class, 0) — omitting this point distorts the curve
- Using n+1 rule inconsistently: Some textbooks use (n+1)/4 for Q1 position. Follow the convention specified by the exam board
- Confusing frequency with cumulative frequency: The y-axis of an ogive shows the running total, not the count per interval
- Over-precision: Results from grouped data are estimates. Reporting more than one decimal place implies false precision
Verify Your Calculations
Use the free five number summary calculator to check your work.
Open CalculatorWritten by Oge Nwaozuzu
Statistics educator and data analyst. Creator of 5numbersummarycalculator.app.