Histograms

Histogram: a graphical display of data using bars of different heights.

Basic histogram showing the frequency distribution of data grouped into ranges, with bars touching.

It is similar to a Bar Chart, but a histogram groups numbers into ranges.

The height of each bar shows how many fall into each range.

And you decide what ranges to use!

An orange orchard with many trees, representing the data source.

Example: Height of Orange Trees

You measure the height of every tree in the orchard in centimeters (cm)

The heights vary from 100 cm to 340 cm

You decide to put the results into groups of 50 cm:

  • The 100 to just below 150 cm range,
  • The 150 to just below 200 cm range,
  • and so on...

So a tree that is 260 cm tall is added to the "250-300" range.

And here is the result:

Histogram showing the frequency of orange tree heights, grouped into 50 cm intervals.

You can see (for example) that there are 30 trees from 150 cm to just below 200 cm tall

(PS: you can create graphs like that using Make your own Histogram)

Notice that the horizontal axis is continuous like a number line:

Horizontal axis of a histogram, labeled as a continuous number line with tick marks.

A cute puppy looking inquisitively, related to the weight gain example.

Example: How much is that puppy growing?

Each month you measure how much weight your pup has gained and get these results:

0.5, 0.5, 0.3, −0.2, 1.6, 0, 0.1, 0.1, 0.6, 0.4

They vary from −0.2 (the pup lost weight that month) to 1.6

Put in order from lowest to highest weight gain:

−0.2, 0, 0.1, 0.1, 0.3, 0.4, 0.5, 0.5, 0.6, 1.6

You decide to put the results into groups of 0.5:

  • The −0.5 to just below 0 range,
  • The 0 to just below 0.5 range,
  • and so on...

And here is the result:

Histogram showing the frequency of puppy weight changes, grouped into 0.5 kg intervals, including negative changes.

(There are no values from 1 to just below 1.5, but we still show the space.)

The range of each bar is also called the Class Interval

In the example above each class interval is 0.5

Bar Graph vs Histogram

Histograms are a great way to show results of continuous data, such as:

But when the data is in categories (such as Country or Favorite Movie), we use a Bar Chart.

Visual comparison showing a bar chart with gaps between bars for discrete categories and a histogram with touching bars for continuous ranges.

686, 1436, 1438, 1439, 1440, 1441, 3777, 3778, 3779, 3780