Access this content offline
Omniguides
Skip to the reading

1.3 Numerical Summaries of Quantitative Data

Section Overview

Introduction to Boxplots

Previously, we discussed using numbers to describe aspects of a distribution, such as the range to describe the spread and the median to describe the center. In this section, we’ll be introducing additional ways to describe the shape, center, spread, and any unusual features for a different type of graph: the boxplot (also called a box-and-whisker plot).

Shape — The shape of a boxplot can be described in terms of its symmetry like the other graphs. A boxplot is left-skewed if the observations to the left of (or smaller than) the median are more varied from one another than the observations to the right of (or larger than) the median, and vice versa for right-skewed. Of course, a boxplot is symmetric if the observations are evenly varied on either side of the median. However, we can no longer use peaks to describe shape because a boxplot lacks the capability to display them. Examples of boxplots with differing symmetries can be seen in Gallery 1.3.1.

Center — We can still use the median as a measure of center for a boxplot. We can compare this to another measure of center, the mean, which is also written as xˉ\bar{x}. The mean can be calculated as follows:

Mean=Sum of Observation ValuesTotal Number of Observations\text{Mean}=\frac{\text{Sum of Observation Values}}{\text{Total Number of Observations}}

Spread — Expanding on the range, we have the Interquartile Range (IQR), or the difference between the 1st quartile (Q₁) and the 3rd quartile (Q₃), or

IQR=Q3−Q1.IQR=Q_3-Q_1.

Q₁ is the median of the values that are smaller than the median proper when the observations are numbered from least to greatest. Similarly, Q₃ is the median of the values that are greater than the median proper when the observations are numbered from least to greatest. We also introduce the standard deviation, which is also written as sxs_x; it is roughly the average distance of the values of the observations from the mean. The square of the standard deviation is called the variance, or sx2s_x^2.

Unusual Features — In this section, we can formally call an observation an outlier if:

Observation<Q1−1.5(IQR), or\text{Observation}<Q_1-1.5(IQR),\text{ or}
Observation>Q3+1.5(IQR)\text{Observation}>Q_3+1.5(IQR)

Creating the Boxplot

We can sketch a boxplot if we know the smallest observation (the minimum), the largest observation (the maximum), Q₁, Q₃, and the median of a distribution, also called its five-number summary. The box is made up of the two quartiles and the median, and whiskers are made up of the smallest and largest observations. If the largest or smallest observations also happen to be outliers, then we use a dot to represent the outlier and use the next largest or smallest observations to make up the whiskers. Refer to Gallery 1.3.2 for learning how to create a boxplot on the calculator.

Recorded calculator statistics

StatisticL1: RusticvilleL2: Urbanopolis
Mean, x̄−1.2512.875
Σx−30309
Σx²22708273
Sx9.852…13.665
σx9.645…13.377
n2424
minX−16−9
Q1−8.51.5
Med−2.511.5
Q33.524.5
maxX2439
Source gap (S0047): Source instruction: this frame says “2nd>1 to select L2” while the earlier frame uses the same button sequence to select L1. The recorded instruction is retained.
Source gap (S0049): Source image and caption differ: the caption instructs selection of the boxplot with outliers, while the screenshot visibly highlights the scatterplot icon and displays “Ylist:1”. The original frame is preserved.

Resistant Measures

When we look at a boxplot and determine its symmetry, we can also determine what measures of center and spread are best for describing the distribution. If the boxplot is skewed and/or has outliers, then we should use the median and the IQR. This is because the median and the IQR are resistant measures of center and spread, or unaffected by extreme observations.

To illustrate this: if you list the observations in a distribution from least to greatest and change the value of every observation except for the median or either of the two quartiles, the values of the median and the IQR do not budge (assuming the values you changed don’t force you to reorder the distribution and declare a new median!) This also applies to Q₁ and Q₃, the two measures that make up the IQR, since they are also medians within the distribution.

Otherwise, use the mean and the standard deviation to describe the distribution. This is especially important when comparing parallel boxplots, or two boxplots shown side-by-side.

Example 1.3.1

You’ve recently just graduated from college and have received job offers from firms in two separate cities: Rusticville and Urbanopolis. The offers are near-identical, so you want to know what the weather is like in each city. The following table displays the bi-monthly temperature readings for both cities:

MonthRusticville Temperatures (°C)Urbanopolis Temperatures (°C)
January−12−4
January−11−3
February−10−1
February−90
March−66
March−57
April−212
April−115
May017
May120
June928
June1129
July1836
July2439
August425
August626
September221
September324
October−49
October−311
November−83
November−74
December−16−9
December−14−6

Create parallel boxplots and compare the distributions using the measures of a) shape, b) center, c) spread, and d) any unusual features you find. What conclusions can we draw from our findings?

Example 1.3.1 — recorded solution

a) Shape: When the boxplot is sketched by hand or generated on a calculator (refer to Gallery 1.3.2), we can see that the Rusticville and Urbanopolis distributions are both right-skewed.

b) Center: The distributions are skewed, so we will use the median as our measure of center. There is an even number of observations for both distributions, so the median will be the average of the two innermost observations. When the observations are ordered from least to greatest, we find the median for the Rusticville observations to be −2.5°C and 11.5°C for the Urbanopolis observations.

We can also use the calculator to find these values (See Gallery 1.3.2). On the same screen, you should find the means for each distribution, calculated to be xˉ=−1.25∘C\bar{x}=-1.25^\circ\mathrm{C} for Rusticville and xˉ=12.875∘C\bar{x}=12.875^\circ\mathrm{C} for Urbanopolis.

c) Spread: The distributions are skewed, so we will use the IQR as our measure of spread.

For Rusticville, Q1=−8.5∘CQ_1=-8.5^\circ\mathrm{C} and Q3=3.5∘CQ_3=3.5^\circ\mathrm{C}, making our IQR=3.5−(−8.5)=12∘CIQR=3.5-(-8.5)=12^\circ\mathrm{C}

For Urbanopolis, Q1=1.5∘CQ_1=1.5^\circ\mathrm{C} and Q3=24.5∘CQ_3=24.5^\circ\mathrm{C}, making our IQR=24.5−1.5=23∘CIQR=24.5-1.5=23^\circ\mathrm{C}.

We can also use the calculator to find these values as shown in Gallery 1.3.2. On the same screen, you should find the standard deviations for each distribution, calculated to be sx=9.852∘Cs_x=9.852^\circ\mathrm{C} for Rusticville and sx=13.665∘Cs_x=13.665^\circ\mathrm{C} for Urbanopolis.

d) Unusual Features: We can find any outliers by plugging Q₁, Q₃, the IQR, and the largest and smallest observations into the outlier inequality:

Observation<Q1−1.5(IQR), or\text{Observation}<Q_1-1.5(IQR),\text{ or}
Observation>Q3+1.5(IQR)\text{Observation}>Q_3+1.5(IQR)

If the inequality is true, then the observation is an outlier. For Rusticville we have:

−16<−8.5−1.5(12), simplifying to:-16<-8.5-1.5(12),\text{ simplifying to:}
−16<−26.5, and-16<-26.5,\text{ and}
24>3.5+1.5(12), simplifying to: 24>21.524>3.5+1.5(12),\text{ simplifying to: }24>21.5

Only the second inequality is true, so 23°C is the outlier for the Rusticville distribution.

For Urbanopolis, we have:

−9<1.5−1.5(23), simplifying to: −9<−33-9<1.5-1.5(23),\text{ simplifying to: }-9<-33
39>24.5+1.5(23), simplifying to: 39>5939>24.5+1.5(23),\text{ simplifying to: }39>59

Neither of the inequalities are true, so there are no outliers for the Urbanopolis distribution.

Looking at the two boxplots, we see that Rusticville in general has much cooler weather than Urbanopolis, but we also see that the weather also varies less in Rusticville than in Urbanopolis. When making the decision of which city to move to, you have to take these factors into consideration. For instance, if you liked warm weather, but due to your crippling college debt could only afford a tiny studio apartment, then you might want to move to Rusticville, since you’d probably likely only be wearing warm clothing there.

Source gap (S0054): Source inconsistency: the recorded solution calls the Rusticville outlier “23°C”. The source table, inequality, calculator maximum, and annotated boxplot identify 24°C. The recorded sentence is retained.

Interactive 1.3.1 Example 1.3.1

Parallel temperature boxplots, in degrees Celsius, annotated Rusticville and Urbanopolis. Rusticville: minimum −16, Q1 −8.5, median −2.5, Q3 3.5, largest nonoutlier 18, outlier 24. Urbanopolis: minimum −9, Q1 1.5, median 11.5, Q3 24.5, maximum 39. The horizontal axis runs approximately −15 to 40 and a dotted vertical line marks zero. Open full-size image S0055
Source gap (S0055): The captured interactive shows the “Rusticville” and “Urbanopolis” annotation labels and their pointers, with all boxplot values visible. No opened annotation-panel text is recorded.

Pop Quiz 1.3.1

Question 1 of 5

If a distribution is right-skewed with no outliers, then which of the following is true?

Question 2 of 5

Which of the following is correct about standard deviation: (1) It shows how much variation from the average exists, (2) It is the variance squared, (3) It is expressed in the same units as data

Question 3 of 5

If you are weighing baby honey badgers on a scale, the correct units for variation is

Question 4 of 5

If the first quartile is 40 and the IQR is 20, then which of the following observations below is NOT an outlier?

Question 5 of 5

The mean salary of all female and male part time workers for a construction company is $15 000 and $20 000, respectively. If there are more female than male workers, then the mean

Source gap (S0056): All five quiz questions and choices are captured before checking an answer. No source answer key or feedback state is recorded.
Glossary and deeper reading · 11 refreshers

These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.

  • Range of data

    The range of a data set is its maximum value minus its minimum value. It measures spread and is sensitive to extreme observations. For example, values from 3 to 11 have a range of 8.

  • Median

    The median is the middle of an ordered numerical data set. For an even number of observations, it is the average of the two middle values under the usual convention. For example, the median of 2, 4, and 20 is 4.

    Read more: Median in the captured Statistics reading →

  • Left-skewed distribution

    A left-skewed distribution has a longer tail toward smaller values. Most observations may lie toward the higher end while a few small values extend the left tail. For example, scores on an easy test can be left-skewed when most scores are high.

    Read more: Left-skewed distribution in the captured Statistics reading →

  • Observation

    An observation is a recorded value or set of values for an individual or occasion. The individual may be a person, object, or event rather than a human subject. For example, one plant’s measured height is an observation in a plant-growth study.

    Read more: Observation in the captured Statistics reading →

  • Mean

    The mean is a measure of center often called an average. For a finite data set, the arithmetic mean is the sum of the values divided by their number; for a random variable, the mean is its probability-weighted expected value when that value exists. Means can be pulled toward extreme values and are not generally resistant. For example, the arithmetic mean of 2, 4, and 9 is 5.

  • Interquartile range

    The interquartile range is the third quartile minus the first quartile. It measures the spread of the middle half of the ordered data. For example, quartiles of 10 and 18 give an IQR of 8.

  • Quartile

    Quartiles divide ordered quantitative data into four portions. The first and third quartiles mark approximately the 25th and 75th percentiles, and sample calculation conventions can differ. For example, a first quartile of 12 minutes means that roughly one quarter of the recorded times are at or below 12 minutes.

  • Standard deviation

    Standard deviation measures spread around the mean using squared deviations and a square root. A sample standard deviation uses the sum of squared deviations divided by one less than the sample size before taking the square root. For example, a larger standard deviation of travel times indicates greater variability, in the original time units.

  • Variance

    Variance is the square of the standard deviation. It measures spread in squared units, with the precise averaging rule depending on whether it describes a sample or a probability distribution. For example, a standard deviation of 3 centimeters corresponds to a variance of 9 square centimeters.

    Read more: Variance in the captured Statistics reading →

  • Outlier

    An outlier is an observation unusually far from the overall pattern. The 1.5-IQR rule flags possible outliers below the first quartile minus 1.5 IQR or above the third quartile plus 1.5 IQR. For example, a very long commute may be flagged for investigation without automatically being a recording error.

  • Five-number summary

    A five-number summary contains the minimum, first quartile, median, third quartile, and maximum. These values summarize the location and spread of ordered numerical data. For example, the summary 2, 4, 7, 10, and 15 identifies a median of 7 and an IQR of 6.

Search lessons, terms and problems