Skip to content
Family Table Math
Auto

Cumulative Frequency

When data come in a grouped frequency table, you no longer know the individual values, so you can’t line them up and count to the middle. A cumulative frequency graph gets around this: it shows how many values lie below each point, so you can read off the median, the quartiles, any percentile, and how many values are above or below a cut-off. It’s the standard IB tool for summarizing large grouped data sets, and it feeds straight into a box-and-whisker diagram.

The cumulative frequency of a class is the running total of the frequencies up to and including that class. It tells you how many values are less than or equal to the upper end of the class.

In IB questions, classes are written as inequalities with no gaps, like 10<t≤2010 \lt t \le 20. The upper end of each class (2020 here) is its upper class boundary.

Commute time tt (min)FrequencyUpper boundaryCumulative frequency
0<t≤100 \lt t \le 1066101066
10<t≤2010 \lt t \le 20141420206+14=206 + 14 = 20
20<t≤3020 \lt t \le 302424303020+24=4420 + 24 = 44
30<t≤4030 \lt t \le 40202040406464
40<t≤5040 \lt t \le 50101050507474
50<t≤6050 \lt t \le 606660608080

The last cumulative frequency is always the total, nn. Here n=80n = 80.

Plot each cumulative frequency against its upper class boundary, because that’s the point by which all those values have been counted. Start at the lower boundary of the first class with a cumulative frequency of 00 (here, the point (0,0)(0, 0)). Then join the points with a smooth curve or with straight line segments. The graph never goes down, and it often has a stretched S shape. Some books call it an ogive.

To find the value below which a certain number of data lie, go across from the cumulative frequency axis to the graph, then down to the horizontal axis.

StatisticGo across from
Lower quartile Q1Q_1n4\dfrac{n}{4}
Mediann2\dfrac{n}{2}
Upper quartile Q3Q_33n4\dfrac{3n}{4}
kkth percentilek100×n\dfrac{k}{100} \times n

For a large grouped data set, use n2\dfrac{n}{2} for the median (not n+12\dfrac{n+1}{2}, which is for listing individual values). Then IQR=Q3−Q1\text{IQR} = Q_3 - Q_1.

To go the other way (how many values are below a given tt), go up from tt to the graph, then across. The number above tt is nn minus that reading.

Values read from a graph are estimates. Different smooth curves give slightly different readings, and IB mark schemes accept a small range. On this page the points are joined with straight segments, so the readings can be checked with a little proportion (linear interpolation).

The range is the largest value minus the smallest. From grouped data you don’t know these exactly, so a question will either give you the minimum and maximum, or you can only say the range is at most the largest upper boundary minus the smallest lower boundary.

From the graph to a box-and-whisker diagram

Section titled “From the graph to a box-and-whisker diagram”

A box-and-whisker diagram needs the five-number summary: minimum, Q1Q_1, median, Q3Q_3, maximum. The cumulative frequency graph gives the middle three; the question supplies the minimum and maximum. Outliers (more than 1.5×IQR1.5 \times \text{IQR} below Q1Q_1 or above Q3Q_3, see quartiles and percentiles) are marked with a cross, and the whisker stops at the most extreme value that isn’t an outlier.

If the box and whiskers are roughly symmetric about the median, the data may be normally distributed. A clearly lopsided box plot suggests they aren’t. (See the normal distribution.)

Example 1: Building the table and the points

Section titled “Example 1: Building the table and the points”

The commute times of 8080 students are in the table in Key ideas. Write down the points you would plot for the cumulative frequency graph.

Solution. Plot (upper boundary, cumulative frequency), starting at (0,0)(0, 0):

(0,0), (10,6), (20,20), (30,44), (40,64), (50,74), (60,80)(0, 0),\ (10, 6),\ (20, 20),\ (30, 44),\ (40, 64),\ (50, 74),\ (60, 80)

Check: the last cumulative frequency, 8080, matches the number of students.

Cumulative frequency graph of commute times for 80 students, with quartile readings at 20, 28.3 and 38 minutes. 0 10 20 30 40 50 60 0 10 20 30 40 50 60 70 80 20 28.3 38 commute time t (minutes) cumulative frequency
Cumulative frequency graph of the commute times. Going across from 2020, 4040 and 6060 gives Q1=20Q_1 = 20, median ≈28.3\approx 28.3 and Q3=38Q_3 = 38.

Use the graph to estimate the median, the quartiles and the interquartile range of the commute times.

Solution. With n=80n = 80:

  • Median: go across from 802=40\dfrac{80}{2} = 40. The graph reaches 4040 at about t=28.3t = 28.3.
  • Q1Q_1: go across from 804=20\dfrac{80}{4} = 20. This is exactly the plotted point (20,20)(20, 20), so Q1=20Q_1 = 20.
  • Q3Q_3: go across from 3×804=60\dfrac{3 \times 80}{4} = 60. This gives Q3=38Q_3 = 38.
IQR=Q3−Q1=38−20=18 minutes\text{IQR} = Q_3 - Q_1 = 38 - 20 = 18 \text{ minutes}

Check the median by proportion: in the 20<t≤3020 \lt t \le 30 class the cumulative frequency goes from 2020 to 4444, so reaching 4040 means going 2020 of the way through that class’s 2424 students:

median≈20+40−2024×10=28.3 min (3 s.f.)\text{median} \approx 20 + \frac{40 - 20}{24} \times 10 = 28.3 \text{ min (3 s.f.)}

Example 3: Percentiles and counting above a value

Section titled “Example 3: Percentiles and counting above a value”

Use the graph to estimate:

  • (a) the 9090th percentile of the commute times;
  • (b) the number of students whose commute is longer than 4545 minutes;
  • (c) the number of students whose commute is between 1515 and 3535 minutes.

Solution.

(a) Go across from 0.90×80=720.90 \times 80 = 72. That’s in the segment from (40,64)(40, 64) to (50,74)(50, 74):

t≈40+72−6410×10=48 minutest \approx 40 + \frac{72 - 64}{10} \times 10 = 48 \text{ minutes}

So 90%90\% of the students commute for 4848 minutes or less.

(b) Go up from t=45t = 45: halfway between (40,64)(40, 64) and (50,74)(50, 74), the cumulative frequency is about 6969. So about 6969 students take 4545 minutes or less, and

80−69=11 students80 - 69 = 11 \text{ students}

take longer than 4545 minutes.

(c) Up from t=15t = 15: about 1313 students. Up from t=35t = 35: about 5454 students. So about 54−13=4154 - 13 = 41 students commute for between 1515 and 3535 minutes.

Example 4: Drawing the box-and-whisker diagram

Section titled “Example 4: Drawing the box-and-whisker diagram”

For the same students, the shortest commute was 33 minutes and the longest was 5858 minutes. Draw a box-and-whisker diagram, check for outliers, and comment on whether the commute times could be normally distributed.

Solution. Five-number summary: 33, 2020, 28.328.3, 3838, 5858.

Outliers. With IQR=18\text{IQR} = 18, 1.5×18=271.5 \times 18 = 27:

Q1−27=−7Q3+27=65Q_1 - 27 = -7 \qquad Q_3 + 27 = 65

No value is below −7-7 or above 6565, so there are no outliers. The whiskers run from 33 to 2020 and from 3838 to 5858.

The diagram. On a number line from 00 to 6060, draw a box from 2020 to 3838 with a line at 28.328.3, and whiskers out to 33 and 5858.

Symmetry. The two halves of the box are 28.3−20=8.328.3 - 20 = 8.3 and 38−28.3=9.738 - 28.3 = 9.7 minutes wide, and the whiskers are 1717 and 2020 minutes long. That’s close to symmetric, so the commute times could be roughly normally distributed (a box plot can only suggest this, not prove it).

Plotting at the class midpoint. Midpoints are for estimating the mean. A cumulative frequency counts everything up to the end of the class, so plot it at the upper boundary.

Forgetting the starting point. The graph starts at the lower boundary of the first class with cumulative frequency 00. Without it, you can’t read anything in the first class.

Reading the wrong axis. The median is a value of the variable (minutes), not a frequency. Go across from n2\dfrac{n}{2} on the cumulative frequency axis and read the answer on the horizontal axis.

Answering “how many are above” with the graph reading. The graph gives the number below a value. For “more than 4545 minutes”, subtract the reading from the total: 80−69=1180 - 69 = 11, not 6969.

Giving the IQR as a pair of numbers. The IQR is a single number, Q3−Q1Q_3 - Q_1. “From 2020 to 3838” describes the box, but the IQR is 1818.

Calling the range “60 minus 0”. That’s only the widest the range could be. Use the actual minimum and maximum if they’re given (58−3=5558 - 3 = 55 minutes in Example 4).

1. (Warm-up) The heights of 4040 students are recorded.

Height hh (cm)150<h≤155150 \lt h \le 155155<h≤160155 \lt h \le 160160<h≤165160 \lt h \le 165165<h≤170165 \lt h \le 170170<h≤175170 \lt h \le 175
Frequency449915158844

Write down the cumulative frequencies and the points you would plot.

Solution

Cumulative frequencies: 44, 1313, 2828, 3636, 4040.

Points (upper boundary, cumulative frequency), starting at the lower boundary of the first class:

(150,0), (155,4), (160,13), (165,28), (170,36), (175,40)(150, 0),\ (155, 4),\ (160, 13),\ (165, 28),\ (170, 36),\ (175, 40)

2. (Warm-up) For the heights in question 1, which cumulative frequency do you go across from to find (a) the median, (b) Q1Q_1, (c) the 9090th percentile? Then estimate the median, assuming the points are joined with straight lines.

Solution

(a) 402=20\dfrac{40}{2} = 20. (b) 404=10\dfrac{40}{4} = 10. (c) 0.9×40=360.9 \times 40 = 36.

The median is in the 160<h≤165160 \lt h \le 165 class, where the cumulative frequency goes from 1313 to 2828:

median≈160+20−1315×5=162 cm (3 s.f.)\text{median} \approx 160 + \frac{20 - 13}{15} \times 5 = 162 \text{ cm (3 s.f.)}

(More precisely 162.33…162.33\ldots cm.) Notice that the 9090th percentile is exactly the point (170,36)(170, 36), so it’s 170170 cm.

3. (Core) The masses of 200200 eggs from a farm are shown.

Mass mm (g)40<m≤4540 \lt m \le 4545<m≤5045 \lt m \le 5050<m≤5550 \lt m \le 5555<m≤6055 \lt m \le 6060<m≤6560 \lt m \le 6565<m≤7065 \lt m \le 70
Frequency121228285050626234341414

Write down the cumulative frequencies. Then, joining the points with straight lines, estimate the median and the lower quartile.

Solution

Cumulative frequencies: 1212, 4040, 9090, 152152, 186186, 200200.

Median: go across from 100100. It lies between (55,90)(55, 90) and (60,152)(60, 152):

median≈55+100−9062×5=55.8 g (3 s.f.)\text{median} \approx 55 + \frac{100 - 90}{62} \times 5 = 55.8 \text{ g (3 s.f.)}

Q1Q_1: go across from 5050. It lies between (50,40)(50, 40) and (55,90)(55, 90):

Q1≈50+50−4050×5=51 gQ_1 \approx 50 + \frac{50 - 40}{50} \times 5 = 51 \text{ g}

4. (Core) For the eggs in question 3, estimate the upper quartile and the interquartile range.

Solution

Q3Q_3: go across from 3×2004=150\dfrac{3 \times 200}{4} = 150, between (55,90)(55, 90) and (60,152)(60, 152):

Q3≈55+150−9062×5=59.8 g (3 s.f.)Q_3 \approx 55 + \frac{150 - 90}{62} \times 5 = 59.8 \text{ g (3 s.f.)}IQR≈59.84−51=8.84 g (3 s.f.)\text{IQR} \approx 59.84 - 51 = 8.84 \text{ g (3 s.f.)}

5. (Core) Eggs heavier than 6262 g are sold as “extra large”. Estimate how many of the 200200 eggs are extra large.

Solution

Go up from m=62m = 62. It’s 25\dfrac{2}{5} of the way from (60,152)(60, 152) to (65,186)(65, 186):

152+25×34=165.6152 + \frac{2}{5} \times 34 = 165.6

So about 166166 eggs are 6262 g or lighter, and about 200−165.6≈34200 - 165.6 \approx 34 eggs are extra large.

6. (Core) For the eggs, estimate (a) the 8080th percentile, and (b) the percentage of eggs lighter than 4848 g.

Solution

(a) Go across from 0.8×200=1600.8 \times 200 = 160, between (60,152)(60, 152) and (65,186)(65, 186):

60+160−15234×5=61.2 g (3 s.f.)60 + \frac{160 - 152}{34} \times 5 = 61.2 \text{ g (3 s.f.)}

(b) Go up from 4848, which is 35\dfrac{3}{5} of the way from (45,12)(45, 12) to (50,40)(50, 40):

12+35×28=28.812 + \frac{3}{5} \times 28 = 28.8

28.8200=0.144\dfrac{28.8}{200} = 0.144, so about 14.4%14.4\% of the eggs are lighter than 4848 g.

7. (Core) The lightest egg in question 3 was 4141 g and the heaviest was 6969 g. Using Q1=51Q_1 = 51, median =55.8= 55.8 and Q3=59.8Q_3 = 59.8, decide whether there are any outliers and describe the box-and-whisker diagram. Is the distribution roughly symmetric?

Solution

IQR=59.8−51=8.8\text{IQR} = 59.8 - 51 = 8.8, and 1.5×8.8=13.21.5 \times 8.8 = 13.2. The fences are 51−13.2=37.851 - 13.2 = 37.8 and 59.8+13.2=7359.8 + 13.2 = 73. Both 4141 and 6969 are inside, so there are no outliers.

The box runs from 5151 to 59.859.8 with the median at 55.855.8; the whiskers run to 4141 and 6969.

The halves of the box are 4.84.8 and 4.04.0 g wide and the whiskers are 1010 and 9.29.2 g long, so the distribution is roughly symmetric (slightly longer on the left). The masses could be roughly normally distributed.

8. (Challenge) The table shows the scores of 100100 players in an online game.

Score xx0<x≤100 \lt x \le 1010<x≤2010 \lt x \le 2020<x≤3020 \lt x \le 3030<x≤4030 \lt x \le 4040<x≤5040 \lt x \le 50
Frequency88pp3030qq1212

Joining the points of the cumulative frequency graph with straight lines gives a median of 2626. Find pp and qq.

Solution

The frequencies add to 100100: 8+p+30+q+12=1008 + p + 30 + q + 12 = 100, so p+q=50p + q = 50.

The median, 2626, is in the 20<x≤3020 \lt x \le 30 class. The cumulative frequency at 2020 is 8+p8 + p, and across that class it rises by 3030. Going 66 of the 1010 units into the class adds 610×30=18\dfrac{6}{10} \times 30 = 18, and this must reach 1002=50\dfrac{100}{2} = 50:

8+p+18=50⇒p=248 + p + 18 = 50 \quad\Rightarrow\quad p = 24

Then q=50−24=26q = 50 - 24 = 26.

Check: cumulative frequencies 8,32,62,88,1008, 32, 62, 88, 100; median =20+50−3230×10=26= 20 + \dfrac{50 - 32}{30} \times 10 = 26. ✓

9. (Challenge) At a second school, a cumulative frequency graph of 120120 students’ commute times gives Q1=15Q_1 = 15, median =22= 22 and Q3=27Q_3 = 27 minutes. The shortest commute is 44 minutes, the longest is 4949 minutes, and the second longest is 4141 minutes.

  • (a) Show that the longest commute is an outlier, and describe how the box-and-whisker diagram is drawn.
  • (b) Compare the commute times at this school with those in Example 4 (median 28.328.3, IQR 1818, range 5555).
Solution

(a) IQR=27−15=12\text{IQR} = 27 - 15 = 12 and 1.5×12=181.5 \times 12 = 18. The upper fence is 27+18=4527 + 18 = 45. Since 49>4549 \gt 45, the longest commute is an outlier. (The lower fence is 15−18=−315 - 18 = -3, so there are no low outliers.)

Draw the box from 1515 to 2727 with the median at 2222. The left whisker goes to 44. The right whisker stops at 4141, the largest value that isn’t an outlier, and 4949 is marked with a cross.

(b) The median at the second school (2222 min) is lower than in Example 4 (28.328.3 min), so its students typically have shorter commutes. Its IQR (1212 min) is smaller than 1818 min, so the middle half of its commute times are more consistent. (Its range, 49−4=4549 - 4 = 45 min, is also smaller than 5555 min, though the range is affected by the outlier.)

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

All data below are hypothetical. Whenever you read a value off a cumulative frequency graph, join the points with straight line segments (so you can check by linear interpolation) and remember that the result is an estimate. Give estimates to 3 significant figures unless they are exact.

H1. (Foundations) A minor hockey association in Fredericton records the length of 5050 practices.

Practice length tt (min)40<t≤5040 \lt t \le 5050<t≤6050 \lt t \le 6060<t≤7060 \lt t \le 7070<t≤8070 \lt t \le 8080<t≤9080 \lt t \le 9090<t≤10090 \lt t \le 100
Frequency3388171712127733
  • (a) Write down the cumulative frequencies and the points you would plot for the cumulative frequency graph.
  • (b) How many practices lasted 7070 minutes or less? Explain why this answer is exact, not an estimate.
  • (c) How many practices lasted longer than 8080 minutes?

H2. (Foundations) Use the hockey practice data from H1.

  • (a) Which cumulative frequency do you go across from to find the median, Q1Q_1 and Q3Q_3?
  • (b) Estimate the median, Q1Q_1 and Q3Q_3.
  • (c) Estimate the interquartile range, and explain why all of these answers are only estimates.

H3. (Core) A weather station in Prince Rupert, B.C., records the rainfall on 120120 rainy days. Notice that the classes are not all the same width.

Daily rainfall rr (mm)0<r≤50 \lt r \le 55<r≤105 \lt r \le 1010<r≤2010 \lt r \le 2020<r≤3020 \lt r \le 3030<r≤5030 \lt r \le 5050<r≤8050 \lt r \le 80
Number of days30303636282814149933
  • (a) Write down the cumulative frequencies and the points you would plot.
  • (b) Estimate the median and the quartiles of the daily rainfall.
  • (c) Estimate the interquartile range.

H4. (Core) Use the rainfall data from H3.

  • (a) Estimate the number of days with more than 2525 mm of rain.
  • (b) Estimate the number of days with between 88 mm and 4040 mm of rain.
  • (c) Estimate the 9595th percentile of the daily rainfall, and explain what it means in context.

H5. (Core) For the hockey practices in H1, the shortest practice was 4242 minutes and the longest was 9898 minutes. Use Q1=60.9Q_1 = 60.9, median =68.2= 68.2 and Q3=77.9Q_3 = 77.9 minutes.

  • (a) Estimate the 9090th percentile of the practice lengths.
  • (b) Show that there are no outliers.
  • (c) Describe the box-and-whisker diagram, and comment on whether the practice lengths could be roughly normally distributed.

H6. (Core) (IB style) The same 100100 workers in Red Deer recorded their commute times on a winter day. The table gives the cumulative frequencies.

Commute time tt (min)t≤10t \le 10t≤20t \le 20t≤30t \le 30t≤40t \le 40t≤50t \le 50t≤60t \le 60
Cumulative frequency441818454576769292100100

No worker had a commute of 00 minutes or less.

  • (a) Find the number of workers in each class 0<t≤100 \lt t \le 10, 10<t≤2010 \lt t \le 20, and so on.
  • (b) Estimate the median and the interquartile range of the winter commute times.
  • (c) On a summer day, the same workers had a median commute of 2424 minutes and an interquartile range of 1010 minutes. Make two comparisons between the winter and summer commute times, in context.

H7. (Challenge) A walk-in clinic records the waiting times of 8080 patients.

Waiting time ww (min)0<w≤150 \lt w \le 1515<w≤3015 \lt w \le 3030<w≤4530 \lt w \le 4545<w≤6045 \lt w \le 6060<w≤9060 \lt w \le 90
Frequency101022222626141488

Jordan’s work is shown below.

  • Jordan plotted the points (7.5,10)(7.5, 10), (22.5,32)(22.5, 32), (37.5,58)(37.5, 58), (52.5,72)(52.5, 72) and (75,80)(75, 80).
  • Jordan went across from 80+12=40.5\dfrac{80 + 1}{2} = 40.5 and got a median of about 27.427.4 minutes.
  • Jordan said that 7272 patients waited more than 6060 minutes.

Answer these:

  • (a) Explain each of Jordan’s three mistakes.
  • (b) Find the correct estimate of the median.
  • (c) Find the correct number of patients who waited more than 6060 minutes.

H8. (Challenge) For the Prince Rupert rainfall in H3, use Q1=5Q_1 = 5 and Q3=18.6Q_3 = 18.6 mm.

  • (a) Show that there can be no low outliers.
  • (b) Find the value above which a day’s rainfall counts as an outlier, and estimate how many of the 120120 days are outliers.
  • (c) Explain why you can’t say exactly where the right-hand whisker of the box-and-whisker diagram ends, using only the grouped data.
  • (d) Explain why rainfall data like these are unlikely to be normally distributed.

H9. (Challenge) The table shows the finishing times of 160160 runners in a 55 km fun run in Ottawa.

Time tt (min)20<t≤2520 \lt t \le 2525<t≤3025 \lt t \le 3030<t≤3530 \lt t \le 3535<t≤4035 \lt t \le 4040<t≤4540 \lt t \le 4545<t≤5045 \lt t \le 50
Number of runners1010aa4848bb20201212

From the cumulative frequency graph (points joined with straight lines), the lower quartile is 2828 minutes.

  • (a) Find aa and bb.
  • (b) Estimate the median and the upper quartile, and check that the median lies in the class you expect.

H10. (Challenge) Town P is the Prince Rupert data from H3 (n=120n = 120, Q1=5Q_1 = 5, median ≈9.17\approx 9.17, Q3≈18.6Q_3 \approx 18.6 mm). Town Q recorded 8080 rainy days with minimum 0.50.5, Q1=7Q_1 = 7, median =12= 12, Q3=16Q_3 = 16 and maximum 3333 mm.

Decide whether each statement is true, false, or cannot be determined from the information given. Justify each answer.

  • (a) At least half of Town Q’s rainy days had more rain than Town P’s median.
  • (b) The middle half of Town Q’s daily rainfalls is more spread out than Town P’s.
  • (c) Town P had more days with over 18.618.6 mm of rain than Town Q had days with over 1616 mm.
  • (d) Town P had the wettest single day of the two towns.
  • (e) Town Q’s driest rainy day had less rain than Town P’s driest rainy day.
  • (f) Town Q’s wettest day is an outlier.