01 · Learn the idea
Two questions to ask about any data set
Before you choose a display or read one, ask two questions about the data.
First: is the data numerical or categorical? Numerical data are counts or measurements, such as height in centimeters or the number of pets. It makes sense to add them and average them. Categorical data are labels that sort individuals into groups, such as eye color or favorite sport.
Some labels are written with digits. A jersey number or a zip code is categorical, because it names something and is not an amount. The test is whether an average would mean anything.
Second: is the data univariate or bivariate? Univariate data record one variable for each individual, such as the height of each student. Bivariate data record two variables for each individual, such as the height and the arm span of each student. Bivariate data let you ask how the two variables are related.
The two answers together give four kinds of data: numerical univariate, numerical bivariate, categorical univariate and categorical bivariate.
02 · Build understanding
Match the display to the data
Numerical univariate data can be shown with a histogram, a stem-and-leaf plot, a box plot or a line plot (also called a dot plot). A histogram groups the values into equal intervals and draws a bar for the count in each. It shows the shape of a large data set well, but you can no longer see the individual values. A stem-and-leaf plot and a line plot keep every value, which is useful for small data sets and clumsy for large ones. A box plot shows the minimum, first quartile, median, third quartile and maximum. It is good for comparing groups, but it hides the number of values and any clusters or gaps.
Numerical bivariate data can be shown with a scatter plot or a line graph. A scatter plot puts one point on the plane for each individual and shows whether the two variables rise or fall together. A line graph connects points in order and is used when one variable is time, to show change over time.
Categorical univariate data can be shown with a bar chart, a circle graph, a line plot, a frequency table or a relative frequency table. A bar chart makes it easy to compare the counts of the categories. A circle graph shows each category as a part of the whole, but close slices are hard to compare. A frequency table lists exact counts, and a relative frequency table lists each count as a fraction or percent of the total.
Categorical bivariate data can be shown with a segmented bar chart, a joint frequency table or a joint relative frequency table. Each one shows how the categories of one variable split across the categories of the other.
Whatever you choose, label it. Give a title, name each axis and include the units, so a reader knows what was measured.
03 · Build understanding
Worked example: choose a display for a survey
A club asks each of its 50 members to pick a favorite event. The results are trivia night: 20, karaoke: 18 and board games: 12. Choose a display.
Step 1: Decide numerical or categorical. Each member gave a label (trivia night, karaoke or board games), not a measurement. The data are categorical. The numbers 20, 18 and 12 are counts of members, not the data values themselves.
Step 2: Decide univariate or bivariate. One variable was recorded for each member, the favorite event. The data are univariate.
Step 3: List the displays that fit categorical univariate data: bar chart, circle graph, line plot, frequency table or relative frequency table.
Step 4: Pick by what you want the reader to see. To compare the counts, use a bar chart: bars of heights 20, 18 and 12 make it clear that trivia night leads karaoke by 2 members. To show shares of the whole club, use a circle graph or a relative frequency table: 20/50 = 40%, 18/50 = 36% and 12/50 = 24%.
Step 5: Check the relative frequencies. 40% + 36% + 24% = 100%, and 20 + 18 + 12 = 50 members, so nothing was left out.
A histogram would be wrong here. A histogram needs a number line of values split into intervals, and event names have no order or distance between them.
04 · Build understanding
Worked example: read center and spread
The lengths, in minutes, of 11 bus rides are 12, 15, 15, 18, 20, 21, 24, 25, 28, 30, 45. These are numerical univariate data. Find the median, the quartiles, the range and the interquartile range, and describe the box plot.
Step 1: Put the values in order. They are already in order from least to greatest.
Step 2: Find the median, the middle value. With 11 values the middle one is the 6th, so the median is 21 minutes.
Step 3: Find the quartiles. In this lesson the first quartile, Q1, is the median of the lower half and the third quartile, Q3, is the median of the upper half. When the number of values is odd, leave the middle value out of both halves. The lower half is 12, 15, 15, 18, 20, so Q1 = 15. The upper half is 24, 25, 28, 30, 45, so Q3 = 28.
Step 4: Find the spread. The range is the maximum minus the minimum: 45 − 12 = 33 minutes. The interquartile range, or IQR, is Q3 − Q1 = 28 − 15 = 13 minutes. The IQR is the spread of the middle half of the data.
Step 5: Describe the box plot. Above a number line of minutes, the box runs from 15 to 28 with a line inside it at 21. The left whisker runs from the box down to 12, and the right whisker runs from the box up to 45.
Step 6: Read the shape and check it with the mean. The right whisker is 45 − 28 = 17 minutes long and the left whisker is only 15 − 12 = 3 minutes long, so the data stretch out to the right. This shape is called skewed right. The values add to 253, so the mean is 253/11 = 23 minutes. The mean is greater than the median, 21, because the one long ride of 45 minutes pulls the mean up.
05 · Build understanding
Worked example: read a histogram
A histogram shows the quiz scores of 30 students. The horizontal axis is the score, in intervals of ten points, and the vertical axis is the number of students. The bar for 50 to 59 has height 3, the bar for 60 to 69 has height 5, the bar for 70 to 79 has height 10, the bar for 80 to 89 has height 8 and the bar for 90 to 99 has height 4.
Step 1: State the type of data. A quiz score is a number and there is one score per student, so the data are numerical univariate.
Step 2: Check the total. 3 + 5 + 10 + 8 + 4 = 30 students, which matches.
Step 3: Answer a question about a group of bars. How many students scored 80 or higher? Add the last two bars: 8 + 4 = 12 students. As a percent, 12/30 = 40%.
Step 4: Find the interval that holds the median. With 30 scores, the median is halfway between the 15th and 16th scores. Count up the bars: the first bar reaches the 3rd score, the second reaches the 8th and the third reaches the 18th. So the 15th and 16th scores are both in the bar for 70 to 79, and the median is between 70 and 79.
Step 5: Say what you cannot know. The histogram does not show the individual scores. You cannot tell the exact median, the highest score or whether anyone scored exactly 75. That is the price of grouping.
06 · Build understanding
Three mistakes to watch for
Treating number labels as numerical data. Three players wear jersey numbers 7, 12 and 23. Their mean is 14, but 14 tells you nothing about the team. Jersey numbers are categorical, so a histogram or a box plot of them is meaningless.
Reading the height of a histogram bar as a data value. In the quiz histogram, the bar for 70 to 79 has height 10. That means 10 students scored from 70 to 79. It does not mean anyone scored 10.
Thinking a longer part of a box plot holds more data. In the bus ride box plot the right whisker is 17 minutes long and the left whisker is 3 minutes long. Each of the four parts of a box plot holds about one quarter of the values. A long part means its values are spread out, not that there are more of them.
Apply and explain
Your turn
A teacher has the number of minutes each of 28 students spent on homework last night. She draws a circle graph with one slice for each student. Explain why this is a poor choice, and name a better display and what it would show.
Use paper or explain your thinking aloud before opening the solution.
Check your reasoning
The data are numerical and univariate: one measurement, minutes, for each student. A circle graph is for categorical data, where each slice is a category shown as a part of the whole. A slice per student does not show how the times are spread out. A histogram, a box plot or a line plot fits numerical univariate data. A histogram, for example, would show the shape of the times, where most students fall and whether a few students spent much longer than the rest.
- Identifies the data as numerical and univariate.
- Explains that a circle graph is meant for categories as parts of a whole.
- Names a display that fits (histogram, box plot, line plot or stem-and-leaf plot) and says what it shows about center, spread or shape.
Ready to practice?
Try the questions, get feedback, and review your reasoning.
Choose and read data displays: practice →