01 / 20

Histograms &
Distribution Plots

Master the art of visualizing quantitative data using histograms, dotplots, and stem-and-leaf plots to reveal shape, center, and spread.

College Statistics

Why Visualize Data?

Raw numbers alone rarely tell the full story. A list of 50 exam scores looks like noise, but a well-chosen graph instantly reveals patterns, outliers, clusters, and gaps that summary statistics can miss entirely.

In this lesson you will learn three powerful tools: histograms, dotplots, and stem-and-leaf plots: each suited to different data sizes and goals.

What Is a Distribution?

The distribution of a quantitative variable describes the pattern of values it takes: which values are common, which are rare, and how they cluster together.

Shape
Symmetric, skewed left, skewed right, uniform, or bimodal?
Center
Where is the "typical" value? Think mean or median.
Spread
How much variability? Range, IQR, or standard deviation.

Three Tools, One Goal

Histogram
Groups data into equal-width bins (intervals). Bar height shows frequency or relative frequency. Best for medium to large datasets.
Dotplot
Places one dot per observation above a number line. Preserves every data value. Best for small datasets (\( n \lt 30 \)).
Stem-and-Leaf
Splits each value into a stem (leading digits) and leaf (trailing digit). Shows shape and retains exact values.

Anatomy of a Histogram

2 4 6 8 Frequency 2 4 8 6 3 60-69 70-79 80-89 90-99 100+ Exam Score bin width = 10

Frequency vs Relative Frequency

Frequency
The count of observations in each bin. The y-axis shows raw numbers.
Relative Frequency
The proportion of observations: \(\text{relative freq} = \frac{\text{count}}{n}\). The y-axis shows percentages or decimals.

The Dotplot

A dotplot places one dot per observation above a number line. When values repeat, dots stack vertically. This preserves every individual value while showing the distribution shape.

1 2 3 4 5 6 7 Hours of Sleep (18 students)

The Stem-and-Leaf Plot

Each data value is split into a stem (all digits except the last) and a leaf (the last digit). Leaves are written in order next to their stem.

Test Scores of 20 Students Stem Leaf 6 3 5 8 7 0 2 4 5 7 9 8 1 3 3 5 6 7 8 9 0 2 4 5 Key: 7 | 4 = 74 mode row

Recognizing Shape

Symmetric Skewed Right tail stretches right Skewed Left tail stretches left

Choosing the Right Bin Width

The bin width (class width) of a histogram controls how much detail you see. There is no single "correct" choice, but guidelines help.

1
Sturges' Rule: Use approximately \( k = 1 + 3.322 \log_{10}(n) \) bins, where \( n \) is sample size.
2
Bin width formula: \(\text{width} = \frac{\text{max} - \text{min}}{k}\). Round to a convenient number.
3
Trial and error: Try several bin widths. The "best" histogram reveals the shape without too much noise or over-smoothing.

How to Build a Histogram

1
Sort the data and identify the minimum and maximum values.
2
Choose bin width using Sturges' Rule or a round number. Decide on the starting boundary.
3
Create a frequency table: tally how many data values fall in each bin. Use the convention \([\text{low}, \text{high})\).
4
Draw bars with heights equal to each bin's frequency. Bars must touch (no gaps).
5
Label axes: x-axis = variable name with units, y-axis = Frequency (or Relative Frequency). Add a title.

Example: Commute Times

Data (minutes): 5, 8, 12, 15, 15, 18, 20, 22, 25, 25, 28, 30, 32, 35, 42. Use bin width = 10, starting at 0.

2 4 6 Frequency 2 4 5 3 1 [0,10) [10,20) [20,30) [30,40) [40,50) Commute Time (min)

Example: Dotplot of Quiz Scores

Scores out of 10: 4, 5, 6, 6, 7, 7, 7, 8, 8, 8, 8, 9, 9, 10.

Quiz Scores (\( n = 14 \)) 4 5 6 7 8 9 10 mode = 8

Example: Back-to-Back Stem-and-Leaf

Compare two classes on the same test. A back-to-back stem-and-leaf plot shares the stems and fans leaves outward in both directions.

Back-to-Back Stem-and-Leaf Class A Stem Class B 8 5 6 2 7 9 9 6 3 1 7 0 4 5 8 7 5 4 2 0 8 1 3 6 8 9 5 2 9 0 3 7 Key: 3 1 | 7 | 0 4 means Class A = 71, 73; Class B = 70, 74

Common Mistakes

✕ Gaps Between Bars
Histogram bars must touch for continuous data. Gaps belong only in bar charts (categorical data).
✕ Unequal Bin Widths
If bin widths vary, you must use density on the y-axis, not frequency. Otherwise the visual is misleading.
✕ Naming Skew by the Peak
Skew is named by the tail, not the peak. A peak on the left with a right tail is right-skewed.

Comparison Summary

Feature Histogram Dotplot Stem-and-Leaf
Best for \( n \) Large (\( n \gt 30 \)) Small (\( n \lt 30 \)) Small-Medium
Shows individual values? No (grouped) Yes Yes
Shows shape? Yes Yes Yes (turn sideways)
Easy to compare 2 groups? Side-by-side Overlay colors Back-to-back
Bin width matters? Yes No Fixed by stems

Question 1 of 5

A histogram of household incomes in a city shows a long tail stretching toward very high values. This distribution is:

Question 2 of 5

In a stem-and-leaf plot with stem 4 and leaves 1 3 7 9, using key 4 | 3 = 43, the data values represented are:

Question 3 of 5

Which display is most appropriate for showing the distribution of ages of 200 marathon runners?

Question 4 of 5

A histogram has bars with no gaps between them. This is because:

Question 5 of 5

Using Sturges' Rule with \( n = 100 \), approximately how many bins should you use?