You may recall that outliers are values that are far outside the pattern established by the rest of the data. They're either very high or very low in comparison to the rest of the data set.
Boxplots, introduced in another tutorial, are a way to graphically display the five number summary for a data set. This tutorial will present a modified version of boxplots so that it is easier to observe outliers in them.
EXAMPLEHere is a set of test scores.
To make it easier to find outliers, there is a mathematical rule for determining whether a point is an outlier or not. This is called the “1.5xIQR rule.” IQR stands for Interquartile Range.
So, how do you use the 1.5xIQR method?
Step 1: Find the quartiles of the data set.
Step 2: Find the interquartile range (IQR).
Step 3: If we have a point that is 1.5 IQR's below the first quartile or 1.5 IQR's or more above the third quartile, then it is an outlier.
EXAMPLEConsider the data set of test scores from above.
Step 1: First, find the quartiles of the data set. To do this, order the data from least to greatest. find the median, and find the medians within each of the low and high data sets.
The median of this data set is 90. The median of the first quartile is actually between 84 and 88, or at 86, and the median of the third quartile is between 91 and 94, which is at 92.5.
Step 2: Next, find the interquartile range, or IQR. The interquartile range is the distance between the first and third quartiles. The difference between 92.5 and 86 is 6.5.
Of the test scores, only 46 falls outside this range, so this test score would be an outlier.
Home Prices in Albuquerque, New Mexico|
From February - April, 1993
|Q1 = 78, Q3 = 120|
You can use this new information to create a new version of an already existing plot that you have. You’ve made boxplots in another tutorial; now you can modify them to show outliers.
Generally, you would make the whiskers on the box-and-whisker plot extend all the way out to the maximum and minimum. If the minimum or maximum (or both) are outliers, that will make the whiskers really long. For a modified boxplot, instead of going all the way out to those outliers, you can extend them only to the highest and lowest values that aren't outliers and notate the outliers separately.
EXAMPLERefer back to the student data set from the section above. Here are the values from least to greatest.
Source: Adapted from Sophia tutorial by Jonathan Osters.