📚 Math in Society
⇩ Download ▾

11.2 Presenting Quantitative Data Graphically

Quantitative, or numerical, data can also be summarized into frequency tables.

Using this table, it would be possible to create a standard bar chart from this summary, like we did for categorical data:

Bar chart of quiz scores treated, wrongly, as categories. The horizontal axis Score carries the evenly spaced labels 0, 5, 12, 15, 16, 17, 18, 19, 20 and the vertical axis Frequency runs 0 to 8. Heights in that order: 2, 1, 1, 2, 2, 4, 8, 4, 6. Because the labels are evenly spaced, the gap from 0 to 5 occupies the same width as the gap from 17 to 18.

However, since the scores are numerical values, this chart doesn’t really make sense; the first and second bars are five values apart, while the later bars are only one value apart. It would be more correct to treat the horizontal axis as a number line. This type of graph is called a histogram.

Notice that in the histogram, a bar represents values on the horizontal axis from that on the left hand-side of the bar up to, but not including, the value on the right hand side of the bar. Some people choose to have bars start at ½ values to avoid this ambiguity.

The same quiz-score histogram redrawn with the bars starting and ending at half values so each bar is centred on its score, which removes the ambiguity about which endpoint belongs to which bar. Horizontal axis Score labelled 0 to 20 in steps of 2, vertical axis Frequency 0 to 8. Heights: 2 at score 0, 1 at 5, 1 at 12, 2 at 15, 2 at 16, 4 at 17, 8 at 18, 4 at 19, 6 at 20.

Unfortunately, not a lot of common software packages can correctly graph a histogram. About the best you can do in Excel or Word is a bar graph with no gap between the bars and spacing added to simulate a numerical horizontal axis.

If we have a large number of widely varying data values, creating a frequency table that lists every possible value as a category would lead to an exceptionally long frequency table, and probably would not reveal any patterns. For this reason, it is common with quantitative data to group data into class intervals.

In many software packages, you can create a graph similar to a histogram by putting the class intervals as the labels on a bar chart.

The same weight data drawn as a bar chart with the class intervals used as category labels under the bars instead of a numerical axis, which is the closest most spreadsheet software gets to a histogram. Vertical axis Frequency 0 to 30. Heights: 120-134 is 4, 135-149 is 14, 150-164 is 16, 165-179 is 28, 180-194 is 12, 195-209 is 8, 210-224 is 7, 225-239 is 6, 240-254 is 2, 255-269 is 3.

Other graph types such as pie charts are possible for quantitative data. The usefulness of different graph types will vary depending upon the number of intervals and the type of data being represented. For example, a pie chart of our weight data is difficult to read because of the quantity of intervals we used.

Pie chart titled Weights (pounds) with one slice per class interval and a colour key at the right. Clockwise from the top the slices stand for 120-134 with 4, 135-149 with 14, 150-164 with 16, 165-179 with 28, 180-194 with 12, 195-209 with 8, 210-224 with 7, 225-239 with 6, 240-254 with 2 and 255-269 with 3, out of 100 subjects. With ten slices, several of them slivers, the chart is hard to read, which is the point being made.

When collecting data to compare two groups, it is desirable to create a graph that compares quantities.

Adapted from Math in Society by David Lippman, hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 3.0. Changes were made. License: CC-BY-SA-3.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.