Statistics

Graphs for one variable

Dot plots, stemplots, boxplots, histograms, frequency polygons and ogives: how to build each one and what it shows.

Cheat sheet · Intro stats · AP Stats · 15 sections

1The data used on this sheet

Twenty test scores, in order: 52, 58, 61, 64, 66, 68, 70, 71, 73, 74, 75, 76, 78, 79, 81, 83, 85, 88, 92, 97. Their mean is 74.55 and their median is 74.5. The dot plot uses a second, smaller data set: the number of siblings of 15 students.

2Dot plot

0123456
Dot plot: number of siblings (15 students)
One dot per value, stacked. Best for small data sets with few distinct values.

3Reading a dot plot

Build it

Draw a number line, then put one dot above it for each value, stacking repeats.

ExampleSiblings 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 4, 6: five dots stack above 2

Center from the dots

Count to the middle dot for the median; the tallest stack is the mode.

Example15 dots, so the 8th is the median: 2 siblings. The mode is also 2.

Mean from the dots

Example

4Stemplot (stem-and-leaf plot)

StemLeaves
52 8
61 4 6 8
70 1 3 4 5 6 8 9
81 3 5 8
92 7

Key: 7 | 3 means 73. The stem is the tens digit and each leaf is a units digit, written in order. Turned on its side, a stemplot is a histogram that still shows every value.

5Building a stemplot

Split each value

Stem = all but the last digit; leaf = the last digit.

Example88 → stem 8, leaf 8. 103 → stem 10, leaf 3

Split stems

If there are too few stems, use each stem twice: leaves 0–4, then 5–9.

Example7 | 0 1 3 4 and 7 | 5 6 8 9

Back-to-back

Two groups share the stems, one on each side, to compare them.

ExampleClass A leaves on the left, class B on the right of the same stems 5 to 9

6Boxplot

Min 52Q₁ 67Median 74.5Q₃ 82Max 975060708090100
Boxplot of the 20 test scores
The box runs from Q₁ to Q₃ with a line at the median; the whiskers reach the smallest and largest values that are not outliers.

7Building a boxplot

Five-number summary

Min, Q₁, median, Q₃, max. Q₁ is the median of the lower half, Q₃ of the upper half.

ExampleScores: 52, 67, 74.5, 82, 97 (lower half 52…74 has median 67; upper half 75…97 has median 82)

IQR

Example

Fences

Values outside the fences are outliers, drawn as separate dots (a modified boxplot).

Example and : every score is inside, so no outliers

Reading the shape

A longer right whisker or the median near Q₁ suggests right skew; the reverse suggests left skew.

ExampleMedian 74.5 sits near the middle of 67 and 82, and the whiskers are 15 and 15: roughly symmetric

8Frequency table (class width 10)

ClassMidpointFrequencyRelative frequencyCumulative frequencyCumulative relative
50–5954.520.1020.10
60–6964.540.2060.30
70–7974.580.40140.70
80–8984.540.20180.90
90–9994.520.10201.00

The histogram, frequency polygon and ogive below are all drawn from this table.

9Frequency table formulas

Class width

Round up to a convenient number.

Example, rounded up to 10

Midpoint

ExampleClass 70–79:

Relative frequency

ExampleClass 70–79:

Mean from a frequency table

Example, so (the exact mean is 74.55)

10Histogram

0485060708090100Test scoreFrequency24842
Histogram
Bars touch, because the classes cover the number line with no gaps. The height is the count (or the relative frequency).

11Frequency polygon

048405060708090100110Test scoreFrequency
Frequency polygon
Plot each class's frequency at its midpoint and join the points; close it at zero one class beyond each end.

12Ogive

00.250.50.75149.559.569.579.589.599.5Upper class boundarymedian ≈ 74.5
Ogive (cumulative relative frequency)
Plot the cumulative relative frequency at each upper class boundary. Read percentiles across from the vertical axis.

13Reading an ogive

Upper boundary

Halfway between one class's upper limit and the next class's lower limit.

ExampleClasses 60–69 and 70–79: boundary 69.5

Median (50th percentile)

L is the lower boundary of the class where the ogive crosses 0.5; F is the cumulative relative frequency below it, f the class's relative frequency, w the width.

Example

Any percentile

Go across from the percentile on the vertical axis to the curve, then down.

Example90th percentile: the curve reaches 0.90 at 89.5

14Which graph to use

GraphBest forShows each value?
Dot plotSmall data sets, few distinct valuesYes
StemplotUp to about 50 valuesYes
BoxplotComparing groups; spotting outliersNo (five numbers only)
HistogramLarger data sets; shapeNo
Frequency polygonComparing two distributions on one graphNo
OgivePercentiles and "how many below x"No

15Describing a distribution

Always cover four things, in context: shape (symmetric, skewed, uni- or bimodal), center (median or mean), spread (IQR or standard deviation, range) and unusual features (outliers, gaps, clusters). For example: the scores are roughly symmetric and single-peaked, centered near 74.5, with an IQR of 15 and no outliers.

Related