What is a Histogram?

Histogram

A histogram is a way of representing the frequency distribution of a numeric dataset.

The way it works is it partitions the spread of the numeric data into bins, assigns each datapoint in the dataset to a bin, and then counts the number of datapoints that have been assigned to each bin.

So the vertical axis is the frequency or the number of datapoints in each bin.

Now, to create the histogram, partition the horizontal axis in, say, ten bins of equal width and then construct the histogram by counting how many datapoints have a value that is between the limits of the first bin, the second bin, the third bin, and so on.