Lesson 10.2 · Data and Statistics
Dot plots, histograms and box plots
A list of numbers hides its story. A good picture shows at a glance where the data are centered, how spread out they are, what shape they make and whether anything unusual is going on. This lesson covers the three standard displays for one numerical variable (dot plots, histograms and box plots) and how to read the shape of a distribution from them.
Dot plots
A dot plot (or line plot) puts one mark above a number line for every value. It shows every single data point, so it works best for small data sets with a limited number of different values.
Worked example: Goals per game
A soccer team recorded the number of goals it scored in each of its games.
Find the median and the mean. What do you notice?
Median. With values, the median is the mean of the 9th and 10th values. Counting from the left, values 1–4 are s and values 5–10 are s. So the 9th and 10th values are both , and the median is 2 goals.
Mean. Multiply each value by how many times it occurs:
The mean is almost a whole goal higher than the median. Most games had to goals, but a few high-scoring games stretch out to the right and pull the mean toward them.
The shape of a distribution
The pattern of a data set, meaning which values occur and how often, is called its distribution. The goals data pile up on the left and trail off to the right. That trailing part is called a tail.
Definition
Shapes of distributions
- Symmetric: the left and right sides are roughly mirror images. Many values sit near the middle.
- Skewed right: a long tail stretches to the right, toward larger values.
- Skewed left: a long tail stretches to the left, toward smaller values.
- Uniform: all values occur about equally often; the display looks flat.
- Bimodal: there are two separate peaks, which often means two different groups were mixed together.
The direction of a skew is the direction of the tail, not the direction of the peak. The goals data have their peak on the left and their tail on the right, so they are skewed right.
Shape tells you mean versus median
The mean is pulled toward the tail, and the median is not.
- Skewed right: mean greater than median.
- Skewed left: mean less than median.
- Symmetric: mean and median are about equal.
That's why the median (with the IQR) is the better summary for skewed data.
Histograms
For large data sets or data with many different values, a dot plot gets crowded. A histogram groups the values into bins (intervals) of equal width and draws a bar for each bin. The height of the bar is the number of values in that bin, its frequency. The bars touch because the bins cover the number line with no gaps.
A value that lands on the edge between two bins goes in the bin to its right. In the histogram below, the first bar covers commutes from minutes up to (but not including) minutes, and a -minute commute is counted in the second bar.
Worked example: Reading a histogram
- Describe the shape.
- What percent of the employees commute minutes or more?
- Which bin contains the median?
Solutions.
- The bars peak on the left and trail off to the right, so the distribution is skewed right.
- The bins from up are employees. , so about 33.3%.
- With values, the median is between the 15th and 16th values. The first bar holds values 1–3, the second holds 4–12, and the third holds 13–20. So both the 15th and 16th values are in the 20 to 30 minute bin.
A histogram tells you how many values fall in each bin, but not the exact values. You can find the bin that holds the median, but not the median itself.
Box plots and outliers
A box plot is drawn from the five-number summary: minimum, , median, and maximum. The box runs from to with a line at the median, and whiskers reach out to the smallest and largest values. Each of the four sections holds about a quarter of the data.
In high school statistics you'll usually see a modified box plot, which shows outliers. Use the rule from the last lesson: each whisker stops at the most extreme value that is not an outlier, and each outlier is drawn as a separate dot.
Worked example: A modified box plot
Twelve people ran a 5 km fun run. Their times, in minutes, were
Make a modified box plot.
Five-number summary. The median is . The lower half is , so . The upper half is , so .
Outliers. and . The fences are and . The time is above , so it is an outlier. Nothing is below .
Draw it. The box runs from to with a line at . The left whisker reaches . The right whisker stops at , the largest value that is not an outlier, and gets its own dot.
Common mistake
A box plot does not show how many values there are, and a longer section does not mean more values. Every section holds about of the data; a long section just means those values are spread out. A box plot also hides some shape details: a bimodal data set can have a perfectly ordinary-looking box plot.
Comparing distributions
To compare two groups, draw their displays on the same scale and discuss four things: shape, center, spread and outliers. Use the median and IQR if either group is skewed or has outliers, and the mean and standard deviation if both are roughly symmetric.
Worked example: Two cities in April
The box plots show the daily high temperatures in two cities during April.
Compare the two distributions.
- Center. City Q's median () is higher than City P's (), so City Q was typically a little warmer.
- Spread. City P's IQR is and City Q's is . City P's temperatures varied much more from day to day. The ranges agree: for P versus for Q.
- Overlap. City P had both the coldest day () and the hottest day (). Even though City Q was usually warmer, you couldn't count on it being warmer on any given day.
Tip
Choosing a display: use a dot plot for a small data set where you want to see every value; a histogram for a large data set where the overall shape matters; and box plots to compare several groups side by side or to flag outliers.
Practice
The dot plot shows the scores of students on a -point quiz. How would you describe its shape?
Use the quiz-score dot plot from the previous problem. What is the mean score?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A histogram of the prices of houses sold in a city is strongly skewed right. Which statement is most likely true?
The histogram shows the battery life of phones. What percent of the phones lasted hours or more?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The box plot shows the ages of the people on a guided tour. What is the interquartile range?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
A data set has this five-number summary: minimum , , median , , maximum . Its modified box plot shows the maximum as an outlier dot. What is the upper fence that the maximum is above?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
The box plots show the points two basketball teams scored per game in a youth league. Which statement is supported by the plots?
A box plot summarizes the heights of sunflowers. About how many of the sunflowers have heights between and the median?
Enter a number. Fractions like 3/4 and sqrt(2) are OK.