Histograms and Cumulative Frequency for the ESAT

Updated July 2026

This guide explains how to construct and interpret diagrams for grouped discrete and continuous data. It covers histograms with unequal class intervals, the calculation of frequency density, and the use of cumulative frequency graphs to estimate the median and interquartile range. Mastery of these statistical tools is essential for analyzing data distributions in the ESAT.

Core concept

The core principle of histograms is that frequency is represented by bar area, calculated via frequency density. Cumulative frequency graphs display running totals against upper class boundaries to facilitate the estimation of statistical measures such as the median and quartiles.

Discrete and continuous data

Data is classified into two main types: discrete and continuous. Understanding the difference is vital for selecting the correct representation. Discrete data can only take certain fixed values. For example, the number of pupils in a class must be an integer (you cannot have 23.323.3 pupils). Other examples include the number of cars in a car park and UK shoe sizes, such as 33, 3.53.5, 44, and 4.54.5.

Continuous data can take on any value within a range. For instance, the heights of pupils in a class are continuous because a height could be 165.75165.75 cm. Even if measurements are rounded for recording purposes, the underlying data remains continuous.

Class intervals

When data is grouped, we use inequalities to express class intervals. These intervals must be continuous so that the upper boundary of one class is exactly the lower boundary of the next class. It is essential that every data point belongs to exactly one interval. Class intervals do not have to be of equal width.

There is a distinction between class limits and class boundaries. The class limits are the values written in a frequency table. The class boundaries are the 'true' values. For example, if heights are measured to the nearest cm and grouped as 150150 cm to 154154 cm, the class boundaries are 149.5h<154.5149.5 \leq h < 154.5. The lower boundary is the smallest number that rounds up to the lower limit, and the upper boundary is the smallest number that would round up to the next limit.

In a group of 150150 to 154154 cm, the limits are 150150 and 154154, but the boundaries are 149.5149.5 and 154.5154.5. If the next group is 170170 to 179179 cm, the class width is 1010 cm, showing that intervals can vary in width.

Histograms

Histograms are used to visualize the underlying shape of a data distribution, such as whether it is symmetrical, skewed, increasing, or decreasing. They follow specific rules:

  1. The area of the bar, not the height, is proportional to the frequency.
  2. Bar widths correspond to the class intervals (class width) and are bounded by the class boundaries.
  3. Bars are drawn on a continuous, linear, horizontal scale with no spaces between them unless a class has zero frequency.
  4. The vertical axis represents frequency density.

Frequency density is defined by the formula:

Frequency Density=frequencyclass widthFrequency\ Density = \frac{frequency}{class\ width}

If the data is spread evenly on both sides of the centre, the distribution is described as symmetrical.

Cumulative frequency

Cumulative frequency curves plot running totals of data. They are used to make estimates of statistics such as the median, quartiles, and range. These curves can be used for both discrete and continuous data. The running total is always plotted against the upper class limit (or upper boundary). The resulting curve usually forms an elongated S shape. Points may be joined with a smooth curve or straight lines.

img-237.jpeg

On the vertical axis, if the total frequency is nn, the median is the horizontal value corresponding to n/2n/2 on the vertical axis. The lower quartile corresponds to n/4n/4 and the upper quartile to 3n/43n/4. The interquartile range is the difference between these two horizontal values. On a graph of marks, a point (x,y)(x, y) shows that yy individuals achieved xx marks or fewer.

Worked Example: Discrete vs Continuous Data

Consider the following data sets:

  1. Length of a leaf: This is continuous because a leaf can take any value within a range.
  2. Number of insects caught in a trap: This is discrete because the count must be an integer.
  3. Mass of kittens: This is continuous because mass can take any value within a range.

Worked Example: Class Intervals for Continuous Data

Heights of tomato plants are measured to the nearest cm. We must determine the class boundaries.

Class limits (cm)Class interval (cm)
50 to 5949.5h<59.549.5 \leq h < 59.5
60 to 6959.5h<69.559.5 \leq h < 69.5
70 to 7969.5h<79.569.5 \leq h < 79.5
80 to 8979.5h<89.579.5 \leq h < 89.5
90 to 10989.5h<109.589.5 \leq h < 109.5

Note that the upper boundary of the first class (59.559.5) becomes the lower boundary of the second class.

Worked Example: Drawing a Histogram

Using the plant data above, we calculate frequency density.

Class intervalFrequencyClass widthFrequency density
49.5h<59.549.5 \leq h < 59.5151015/10=1.515 / 10 = 1.5
59.5h<69.559.5 \leq h < 69.5201020/10=2.020 / 10 = 2.0
69.5h<79.569.5 \leq h < 79.5251025/10=2.525 / 10 = 2.5
79.5h<89.579.5 \leq h < 89.5531053/10=5.353 / 10 = 5.3
89.5h<109.589.5 \leq h < 109.5302030/20=1.530 / 20 = 1.5

The histogram is drawn with frequency density on the vertical axis. If there is a large gap between 00 and the first boundary, the axis can be compressed or start from the first boundary.

img-238.jpeg

Alternatively, a zigzag line can show the scale compression:

img-239.jpeg

Or the bars can simply start at the relevant boundary on a linear scale:

img-240.jpeg

Worked Example: Cumulative Frequency

We catch insects in 65 traps. We need to calculate cumulative frequency and estimate the median.

Insects (nn)Class IntervalFreqCumulative FreqInterval
1 to 50<n50 < n \leq 5550<n50 < n \leq 5
6 to 105<n105 < n \leq 108130<n100 < n \leq 10
11 to 1510<n1510 < n \leq 1515280<n150 < n \leq 15
16 to 2015<n2015 < n \leq 2020480<n200 < n \leq 20
21 to 2520<n2520 < n \leq 2514620<n250 < n \leq 25
26 to 3025<n3025 < n \leq 303650<n300 < n \leq 30

We plot cumulative frequency against upper limits (55, 1010, 1515, etc.).

img-241.jpeg

Join the points, starting from (0,0)(0, 0).

img-242.jpeg

To find the median, divide the total (6565) by 22 to get 32.532.5. Read across from 32.532.5 on the vertical axis to the curve, then down to the horizontal axis. The median is approximately 1616.

img-243.jpeg

To find traps with more than 1717 insects: read up from 1717 on the horizontal axis to find 3636 on the vertical axis. This means 3636 traps have 1717 or fewer insects. Thus, 6536=2965 - 36 = 29 traps have more than 1717 insects.

img-244.jpeg

Key takeaways

  • In histograms, the area of the bar is proportional to the frequency, not the height.
  • Frequency density is calculated by dividing the frequency of a class by its width.
  • Cumulative frequency is plotted against the upper class boundary of each interval.
  • The median and quartiles can be estimated from a cumulative frequency graph by reading values at n/2n/2, n/4n/4, and 3n/43n/4.
  • Discrete data takes specific values, while continuous data can take any value in a range.
Tips

Always double check your class widths before calculating frequency density. For histograms, if the class limits are 1010 to 1919 and 2020 to 2929, the boundaries are 9.59.5, 19.519.5, and 29.529.5, making the width 1010 in both cases.

Cautions

A common error is plotting cumulative frequency at the midpoint of the class. This is incorrect. Cumulative frequency represents the total 'up to' a certain point, so it must be plotted at the upper boundary.

Insight

The use of frequency density in histograms is a precursor to the concept of probability density functions in higher level statistics, where the total area under a curve represents a total probability of 11.

Frequently asked questions

Why do we use frequency density instead of frequency for histograms?

Frequency density is used so that the area of the bars represents the frequency. This allows us to compare classes with different widths accurately. If we used frequency as the height for unequal widths, the wider bars would incorrectly suggest a much larger proportion of the data.

Where exactly should I plot the points for a cumulative frequency graph?

You must plot the cumulative frequency against the upper boundary of the class interval. For example, if a class is 10<x2010 < x \leq 20, you plot the running total at x=20x = 20.

How do I calculate the interquartile range from a cumulative frequency graph?

First, find the total frequency nn. Find the values on the horizontal axis corresponding to n/4n/4 (lower quartile) and 3n/43n/4 (upper quartile) on the vertical axis. Subtract the lower quartile value from the upper quartile value.

Do histogram bars always have to touch?

Yes, because histograms represent continuous data or data grouped into continuous intervals, the bars must touch. The only exception is if a class interval has a frequency of zero.

Ready to test your knowledge?

You've reached the end of this section. Start a practice session to solidify your understanding and master this topic.