How to draw and read a cumulative frequency graph

Add a running total, plot each total at the upper class boundary, join the points, then read the median, quartiles and IQR. Worked examples included.

To draw a cumulative frequency graph, add up the frequencies as a running total, then plot each total against the upper boundary of its class and join the points. You can then read the median, quartiles and interquartile range off the graph, and estimate how many values lie above or below any given value.

What a cumulative frequency graph shows

A frequency table tells you how many values fall in each class. A cumulative frequency table tells you how many values are up to and including the end of each class. The last cumulative frequency is the total number of values.

The graph has the data variable on the horizontal axis and cumulative frequency on the vertical axis. It never falls from left to right, because a running total never goes down (a flat stretch means an empty class). For most data it forms a stretched S shape, steep where the data is bunched and flat where it is sparse.

The method step by step

  1. Make a cumulative frequency column. Add each frequency to the total so far.
  2. Write down the points. The xx value is the upper boundary of each class. The yy value is its cumulative frequency.
  3. Add a starting point. Plot (lowest boundary,0)(\text{lowest boundary}, 0), because nothing has been counted yet.
  4. Plot and join. Join the points with a smooth curve. Some courses ask for straight lines between points, which gives a cumulative frequency polygon. Follow your teacher's convention. This guide uses the smooth curve.
  5. Read values. For the median, go to n2\tfrac{n}{2} on the vertical axis, across to the curve, then down to the horizontal axis. Do the same at n4\tfrac{n}{4} and 3n4\tfrac{3n}{4} for the quartiles.

Plot at the upper boundary because that is the first point at which the whole class has been counted.

Worked example 1: building the table and the points

The heights of 60 seedlings are grouped as follows (in cm):

  • 0<h≤100 < h \le 10: 4
  • 10<h≤2010 < h \le 20: 11
  • 20<h≤3020 < h \le 30: 21
  • 30<h≤4030 < h \le 40: 15
  • 40<h≤5040 < h \le 50: 9

Running total: 44, 4+11=154+11=15, 15+21=3615+21=36, 36+15=5136+15=51, 51+9=6051+9=60. The final total is 60, which matches the number of seedlings.

The points to plot are (0,0)(0, 0), (10,4)(10, 4), (20,15)(20, 15), (30,36)(30, 36), (40,51)(40, 51) and (50,60)(50, 60). Drawn as a curve, it starts flat, climbs steeply between 20 and 30 cm, then flattens towards 60.

Worked example 2: median, quartiles and IQR

Use the seedling data. There are n=60n = 60 values.

  1. Median: 602=30\tfrac{60}{2} = 30th value. The cumulative frequency 30 falls between 15 (at 20 cm) and 36 (at 30 cm). Between the points: 20+30−1536−15×10=27.120 + \tfrac{30-15}{36-15} \times 10 = 27.1 cm.
  2. Lower quartile: 604=15\tfrac{60}{4} = 15th value. A cumulative frequency of 15 is at exactly 20 cm, so Q1=20Q_1 = 20 cm.
  3. Upper quartile: 3×604=45\tfrac{3 \times 60}{4} = 45th value. It falls between 36 (at 30 cm) and 51 (at 40 cm): 30+45−3651−36×10=3630 + \tfrac{45-36}{51-36} \times 10 = 36 cm.
  4. IQR=36−20=16\text{IQR} = 36 - 20 = 16 cm.

On a hand-drawn graph you would read these off the curve, so expect answers close to these but not identical. Treat all of them as estimates, because grouped data hides the exact values.

Now estimate how many seedlings are taller than 32 cm. At 32 cm the cumulative frequency is 36+32−3040−30×15=3936 + \tfrac{32-30}{40-30} \times 15 = 39. So 60−39=2160 - 39 = 21 seedlings are taller than 32 cm. To find how many are below a value, read the cumulative frequency itself. To find how many are above, subtract it from the total.

Worked example 3: comparing two distributions

A second batch of 60 seedlings has the cumulative frequencies 2, 10, 50, 58 and 60 at the same boundaries 10, 20, 30, 40 and 50.

  1. Median: the 30th value is between 10 (at 20 cm) and 50 (at 30 cm): 20+30−1050−10×10=2520 + \tfrac{30-10}{50-10} \times 10 = 25 cm.
  2. Q1Q_1: the 15th value: 20+15−1050−10×10=21.2520 + \tfrac{15-10}{50-10} \times 10 = 21.25 cm.
  3. Q3Q_3: the 45th value: 20+45−1050−10×10=28.7520 + \tfrac{45-10}{50-10} \times 10 = 28.75 cm.
  4. IQR=28.75−21.25=7.5\text{IQR} = 28.75 - 21.25 = 7.5 cm.

Compare using one average and one spread:

  • The first batch has a higher median (27.1 cm against 25 cm), so the seedlings are slightly taller on average.
  • The first batch has a larger IQR (16 cm against 7.5 cm), so its heights are more spread out. The second batch is more consistent.

Always say what the numbers mean in the context, not just which is bigger.

Worked example 4: a box plot from the graph

A box plot needs five values: the minimum, Q1Q_1, the median, Q3Q_3 and the maximum. For the first batch of seedlings:

  • Minimum (estimate): the lowest class boundary, 0 cm. The true shortest seedling is somewhere above this.
  • Q1Q_1: 20 cm
  • Median: 27.1 cm
  • Q3Q_3: 36 cm
  • Maximum (estimate): the highest class boundary, 50 cm. The true tallest seedling is at or below this.

On a scale, draw a box from 20 to 36 with a line inside at 27.1, then whiskers from 0 to 20 and from 36 to 50. The minimum and maximum are the ends of the classes, so they are estimates too. The box shows the middle half of the data. The two halves of the box are 7.1 and 8.9 wide, so the middle half of the data is only slightly skewed towards the larger values. The lower whisker is longer than the upper one, but that depends on the estimated minimum. All these values assume straight lines between the plotted points.

Common mistakes

  • Plotting at the midpoint or the lower boundary of the class. Use the upper boundary.
  • Plotting the frequencies instead of the running totals.
  • Forgetting the starting point (lowest boundary,0)(\text{lowest boundary}, 0).
  • Reading the median at the wrong place. It is at n2\tfrac{n}{2} on the vertical axis, not halfway along the horizontal axis.
  • Joining the points with a ruler when a smooth curve was asked for, or the other way round.
  • Reading "how many above" straight off the axis. Subtract from the total.
  • Giving the IQR as Q1Q_1 and Q3Q_3 instead of Q3−Q1Q_3 - Q_1.

Exam tips

  • Check that your last cumulative frequency equals the total.
  • Draw light pencil lines on the graph when you read values, so the examiner can see your method.
  • Label both axes, and use a sensible, even scale.
  • When comparing, give one measure of average and one of spread, each with a context statement.

Frequently asked questions

Why do you plot at the upper class boundary?

Because the running total for a class is only complete at its upper boundary. Before that, some of its values have not been counted.

Should I draw a curve or straight lines?

Use whichever your course asks for. A smooth curve is the common convention for a cumulative frequency graph, and straight lines give a polygon. Both give similar estimates.

How do I find the median from the graph?

Find n2\tfrac{n}{2} on the vertical axis. Go across to the curve, then straight down and read the value.

How do I find the interquartile range?

Read Q1Q_1 at n4\tfrac{n}{4} and Q3Q_3 at 3n4\tfrac{3n}{4}, then subtract: Q3−Q1Q_3 - Q_1.

Why are the answers only estimates?

Grouped data does not give individual values, so the graph assumes the values are spread evenly within each class.

Practise it

When you are ready, try the histograms, box plots and cumulative frequency practice topic. Start with building the table and plotting, then move on to reading medians and quartiles.

Put it into practice

Practise this topic with questions and get an explanation after each answer.

Practise Histograms, box plots & cumulative frequency →