An outlier is a data point that varies significantly from the body of the data. An outlier will be a value that is either significantly larger or smaller than other observations. In this lesson, we will visually identify outliers present in a set of data. Outliers are important to identify as they point to unusual bits of data that may require further investigation. For example, if you had data on the temperature in a volcanic lake and we had a high outlier, it is worth investigating if the sensor is faulty or we need to prepare a nearby town for evacuation.
Consider the dot plot below. We would call 9 an outlier as it is well above the rest of the data.
Identify the outlier in the data set:
63,\, 67,\, 71,\, 76,\, 111
An outlier is a data point that varies significantly from the body of the data. An outlier will be a value that is either significantly larger or smaller than other observations.
To determine if a data value is an outlier, there is a rule that involves the interquartile range (IQR). This rule calculates the upper and lower fences of a box plot. A fence refers to the upper and lower boundaries, and any score which lies outside of the fences are classified as outliers.
A data point is classified as an outlier if it lies above the upper fence or below the lower fence. These are calculated as follows:\text{Lower fence} = \text{Lower quartile} -1.5 \times \text{Interquartile Range}\\ \text{Upper fence} = \text{Upper quartile} +1.5 \times \text{Interquartile Range}
Using the five-number summary and the upper and lower fences we can construct an box plot and identify any outliers.
The above diagram shows the construction of the box plots and how the upper and lower fences are constructed. Any data points outside of these are outliers.
Consider the data set below: 1,\,1,\,3,\,21,\,7,\,9,\,10,\,6,\,11
Construct a five number summary.
Determine if there are any outliers.
Draw a box plot to represent this data.
Consider the dot plot below.
Determine the median, lower quartile score and the upper quartile score.
Hence, calculate the interquartile range.
Calculate 1.5\times \text{IQR}, where \text{IQR} is the interquartile range.
An outlier is a score that is more than 1.5\times \text{IQR} above or below the Upper Quartile or Lower Quartile respectively. State the outlier.
A data point is classified as an outlier if it lies above the upper fence or below the lower fence. These are calculated as follows:\text{Lower fence} = \text{Lower quartile} -1.5 \times \text{Interquartile Range}\\ \text{Upper fence} = \text{Upper quartile} +1.5 \times \text{Interquartile Range}
Once an outlier is identified, the underlying cause of the outlier should be investigated. If the outlier is simply a mistake then it should be removed from the data - this can often occur when recording or transferring data by hand or conducting a survey where a respondent may not take the questionnaire seriously. If the data is not a mistake it should not be removed from the data set as while it is unusual it is representative of possible outcomes - for example, you would not remove a very tall student's height from data for a class just because it was unusual for the class.
When data contains an outlier we should be aware of its impact on any calculations we make. Let's look at the effect that outliers have on the three measures of center - mean, median and mode:
The Mean will be significantly affected by the inclusion of an outlier:
Including a high outlier will increase the mean.
Including a low outlier will decrease the mean.
The Median is the middle value of a data set, the inclusion of an outlier will not generally have a significant impact on the median unless there is a large gap in the center of the data.
Including a high outlier may increase the median slightly or it may remain unchanged.
Including a low outlier may decrease the median slightly or it may remain unchanged.
The Mode is the most frequent value, as an outlier is an unusual value it will not be the mode. The inclusion of an outlier will have no impact on the mode.
Consider the following set of data: 37,\,46,\,35,\,56,\,56,\,35,\,125,\,36,\,48,\,56
Fill in this table of summary statistics.
Mean | \quad |
---|---|
Median | \quad |
Mode | \quad |
Which data value is an outlier?
Fill in this table of summary statistics after removing the outlier.
Mean | \quad |
---|---|
Median | \quad |
Mode | \quad |
Let A be the original data set and B be the data set without the outlier.
Complete the table using the symbols >,< and = to compare the statistics before and after removing the outlier.
\text{With outlier} | \text{Without\ outlier} | ||
Mean: | A | ⬚ | B |
Median: | A | ⬚ | B |
Mode: | A | ⬚ | B |
The Mean will be significantly affected by the inclusion of an outlier:
Including a high outlier will increase the mean.
Including a low outlier will decrease the mean.
The Median is the middle value of a data set, the inclusion of an outlier will not generally have a significant impact on the median.
The Mode is the most frequent value, as an outlier is an unusual value it will not be the mode. The inclusion of an outlier will have no impact on the mode.
We can use the mean, median, or mode to describe the centre of a data set. Sometimes one measure may better represent the data than another and sometimes we want just one statistic for an article or report rather than detail on the different measures. When deciding which to use we need to ask ourselves which measure would best represent the type of data we have. Some main considerations are:
Is there a repeated value? If there are no repeated values or only a couple of randomly repeated values then the mode will not be representative of the data. If there is one or two highly frequent data points these may be a fair representation of the centre of the data.
Is there an outlier? As we have seen an outlier will significantly affect the mean \text{-} this may give a distorted view of the centre of the data. For example, if we had a list of houses sold in an area and a historic mansion was sold for a price well above the other houses in the area, then using the median would be a better representation of average house prices in the area than the mean.
Do you need all the data values to be taken into account? Only the mean uses all the values in its calculation.
The salaries of part-time employees at a company are given in the dot plot below. Which measure of center best reflects the typical wage of a part-time employee?
Main considerations when choosing a suitable measure of centre:
If there are no repeated values or only a couple of randomly repeated values then the mode will not be representative of the data.
If there are outliers the median will be more suitable than the mean.
Only the mean uses all the values in its calculation.