Sub topic 11
Outliers and the 1.5 × IQR Rule
Assume you can find the median, quartiles, and interquartile range (IQR). This chapter uses those ideas to identify unusually small or large values in a data set.
What Is an Outlier?
An outlier is a data value that lies unusually far from the rest of the data. On a boxplot, an outlier is often displayed as a separate point beyond the whiskers.
A common rule identifies outliers using the IQR:
- Find the first quartile, \(Q1\), and the third quartile, \(Q3\).
- Compute the IQR:
\[ \text{IQR}=Q3-Q1 \]
- Find the lower and upper fences:
\[ \text{Lower fence}=Q1-1.5(\text{IQR}) \] \[ \text{Upper fence}=Q3+1.5(\text{IQR}) \]
- Any value below the lower fence or above the upper fence is an outlier under this rule.
The fences are cutoff values. They do not have to be values in the original data set.
Worked Example
Consider the ordered data set:
\[ 4,\ 5,\ 6,\ 7,\ 8,\ 9,\ 10,\ 11,\ 30 \]
The median is 8. Excluding the median, split the remaining values into two halves:
- Lower half: \(4,5,6,7\)
- Upper half: \(9,10,11,30\)
The first quartile is the median of the lower half:
\[ Q_1=\frac{5+6}{2}=5.5 \]
The third quartile is the median of the upper half:
\[ Q_3=\frac{10+11}{2}=10.5 \]
Therefore,
\[ \text{IQR}=10.5-5.5=5 \]
Now calculate the fences:
\[ \text{Lower fence}=5.5-1.5(5)=5.5-7.5=-2 \]
\[ \text{Upper fence}=10.5+1.5(5)=10.5+7.5=18 \]
The data value 30 is above the upper fence of 18, so 30 is an outlier under the 1.5 × IQR rule. No value is below the lower fence.
Interpreting a Boxplot
When a boxplot uses this rule, the whiskers usually extend to the smallest and largest data values that are not outliers. Separate points represent values beyond those whiskers.
The whisker endpoint is therefore not always the actual minimum or maximum. For the example above, the actual maximum is 30, but 30 is plotted separately. The upper whisker ends at 11, the largest value that is not an outlier.
A boxplot can show outliers, but it does not explain why they occurred. An unusually high value could result from a recording error, a rare event, or a real difference in the population.
Common GRE Errors
- Do not multiply the IQR by 1.5 and call the result the upper fence. You must add that amount to \(Q3\) or subtract it from \(Q1\).
- Do not use the range in the fence formulas. The formulas use the IQR.
- Do not assume that every value outside the box is an outlier. The box ends at \(Q1\) and \(Q3\), while the whiskers may extend farther.
- Check the wording. A problem may state a different outlier rule or may ask only for values beyond a given cutoff.
- Keep the inequality direction correct. Values less than the lower fence or greater than the upper fence are flagged. A value exactly on a fence is usually not an outlier under the rule.
Exercise
A data set has \(Q1=12\) and \(Q3=20\). Which of the values 0, 1, 31, and 32 are outliers under the 1.5 × IQR rule?
Show answer
The IQR is \(20-12=8\). The fences are \(12-1.5(8)=0\) and \(20+1.5(8)=32\). Values 0 and 32 are on the fences, so they are not outliers. Neither 1 nor 31 is an outlier.