Topic contents

Lesson 2

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.

051015Walking · Number of students: 16WalkingBus · Number of students: 12BusCycling · Number of students: 8CyclingOther · Number of students: 4Other
Bar charts and pie charts

Change survey results

Total: 40 students. The categories are mutually exclusive, and the proportions in the pie chart sum to 100%.

Bar chart: compare counts across categories using lengths.

Pie chart: examine each category's proportion of the whole; comparisons are harder with many categories or similar proportions.

Class discussion: which chart is better for comparing the exact numbers of students who walk and take the bus? Why?

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

0510406080100Score (points)
Scores (lower class limits; include the lower limit and exclude the upper limit)
Adjacent rectangles have no gaps between categories. All classes here have the same width, so bar heights are proportional to frequencies. With unequal class widths, use frequency density for heights so that areas represent frequencies or relative frequencies.

Stem-and-leaf plot

StemLeaf48525796023456789700123455678980123456799013587 │ 3 = 73

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.

A stem-and-leaf plot suits relatively small data sets; it displays the distribution while retaining the original values.
Observe: how does changing class width affect the histogram's shape? Does this reduce the original data retained in the stem-and-leaf plot?

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 1Month 3Month 6Month 9Month 12100150200Monthly active user index1, 1102, 1223, 1184, 1335, 1496, 1557, 1638, 1579, 17910, 19011, 18612, 206
Line charts and changes over time
Month 1 index
110
Month 12 index
206
First-to-last rate of change
87.3%

Change time series

Connecting points helps identify trends, but cannot automatically establish that the actual daily values between two months follow a straight line.
Class discussion: why is a line chart better than a pie chart for comparing a trend over 12 months?

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).

0246810Study effort (illustrative)020406080100Score (illustrative)1, 132, 293, 304, 485, 556, 597, 548, 729, 7310, 82
Scatterplots and relationships

Current chart: An overall positive association. Use the controls on the right to move the yellow point.

To match this book's blue and black palette, the original chart's "yellow point" is highlighted here as a large blue dot.

Switch variable relationship

A scatterplot helps identify direction, shape, outliers, and possible groups, but association does not imply causation. This lesson does not yet calculate a correlation coefficient or regression line.
Class discussion: how would moving the yellow point far from the other points affect your judgment about the relationship between the variables?

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 goalCommon chart
Compare frequencies across categories of a categorical variableBar chart
Display category proportionsPie chart
Display a numerical data distributionHistogram, stem-and-leaf plot
Display a trend over timeLine chart
Examine the relationship between two numerical variablesScatterplot
Several charts may suit the same data. Consider the audience, amount of data, and communication goal; there is no rigid one-to-one correspondence.

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?