Histograms

Histograms are often confused with bar graphs, however, there is one crucial difference separating the two: while bar graphs deal with categorical data, histograms deal with continuous data. To illustrate this, assume we have a table of data with the intervals of prices of cars in a dealership:

A table showing car price ranges and their corresponding frequency of sale or occurrence. Price ranges from 20K to 140K dollars, with frequencies from 20 to 252.

When presented in graph form, a histogram has no gaps between bars, and its intervals cannot be reordered. In comparison, a bar graph has gaps between bars, and because the data are categorical, can be reordered without changing the data’s general representation. The histogram for the table above is shown here:

Bar graph showing the number of cars for different car price ranges in thousands of dollars, with the highest bar in the 60 thousand dollar range.

Most likely, we will be given a list of data points with no accompanying table. In this case, we must decide the length of each of our intervals to best represent the data, and sort the data points according to our intervals, counting the frequency. For example, let’s say instead of car prices, we’re given the various distances of runs that Jacob has gone on.

4, 4, 5, 8, 3, 7, 10, 12, 4, 9, 2, 5, 15, 14

Let’s reorder the data in ascending order.

2, 3, 4, 4, 4, 5, 5, 7, 8, 9, 10, 12, 14, 15

What should our intervals be? Well, we want to avoid having too few intervals. We can divide the data into 0-5, 6-11, and 12-17 (note that our intervals do not have to fit perfectly).

Now we need to create a table with our intervals and the frequency of data points:

Graphing our table, we have

Table showing distance ranges in kilometers and their corresponding frequency counts. Distance range 0-5 km has a frequency of 7, 6-11 km has a frequency of 4, and 12-17 km has a frequency of 3.
Bar graph showing frequency of distances in kilometers, with distances of 5 km, 11 km, and 17 km on the x-axis and their respective frequencies.