How should we choose among common statistical charts?
Choose charts by data characteristics and research goals: category comparisons, numerical distributions, changes over time, and relationships between variables.
Bar charts and pie charts: compare categories or examine composition?
A class survey asks 40 students about their main way of getting to school (illustrative teaching data). Both charts use the same data but answer different questions.
Change survey results
Total: 40 students. The categories are mutually exclusive, and the proportions in the pie chart sum to 100%.
Pie chart: examine each category's proportion of the whole; comparisons are harder with many categories or similar proportions.
Histograms and stem-and-leaf plots: how do we display a score distribution?
For the same set of 40 students' exam scores, a histogram shows the overall distribution, while a stem-and-leaf plot retains the individual observed values.
Histogram
Stem-and-leaf plot
Key: 7 │ 3 represents 73 points; the stem is the tens digit and the leaf is the ones digit. Leaves are sorted in ascending order.
Line charts: how do data change over time?
A platform's monthly active user index over a year (illustrative teaching data). A line chart suits data ordered in time and their successive trends.
- Month 1 index
- 110
- Month 12 index
- 206
- First-to-last rate of change
- 87.3%
Change time series
Scatterplots: how are two numerical variables related?
Each point represents one observational unit. The horizontal and vertical axes correspond to two numerical variables (illustrative teaching data).
Current chart: An overall positive association. Use the controls on the right to move the yellow point.
Switch variable relationship
Identify the data and question, then choose a chart
No single statistical chart suits every data set. First ask yourself: what type of data do I have? Do I want to show counts, composition, a distribution, a time trend, or a relationship between variables?
| Main goal | Common chart |
|---|---|
| Compare frequencies across categories of a categorical variable | Bar chart |
| Display category proportions | Pie chart |
| Display a numerical data distribution | Histogram, stem-and-leaf plot |
| Display a trend over time | Line chart |
| Examine the relationship between two numerical variables | Scatterplot |
Class exercise: choose a chart
1. Which chart is the first choice for comparing student counts by major?
2. Which chart suits examining the continuous distribution shape of 40 students' scores?
3. Which chart suits displaying the CPI trend in a region over the past 12 months?
4. Which chart suits examining whether study time and exam scores are related?
5. The sample is very small. Which chart lets you examine the score distribution while retaining every score?