01 / 22

Quantitative Variables
Represented with Graphs

Learn to choose and construct histograms, dotplots, stemplots, and boxplots to display the distribution of quantitative data.

AP Statistics

What Is a Quantitative Variable?

A quantitative variable takes numerical values for which arithmetic operations like adding and averaging make sense. Examples: height in centimeters, exam scores, household income.

Discrete
Countable values: number of siblings, goals scored, AP exams taken.
Continuous
Any value in an interval: temperature, time to finish a race, weight.

Describing the Distribution

When you describe a distribution, always address these four features using the mnemonic SOCS:

S
Shape: symmetric, skewed left, skewed right, unimodal, bimodal, uniform.
O
Outliers: any data points that fall far outside the overall pattern.
C
Center: a typical or representative value (mean or median).
S
Spread: how much variability: range, IQR, or standard deviation.

Why Graph Your Data?

A table of numbers hides patterns. A well-chosen graph reveals them instantly. Consider these 15 exam scores:

0 1 2 3 4 5 6 60-69 70-79 80-89 90-99 3 6 4 2 Exam Score Frequency

Immediately we see the distribution is unimodal, centered in the 70s, with scores spread from 62 to 97.

Four Key Graph Types

Dotplot
A dot for each observation above a number line. Best for small data sets.
Histogram
Bars show frequency of values within equal-width intervals (bins).
Stemplot
Splits each value into a "stem" and "leaf". Preserves individual data.
Boxplot
Displays the five-number summary: min, \(Q_1\), median, \(Q_3\), max.

Building a Histogram

1
Choose equal-width bins. Divide the range of data into non-overlapping intervals of the same width.
2
Count frequencies. Tally how many observations fall in each bin.
3
Draw bars. Heights represent frequency (or relative frequency). Bars touch: no gaps between them.
4
Label axes. Horizontal axis: variable name and units. Vertical axis: frequency or relative frequency.

The Dotplot

Each observation gets its own dot, stacked above a number line. Here are quiz scores for 20 students:

3 4 5 6 7 8 9 10 Quiz Score (out of 10)

The Stemplot (Stem-and-Leaf)

A stemplot preserves the actual data values. The stem is the leading digit(s); the leaf is the last digit. Here is a stemplot for the 15 exam scores from earlier:

Stem Leaf 6 2 5 8 7 0 2 4 5 6 8 8 0 2 5 8 9 1 7 Key: 7 | 5 = 75

The Boxplot and Five-Number Summary

A boxplot displays the five-number summary: minimum, \(Q_1\), median, \(Q_3\), maximum. Outliers are plotted as individual points.

60 70 80 90 100 Min 62 \(Q_1\) 70 Med 76 \(Q_3\) 85 Max 97 Exam Score

Histogram vs. Bar Chart

Histogram Bar Chart
Data type Quantitative Categorical
Bars Touch (no gaps) Separated by gaps
Horizontal axis Continuous number line Category labels
Bar order Fixed by number line Can be rearranged
Area of bar Proportional to frequency Height alone encodes value

Recognizing Shape

Symmetric
Left and right halves are roughly mirror images. \(\text{Mean} \approx \text{median}\).
Skewed Right
Tail stretches toward larger values. \(\text{Mean} > \text{median}\).
Skewed Left
Tail stretches toward smaller values. \(\text{Mean} < \text{median}\).
Symmetric Skewed Right Skewed Left

Choosing the Right Graph

1
Small dataset (\(n < 25\)): Use a dotplot or stemplot. Every value is visible.
2
Moderate to large dataset: Use a histogram. It summarizes shape and spread efficiently.
3
Comparing distributions: Use side-by-side boxplots or back-to-back stemplots.
4
Highlighting the five-number summary: Use a boxplot. It emphasizes quartiles and outliers.

Example: Constructing a Histogram

The number of minutes 20 students spent on homework last night:

Using bins of width 10 starting at 0 (e.g., [0, 10), [10, 20), etc.):

0 1 2 3 4 5 1 3 5 5 3 2 1 0 10 20 30 40 50 60 70 Minutes of Homework Frequency

Shape: roughly symmetric. Center: around 30 minutes. Spread: 5 to 60 minutes.

Example: Outliers in a Boxplot

Data: daily high temperatures (\(^{\circ}\text{F}\)) over 12 days:

Five-number summary: Min = 55, \(Q_1\) = 61, Median = 65.5, \(Q_3\) = 71, Max = 95.

The IQR is \(\text{IQR} = Q_3 - Q_1 = 71 - 61 = 10\). The upper outlier fence is \(Q_3 + 1.5 \times \text{IQR} = 71 + 1.5(10) = 86\). Since \(95 > 86\), it is an outlier.

50 60 70 80 90 100 95 (outlier) 55 61 65.5 71 75

Example: Relative Frequency Histogram

Instead of raw counts, the vertical axis shows the proportion (relative frequency) of observations in each bin. Each bar height = \(\frac{\text{count in bin}}{n}\).

0 0.10 0.20 0.25 0.05 0.15 0.25 0.25 0.15 0.10 0.05 0 10 20 30 40 50 60 70 Minutes of Homework Relative Frequency

Common Mistakes

✕ Gaps in Histograms
Leaving spaces between bars suggests categorical data. Histogram bars must touch.
✕ Forgetting Labels
Unlabeled axes earn no credit. Always include variable name, units, and scale.
✕ Wrong Graph Type
Using a bar chart for quantitative data or a histogram for categorical data.
✕ Ignoring SOCS
Describing only one feature. Always address shape, outliers, center, and spread.

Summary: Graph Comparison

Dotplot Histogram Stemplot Boxplot
Best for Small \(n\) Any \(n\) Small \(n\) Comparing groups
Shows shape? ✓ ✓ ✓ Partially
Individual values? ✓ ✕ ✓ ✕
Shows outliers? ✓ Sometimes ✓ ✓
Shows \(Q_1\), median, \(Q_3\)? ✕ ✕ ✕ ✓

Question 1 of 5

A histogram of household incomes in a city is skewed right. Which statement is most likely true?

Question 2 of 5

Which feature distinguishes a histogram from a bar chart?

Question 3 of 5

For a dataset with \(Q_1 = 20\), \(Q_3 = 40\), and \(\text{IQR} = 20\), any observation above what value would be considered an outlier?

Question 4 of 5

You want to compare the distributions of test scores for three different classes. Which graph type is most appropriate?

Question 5 of 5

In a relative frequency histogram, the heights of all bars sum to: