To construct a histogram, divide the entire range of values into non-overlapping adjacent intervals (bins), and then count how many elements from the dataset fall into each interval. This is how we built the example histogram from the last section.
Notice how the intervals below are expressed:
from equal to 0 to less than 10;
from equal to 10 to less than 20,
etc.
The histogram data can also be expressed in table form, as seen here.
Bin
Count
[ 0; 10 )
3
[10; 20)
4
[20; 30)
5
[30; 40)
3
[40; 50)
2
[50; 60)
1
Of course, you can also use different bin widths (i.e. using an interval of 5 instead of 10) to learn more about the dataset.