Data Visualization › Histograms: Understanding Distributions
Machine Learning from ScratchAll chapters Data Visualization › Histograms: Understanding DistributionsOne section · Sections in this chapter3 / 10 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
Histograms display the distribution of a continuous variable by dividing the range of values into bins and counting how many observations fall into each bin. The resulting bar chart provides an immediate visual sense of where data is concentrated, how spread out it is, and whether it exhibits unusual patterns like multiple peaks or long tails.
The shape of a histogram reveals important information about the underlying data generation process. A symmetric, bell-shaped distribution centered around a single peak suggests data that might follow a normal distribution, which justifies many classical statistical procedures. Skewed distributions, with long tails extending to the right or left, indicate that extreme values occur more frequently than a normal distribution would predict. Such skewness might suggest the need for data transformation or the use of robust statistical methods that don't assume normality.
Histograms also expose potential data quality issues. Unexpected gaps in the distribution might indicate missing categories or measurement problems. Sharp cutoffs at round numbers could reveal data entry practices rather than true properties of the measured phenomenon. Multiple distinct peaks (bimodal or multimodal distributions) often suggest that the data combines multiple subpopulations that should be analyzed separately.
The choice of bin width significantly affects histogram appearance and interpretation. Too few bins obscure detail and make the distribution appear overly smooth. Too many bins create a jagged appearance dominated by random noise rather than meaningful signal. Most visualization libraries provide reasonable default binning strategies, but practitioners should experiment with different bin widths to ensure they're not missing important features or being misled by arbitrary binning choices.

