What is a histogram?
A histogram shows how numerical measurements are distributed across ranges of values. The values are grouped into bins and displayed as adjacent rectangles. The horizontal axis shows the value intervals. Depending on the scaling, the vertical axis shows frequencies or frequency densities. This reveals where observations are concentrated and which ranges occur rarely (Statistics Canada, 2021; National Institute of Standards and Technology, n.d.). (www150.statcan.gc.ca)
Understanding bins and axes correctly
A bin is an interval on the number line. Bins must not overlap. Clearly specify which bin contains a value lying on a boundary. For example, intervals may include their lower boundary and exclude their upper boundary. The width of each rectangle corresponds to the respective bin width (Statistics Canada, 2021; R Core Team, n.d.). (www150.statcan.gc.ca)
With bins of equal width, you can use absolute frequency as the height. Alternatively, relative frequency shows the proportion of observations in each bin. Check the vertical axis label before interpreting the height of a rectangle (National Institute of Standards and Technology, n.d.). (itl.nist.gov)
Why area matters when bin widths differ
If bins have different widths, using unscaled frequencies as heights would distort the display. Use a frequency density instead. Calculate relative frequency density by dividing a bin’s proportion by its width. The area of the rectangle then equals that bin’s proportion, and the total area is one. A density height therefore cannot be read directly as a percentage (National Institute of Standards and Technology, n.d.; R Core Team, n.d.). (itl.nist.gov)
Hypothetical worked example
You have already grouped processing times in minutes: 4 observations fall from 0 inclusive to 10 exclusive, 10 from 10 inclusive to 20 exclusive, and 6 from 20 inclusive to 30 exclusive. This gives 4 + 10 + 6 = 20 observations in total.
When displaying absolute frequencies, the rectangle heights are therefore 4, 10 and 6. The relative proportion for the middle bin is 10 / 20 = 0.5, or 50%. In a density histogram, its width of 10 minutes gives a height of 0.5 / 10 = 0.05 per minute. The area is 0.05 × 10 = 0.5 and represents the same proportion. The example illustrates the density scaling described above (National Institute of Standards and Technology, n.d.). (itl.nist.gov)
Choosing the bin width and reading the histogram
The binning affects the visible pattern. There is no universally optimal bin width. Examine other reasonable choices before interpreting individual peaks or gaps substantively. This recommendation follows from the dependence of an appropriate bin width on the distribution (National Institute of Standards and Technology, 2015). (itl.nist.gov)
Look at the location of the values, their spread, skewness and any multiple peaks. Unusually distant observations may also stand out. However, a bell-shaped appearance alone does not confirm a normal distribution. Probability plots or suitable goodness-of-fit tests can support further assessment (National Institute of Standards and Technology, n.d.). (itl.nist.gov)
Histogram or bar chart?
A bar chart compares categories, whereas a histogram shows numerical intervals. Their order is fixed by the number line and must not be rearranged by frequency. “Bar chart” and “column chart” are therefore not synonyms for histogram (Statistics Canada, 2021). (www150.statcan.gc.ca)
For its role in describing the available data, read the glossary entry descriptive statistics. For a practical treatment, see How to assess normality in your data correctly.
References
National Institute of Standards and Technology. (n.d.). 1.3.3.14. Histogram. In NIST/SEMATECH e-Handbook of Statistical Methods.
National Institute of Standards and Technology. (2015, October 30). Histogram class width (set). In Dataplot reference manual.
R Core Team. (n.d.). Histograms. In R documentation: Package graphics.
Statistics Canada. (2021, September 2). 5.7 Histogram. In Statistics: Power from Data!
Background knowledge
Related glossary terms