Displaying Distributions with Graphs
Create and interpret histograms, dotplots, stemplots, bar graphs, and pie charts.
Try the Interactive Version!
Learn step-by-step with practice exercises built right in.
Displaying Distributions with Graphs
Choosing a Display
| Data Type | Best Graph | Why |
|---|---|---|
| One quantitative variable, small n | Dotplot | shows individual values |
| One quantitative variable, medium n | Stemplot | organizes and shows shape |
| One quantitative variable, large n | Histogram | groups into bins |
| One quantitative variable, compare groups | Parallel boxplots | side-by-side comparison |
| Cumulative distribution | Ogive | shows percentiles |
| Two quantitative variables | Scatterplot | shows relationship |
| Categorical variable | Bar chart / Pie chart | shows proportions |
Dotplot
Structure:
- Horizontal axis: values of variable
- Dots stacked vertically for each value
- One dot = one data point
Advantages: sees every individual value, shows gaps and clusters Disadvantages: crowded with large datasets
Stemplot (Stem-and-Leaf Plot)
Structure:
- Stem: tens digit (left side)
- Leaf: ones digit (right side)
- Leaves ordered left-to-right
Example: Dataset 12, 15, 18, 21, 23, 25
1 | 2 5 8
2 | 1 3 5
Interpreting: stem = 1, leaf = 2 means 12
Back-to-back stemplot: compare two distributions
Group A | stem | Group B
8 5 2 | 1 | 3 4 7
1 0 | 2 | 2 5 8
Histogram
Structure:
- Bins (class intervals) on x-axis
- Frequency (count) on y-axis
- Bars touch (data is continuous)
- Height = frequency (or relative frequency ÷ width)
Key choice: width of bins
- Too wide: lose detail
- Too narrow: too fragmented
Important: area of bar = relative frequency when using density scale
Boxplot
Structure:
- Box: from Q1 to Q3 (middle 50%)
- Line in box: median (Q2)
- Whiskers: extend to minimum/maximum (or 1.5·IQR rule)
- Dots: outliers beyond whiskers
Formula for outlier detection:
- Lower fence: \(Q1 - 1.5(IQR)\)
- Upper fence: \(Q3 + 1.5(IQR)\)
- Points outside fences are outliers
Ogive (Cumulative Distribution)
Structure:
- x-axis: values
- y-axis: cumulative relative frequency (0 to 1 or 0% to 100%)
- Points connected by line segments
- Always increasing (non-decreasing)
Use: find percentiles
- Read up from x-value to curve, then left to y-axis
- Or read left from y-axis to curve, then down to x-axis
Worked Example
Data: Test scores for 20 students: 62, 68, 71, 74, 74, 75, 77, 78, 80, 81, 82, 83, 85, 86, 87, 88, 90, 92, 94, 98
Stemplot:
6 | 2 8
7 | 1 4 4 5 7 8
8 | 0 1 2 3 5 6 7 8
9 | 0 2 4 8
Histogram (bins 60-70, 70-80, 80-90, 90-100):
- [60, 70): 2 students
- [70, 80): 6 students
- [80, 90): 8 students
- [90, 100]: 4 students
Boxplot: Q1 ≈ 74.5, Q2 ≈ 82.5, Q3 ≈ 87.5, range 62–98, no outliers
Common Mistakes
- Histogram bars not touching: bars should touch (continuous data)
- Mislabeling x-axis in stemplot: leaves must be single digit
- Ignoring class width in histogram: density = frequency ÷ width
- Outlier calculation: use 1.5·IQR rule (not "looks far away")
- Confusing relative vs. cumulative: ogive uses cumulative, histogram uses frequency
AP Exam Tip
When asked to "display" data, choose the method that best shows the feature in question:
- Comparing shapes of two distributions? → Parallel boxplots or back-to-back stemplots
- Seeing exact values? → Dotplot or stemplot
- Large dataset? → Histogram
- Finding a percentile? → Ogive
Always label axes and title your graph.
📚 Practice Problems
1Problem 1easy
❓ Question:
A teacher collects quiz scores: 8, 9, 9, 10, 10, 10, 11, 12, 12, 13. Create a stemplot for this data.
💡 Show Solution
Stemplot (Stem-and-Leaf Plot):
Wait, let me recalculate. Scores are: 8, 9, 9, 10, 10, 10, 11, 12, 12, 13
Better notation:
- 8 = stem 0, leaf 8 (or stem 8, leaf nothing)
- 9, 9 = stem 0, leaves 9, 9
- 10, 10, 10 = stem 1, leaves 0, 0, 0
- etc.
Or in traditional format:
Interpretation: Most scores cluster at 10; shape is roughly symmetric with a slight left skew (tail toward lower scores). No outliers.
2Problem 2medium
❓ Question:
Explain when you would use a dotplot vs. a histogram. Give an example for each.
💡 Show Solution
Dotplot: When to use
- Small datasets (roughly < 20–30 values)
- You want to see each individual point
- Data is discrete or you want to preserve exact values
- Patterns and clusters matter more than overall frequency
Example: 10 students' test scores: 78, 82, 82, 85, 88, 90, 90, 92, 95, 98
Each dot placed above a number line shows exact scores, and you can see two students scored 82, two scored 90, etc.
Histogram: When to use
- Large datasets (typically 30+ values)
- Data is continuous or has many distinct values
- You're interested in overall shape and frequency distribution, not individual points
- You want to group values into intervals (bins)
Example: Heights of 200 students
Instead of 200 individual dots, group heights into bins: 60–62", 62–64", 64–66", etc. Bars show how many students fall in each interval. The shape (symmetric, skewed, etc.) emerges clearly.
Key difference: Dotplots show individual data; histograms show distribution shape and patterns across groups.
3Problem 3hard
❓ Question:
A dataset has 500 values. How would you display it? Compare a histogram, boxplot, and dotplot in terms of what information each reveals.
💡 Show Solution
Histogram:
- Reveals: Full shape (symmetric, skewed, bimodal), exact frequency in each bin, where most data concentrates
- Best for: Overall distribution pattern
- Drawback: Bin width choice can mislead; loses individual data points
Boxplot:
- Reveals: Five-number summary (min, Q1, median, Q3, max), IQR (spread of middle 50%), identification of outliers, left/right skew
- Best for: Quick comparison of center and spread; identifying outliers
- Drawback: Hides the shape details (can't see if bimodal); loses frequency info
Dotplot:
- Reveals: Each exact data point, clustering, individual values
- Best for: Small datasets or when precision matters
- Drawback: With 500 points, it becomes unreadable — visual overload; impossible to see patterns
Recommendation for 500 values:
- Primary: Histogram for overall shape and distribution
- Secondary: Add boxplot alongside to highlight outliers and quartiles
- Skip dotplot — too many points obscure the view
This combination gives complete picture: shape (histogram) + resistant summary (boxplot).
⚠️ Common Mistakes: Displaying Distributions with Graphs
Avoid these 3 frequent errors
Practice with Flashcards
Rate this topic's cards with spaced repetition. Cards join your deck when you finish a topic's lesson and take its exit quiz.
Browse All Topics
Explore more AP Statistics topics