Measurements are grouped into classes
Nineteen students record how long they spent on a homework task, in minutes. A time is a measurement, so it can take any value, such as 12.5 minutes or 27.3 minutes, and very few students will have exactly the same time. A frequency table with one row for each separate time would show a frequency of 1 in almost every row, and no pattern.
So the times are grouped into classes of equal width, 10 minutes each. Write t for a time in minutes. The class holds every time up to, but not including, 20 minutes. A time of exactly 20 minutes goes in the next class, . The classes meet end to end, so every time belongs to exactly one class.
Each class is named by its two ends, so 10–20 stands for . The frequencies 3, 8, 6 and 2 add up to the 19 students.
Drawing the histogram
A histogram draws this table. The horizontal axis is a continuous scale of time in minutes, from 0 to 40, and each class takes an equal length of it. The vertical axis is frequency.
Each class gets one bar, standing exactly over its interval: the first bar runs from 0 to 10 on the time axis, the second from 10 to 20, and so on. The height of each bar is the frequency of its class: 3, 8, 6 and 2.
The bars touch, with no gaps between them. That is because the intervals touch: the first class ends at 10 where the second begins, and no time lies between two classes. A gap in a histogram would claim that no student took a time inside it.
The bars stand side by side over 0–10, 10–20, 20–30 and 30–40 minutes, with heights 3, 8, 6 and 2. The tallest bar is over 10–20.
Reading a histogram
The tallest bar belongs to the class that holds the most values. It is called the modal class, and here it is . The modal class is an interval of times, not the number 8: 8 is its frequency.
Add the heights to find how many values the histogram shows: 3 + 8 + 6 + 2 = 19 students. Add the bars on one side of a class boundary to count the values on that side. The students who took 20 minutes or more are in the last two classes: 6 + 2 = 8, which is % of the students.
A histogram does not show where each value lies inside its class. It says that 8 students took from 10 to 20 minutes, but not whether their times were close to 10 or close to 20. Grouping gives up that detail in return for a clear picture of how the values are spread.
A histogram is not a bar chart
A bar chart shows categories, such as favorite sports. Its bars stand apart, because nothing lies between one category and the next, and their order can be changed without changing the chart’s meaning.
A histogram shows a measurement on a number scale. Its bars touch, because the classes run on from one another, and their order is fixed by the scale: the bar for 10–20 minutes must stand between the bars for 0–10 and 20–30.
Area and height
Every bar here is 10 minutes wide, so the area of each bar is 10 × its height, and a bar twice as tall has twice the area. With equal class widths, the heights and the areas of the bars are in the same ratio, so the height can be read as the frequency.
Looking ahead: when the classes have different widths, a wide class collects more values just by being wide, and the height alone misleads. Then the area of a bar shows its frequency, and the vertical axis becomes frequency density.
Worked example: A Histogram of Fish Lengths Turned Back into a Grouped Frequency Table
Question A fisheries officer measured the length, x cm, of every fish in one catch and drew a histogram with equal class widths. The bars stand over 10 ≤ x < 20, 20 ≤ x < 30, 30 ≤ x < 40, 40 ≤ x < 50 and 50 ≤ x < 60, and their heights on the frequency axis are 4, 9, 14, 8 and 5. (a) Write the grouped frequency table and state the modal class. (b) A fish shorter than 30 cm must be put back. What percentage of the catch must be put back?
1.Every class is 10 cm wide, so the height of each bar is its frequency. Read the five heights from the frequency axis: 4, 9, 14, 8 and 5.
Every class is 10 cm wide, so the height of each bar is its frequency: 4, 9, 14, 8 and 5. 2.Write each class beside its frequency to make the grouped frequency table, and add the frequencies: 4 + 9 + 14 + 8 + 5 = 40 fish.
Each class beside its frequency is the grouped frequency table. There are 4 + 9 + 14 + 8 + 5 = 40 fish. 3.(a) The frequencies are 4, 9, 14, 8 and 5. The tallest bar is over 30 ≤ x < 40, so that is the modal class.
(a) The tallest bar is over 30 ≤ x < 40, so that is the modal class. 4.A fish shorter than 30 cm is in one of the first two classes, because 30 is the end of the second class: 4 + 9 = 13 fish.
The fish shorter than 30 cm are in the first two classes: 4 + 9 = 13. 5.(b) 1340 = 0.325, so 32.5% of the catch must be put back.
(b) 1340 = 32.5% of the catch must be put back.
Answer: (a) frequencies 4, 9, 14, 8, 5; the modal class is 30 ≤ x < 40; (b) 13 of the 40 fish, which is 32.5%
Common mistakes
- Giving the modal class as 14. The number 14 is the frequency of the modal class. The modal class is the interval of lengths that has that frequency, 30 ≤ x < 40.
- Counting the 30 ≤ x < 40 class among the fish to put back. A fish of exactly 30 cm belongs to that class, and every fish in it is at least 30 cm long, so none of the 14 is shorter than 30 cm.