Outlier Notes
These Outlier Notes explain how to find the values in a list that are unusually small or large, with the working shown line by line. The method works out the quartiles and the interquartile range, then builds a lower fence 1.5 interquartile ranges below the lower quartile and an upper fence the same distance above the upper quartile. Any value outside the fences is an outlier. The fences and the outliers are then drawn on a box plot, so the pattern can be checked by eye.
Step-by-step method
- Set up the problem.
- Write the formulas.
- Find the quartiles and the interquartile range.
- Substitute them into the formulas.
- Work out the two fences.
- Check each value against the fences.
- Show the fences and the outliers on a box plot.
Formula: Lower Fence Formula
This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.
Formula: Upper Fence Formula
This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.
Useful Tips to Remember
A value is an outlier if it lies more than \(1.5 \times \text{IQR}\) below the lower quartile or above the upper quartile. Work out both fences, \(Q_1 - 1.5 \times \text{IQR}\) and \(Q_3 + 1.5 \times \text{IQR}\), and check the data against each one. An outlier is not automatically a mistake, so think about whether it is a real value before removing it.
Required knowledge
- How to find the quartiles and the interquartile range, covered in the Interquartile Range Calculator.
Where Is Outlier Detection Used?
An outlier is a value that lies unusually far from the rest of the data, often found with the \(1.5 \times \text{IQR}\) rule. Spotting outliers is important because they can be mistakes, such as a typing error, or genuinely unusual events that need attention. Banks look for outlier transactions to detect fraud, factories look for outlier measurements to find faulty products, and scientists check outliers before trusting their results. Deciding whether to keep or remove an outlier can change the mean and the conclusions of a study.
- Detecting fraudulent card transactions
- Finding faulty products in quality control
- Spotting data entry mistakes in spreadsheets
- Checking experimental results before analysis
- Identifying unusual weather events or sensor readings
Outlier Practice Problems
Example 1 has outliers at both ends of the data, and Example 2 has none. Examples 3 and 4 give you two more of the same kind to try, \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\) and \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\). Try working out the lower and upper fences yourself before opening each example.
The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.
See Example 1 Hide Example 1
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formulas.
- Find the quartiles and the interquartile range.
- Substitute them into the formulas.
- Work out the two fences.
- Check each value against the fences.
- Show the fences and the outliers on a box plot.
Formula
Formula: Lower Fence Formula
This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.
Formula: Upper Fence Formula
This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.
Step 1
Step 1 - Set up the problem.
In this problem: We are checking \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\) for values that are unusually small or large.
Step 2
Step 2 - Write the formulas.
In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.
Step 3
Step 3 - Find the quartiles and the interquartile range.
In this problem: The quartiles are \(Q_1 = 10.5\) and \(Q_3 = 15.5\), so \(IQR = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the lower and the upper quartile.
- Substitute the quartiles into the formula.
- Subtract to get the interquartile range.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the spread of the middle half of \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.
Step 3
Step 3 - Find the lower and the upper quartile.
In this problem: The quartiles of the list are \(Q_1 = 10.5\) and \(Q_3 = 15.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Sort the values from smallest to largest.
- Find the median of the whole list.
- Split the sorted list into a lower half and an upper half.
- Find the median of each half.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the three quartiles of \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 3
Step 3 - Find the median of the whole list.
In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 13\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(9\) at the last value, so \(n = 9\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 10,\; 11,\; 12,\; 13,\; 14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(9\) at the last value, so \(n = 9\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(9\) gives position \(5\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(5\) of the sorted list is \(13\).
Final Answer
Step 4
Step 4 - Split the sorted list into a lower half and an upper half.
In this problem: There is an odd number of values, so the median \(13\) is left out and the values either side of it make the two halves.
Step 5
Step 5 - Find the median of each half.
In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.
Step 5a
Step 5a - Find the median of the lower half.
In this problem: The median of \(2,\; 10,\; 11,\; 12\) is \(10.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(2,\; 10,\; 11,\; 12\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(2,\; 10,\; 11,\; 12\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(2,\; 10,\; 11,\; 12\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(4\) gives position \(2.5\), which is halfway between positions \(2\) and \(3\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(10\) and \(11\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(10,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(10 + 11 = 21\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(10,\; 11\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(10 + 11 = 21\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(10,\; 11\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(21\) and \(n\) with \(2\) gives \(\bar{x} = \frac{21}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(21 \div 2 = 10.5\).
Final Answer
Final Answer
Step 5b
Step 5b - Find the median of the upper half.
In this problem: The median of \(14,\; 15,\; 16,\; 40\) is \(15.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(14,\; 15,\; 16,\; 40\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(4\) at the last value, so \(n = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(14,\; 15,\; 16,\; 40\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(4\) at the last value, so \(n = 4\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(4\) gives position \(2.5\), which is halfway between positions \(2\) and \(3\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(15\) and \(16\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(15,\; 16\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(15 + 16 = 31\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(15,\; 16\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(15 + 16 = 31\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(15,\; 16\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(31\) and \(n\) with \(2\) gives \(\bar{x} = \frac{31}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(31 \div 2 = 15.5\).
Final Answer
Final Answer
Final Answer
Step 4
Step 4 - Substitute the quartiles into the formula.
In this problem: Replacing \(Q_3\) with \(15.5\) and \(Q_1\) with \(10.5\) gives \(IQR = 15.5 - 10.5\).
Step 5
Step 5 - Subtract to get the interquartile range.
In this problem: Subtracting gives \(15.5 - 10.5 = 5\).
Final Answer
Step 4
Step 4 - Substitute them into the formulas.
In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.
Step 5
Step 5 - Work out the two fences.
In this problem: First \(1.5 \times 5 = 7.5\), then it is taken away from \(Q_1\) and added to \(Q_3\).
Step 6
Step 6 - Check each value against the fences.
In this problem: Any value below \(3\) or above \(23\) is an outlier. The values \(2,\; 40\) lie outside the fences.
Step 7
Step 7 - Show the fences and the outliers on a box plot.
In this problem: The dashed lines are the fences. The orange circles are the outliers, and the whiskers stop at the last values inside the fences.
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formulas.
- Find the quartiles and the interquartile range.
- Substitute them into the formulas.
- Work out the two fences.
- Check each value against the fences.
- Show the fences and the outliers on a box plot.
Formula
Formula: Lower Fence Formula
This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.
Formula: Upper Fence Formula
This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.
Step 1
Step 1 - Set up the problem.
In this problem: We are checking \(1,\; 2,\; 3,\; 4,\; 5\) for values that are unusually small or large.
Step 2
Step 2 - Write the formulas.
In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.
Step 3
Step 3 - Find the quartiles and the interquartile range.
In this problem: The quartiles are \(Q_1 = 1.5\) and \(Q_3 = 4.5\), so \(IQR = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the lower and the upper quartile.
- Substitute the quartiles into the formula.
- Subtract to get the interquartile range.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the spread of the middle half of \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.
Step 3
Step 3 - Find the lower and the upper quartile.
In this problem: The quartiles of the list are \(Q_1 = 1.5\) and \(Q_3 = 4.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Sort the values from smallest to largest.
- Find the median of the whole list.
- Split the sorted list into a lower half and an upper half.
- Find the median of each half.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the three quartiles of \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(1,\; 2,\; 3,\; 4,\; 5\).
Step 3
Step 3 - Find the median of the whole list.
In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(1,\; 2,\; 3,\; 4,\; 5\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(5\) at the last value, so \(n = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(1,\; 2,\; 3,\; 4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(5\) at the last value, so \(n = 5\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(5\) gives position \(3\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(3\) of the sorted list is \(3\).
Final Answer
Step 4
Step 4 - Split the sorted list into a lower half and an upper half.
In this problem: There is an odd number of values, so the median \(3\) is left out and the values either side of it make the two halves.
Step 5
Step 5 - Find the median of each half.
In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.
Step 5a
Step 5a - Find the median of the lower half.
In this problem: The median of \(1,\; 2\) is \(1.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(1,\; 2\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(2\) gives position \(1.5\), which is halfway between positions \(1\) and \(2\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(1\) and \(2\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(1 + 2 = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(1,\; 2\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(1 + 2 = 3\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(3\) and \(n\) with \(2\) gives \(\bar{x} = \frac{3}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(3 \div 2 = 1.5\).
Final Answer
Final Answer
Step 5b
Step 5b - Find the median of the upper half.
In this problem: The median of \(4,\; 5\) is \(4.5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(4,\; 5\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(2\) gives position \(1.5\), which is halfway between positions \(1\) and \(2\).
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The two middle values are \(4\) and \(5\), so the median is their mean.
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the total of the values and how many values there are.
- Substitute the total and the count into the formula.
- Divide to get the mean.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the mean of the values \(4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The mean shares the total equally between the values, so the total is divided by how many there are.
Step 3
Step 3 - Find the total of the values and how many values there are.
In this problem: The formula needs the total \(\Sigma x\) of the values and their count \(n\).
Step 3a
Step 3a - Add the values together.
In this problem: Adding the values in order gives \(4 + 5 = 9\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Add the values together to get the total.
Step 1
Step 1 - Set up the problem.
In this problem: We are adding the \(2\) values \(4,\; 5\) together.
Step 2
Step 2 - Write the formula.
In this problem: The total is what every value adds up to, written as the sum of all the values.
Step 3
Step 3 - Add the values together to get the total.
In this problem: Adding them in order gives \(4 + 5 = 9\).
Final Answer
Step 3b
Step 3b - Count the values.
In this problem: Counting along the list reaches \(2\) at the last value, so \(n = 2\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(4,\; 5\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(2\) at the last value, so \(n = 2\).
Final Answer
Step 4
Step 4 - Substitute the total and the count into the formula.
In this problem: Replacing \(\Sigma x\) with \(9\) and \(n\) with \(2\) gives \(\bar{x} = \frac{9}{2}\).
Step 5
Step 5 - Divide to get the mean.
In this problem: Dividing the total by the count gives \(9 \div 2 = 4.5\).
Final Answer
Final Answer
Final Answer
Step 4
Step 4 - Substitute the quartiles into the formula.
In this problem: Replacing \(Q_3\) with \(4.5\) and \(Q_1\) with \(1.5\) gives \(IQR = 4.5 - 1.5\).
Step 5
Step 5 - Subtract to get the interquartile range.
In this problem: Subtracting gives \(4.5 - 1.5 = 3\).
Final Answer
Step 4
Step 4 - Substitute them into the formulas.
In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.
Step 5
Step 5 - Work out the two fences.
In this problem: First \(1.5 \times 3 = 4.5\), then it is taken away from \(Q_1\) and added to \(Q_3\).
Step 6
Step 6 - Check each value against the fences.
In this problem: Any value below \(-3\) or above \(9\) is an outlier. Every value lies between the fences, so there are no outliers.
Step 7
Step 7 - Show the fences and the outliers on a box plot.
In this problem: The dashed lines are the fences. Every value sits between them.
Final Answer
See Example 3 Hide Example 3
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formulas.
- Find the quartiles and the interquartile range.
- Substitute them into the formulas.
- Work out the two fences.
- Check each value against the fences.
- Show the fences and the outliers on a box plot.
Formula
Formula: Lower Fence Formula
This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.
Formula: Upper Fence Formula
This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.
Step 1
Step 1 - Set up the problem.
In this problem: We are checking \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\) for values that are unusually small or large.
Step 2
Step 2 - Write the formulas.
In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.
Step 3
Step 3 - Find the quartiles and the interquartile range.
In this problem: The quartiles are \(Q_1 = 7\) and \(Q_3 = 11\), so \(IQR = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the lower and the upper quartile.
- Substitute the quartiles into the formula.
- Subtract to get the interquartile range.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the spread of the middle half of \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 2
Step 2 - Write the formula.
In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.
Step 3
Step 3 - Find the lower and the upper quartile.
In this problem: The quartiles of the list are \(Q_1 = 7\) and \(Q_3 = 11\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Sort the values from smallest to largest.
- Find the median of the whole list.
- Split the sorted list into a lower half and an upper half.
- Find the median of each half.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the three quartiles of \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 2
Step 2 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 3
Step 3 - Find the median of the whole list.
In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 9\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(7\) at the last value, so \(n = 7\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(5,\; 7,\; 8,\; 9,\; 10,\; 11,\; 30\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(7\) at the last value, so \(n = 7\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(7\) gives position \(4\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(4\) of the sorted list is \(9\).
Final Answer
Step 4
Step 4 - Split the sorted list into a lower half and an upper half.
In this problem: There is an odd number of values, so the median \(9\) is left out and the values either side of it make the two halves.
Step 5
Step 5 - Find the median of each half.
In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.
Step 5a
Step 5a - Find the median of the lower half.
In this problem: The median of \(5,\; 7,\; 8\) is \(7\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(5,\; 7,\; 8\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(5,\; 7,\; 8\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(5,\; 7,\; 8\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(3\) gives position \(2\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(2\) of the sorted list is \(7\).
Final Answer
Step 5b
Step 5b - Find the median of the upper half.
In this problem: The median of \(10,\; 11,\; 30\) is \(11\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(10,\; 11,\; 30\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(10,\; 11,\; 30\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(10,\; 11,\; 30\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(3\) gives position \(2\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(2\) of the sorted list is \(11\).
Final Answer
Final Answer
Step 4
Step 4 - Substitute the quartiles into the formula.
In this problem: Replacing \(Q_3\) with \(11\) and \(Q_1\) with \(7\) gives \(IQR = 11 - 7\).
Step 5
Step 5 - Subtract to get the interquartile range.
In this problem: Subtracting gives \(11 - 7 = 4\).
Final Answer
Step 4
Step 4 - Substitute them into the formulas.
In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.
Step 5
Step 5 - Work out the two fences.
In this problem: First \(1.5 \times 4 = 6\), then it is taken away from \(Q_1\) and added to \(Q_3\).
Step 6
Step 6 - Check each value against the fences.
In this problem: Any value below \(1\) or above \(17\) is an outlier. The value \(30\) lies outside the fences.
Step 7
Step 7 - Show the fences and the outliers on a box plot.
In this problem: The dashed lines are the fences. The orange circles are the outliers, and the whiskers stop at the last values inside the fences.
Final Answer
See Example 4 Hide Example 4
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formulas.
- Find the quartiles and the interquartile range.
- Substitute them into the formulas.
- Work out the two fences.
- Check each value against the fences.
- Show the fences and the outliers on a box plot.
Formula
Formula: Lower Fence Formula
This formula gives the lowest value that is not an outlier. Take 1.5 times the interquartile range away from the lower quartile.
Formula: Upper Fence Formula
This formula gives the highest value that is not an outlier. Add 1.5 times the interquartile range to the upper quartile.
Step 1
Step 1 - Set up the problem.
In this problem: We are checking \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\) for values that are unusually small or large.
Step 2
Step 2 - Write the formulas.
In this problem: The fences sit 1.5 interquartile ranges below the lower quartile and above the upper quartile. Any value outside them is an outlier.
Step 3
Step 3 - Find the quartiles and the interquartile range.
In this problem: The quartiles are \(Q_1 = 1\) and \(Q_3 = 5\), so \(IQR = 4\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Find the lower and the upper quartile.
- Substitute the quartiles into the formula.
- Subtract to get the interquartile range.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the spread of the middle half of \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: The interquartile range is the gap between the upper and the lower quartile, which holds the middle half of the values.
Step 3
Step 3 - Find the lower and the upper quartile.
In this problem: The quartiles of the list are \(Q_1 = 1\) and \(Q_3 = 5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Sort the values from smallest to largest.
- Find the median of the whole list.
- Split the sorted list into a lower half and an upper half.
- Find the median of each half.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the three quartiles of \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 2
Step 2 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 3
Step 3 - Find the median of the whole list.
In this problem: The middle quartile \(Q_2\) is the median of the whole list, \(Q_2 = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(7\) at the last value, so \(n = 7\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(-20,\; 1,\; 2,\; 3,\; 4,\; 5,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(7\) at the last value, so \(n = 7\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(7\) gives position \(4\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(4\) of the sorted list is \(3\).
Final Answer
Step 4
Step 4 - Split the sorted list into a lower half and an upper half.
In this problem: There is an odd number of values, so the median \(3\) is left out and the values either side of it make the two halves.
Step 5
Step 5 - Find the median of each half.
In this problem: The lower quartile is the median of the lower half, and the upper quartile is the median of the upper half.
Step 5a
Step 5a - Find the median of the lower half.
In this problem: The median of \(-20,\; 1,\; 2\) is \(1\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(-20,\; 1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(-20,\; 1,\; 2\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(-20,\; 1,\; 2\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(3\) gives position \(2\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(2\) of the sorted list is \(1\).
Final Answer
Step 5b
Step 5b - Find the median of the upper half.
In this problem: The median of \(4,\; 5,\; 6\) is \(5\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Sort the values from smallest to largest.
- Count the values.
- Substitute the count into the formula to find the middle position.
- Take the middle value, or the mean of the two middle values.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the middle of the values \(4,\; 5,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: Once the values are in order, the median sits at this position along the list.
Step 3
Step 3 - Sort the values from smallest to largest.
In this problem: Putting the values in order from smallest to largest gives \(4,\; 5,\; 6\).
Step 4
Step 4 - Count the values.
In this problem: Counting along the sorted list reaches \(3\) at the last value, so \(n = 3\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Count the values in the list.
Step 1
Step 1 - Set up the problem.
In this problem: We are counting how many values are in the list \(4,\; 5,\; 6\).
Step 2
Step 2 - Write the formula.
In this problem: The count is simply how many values the list holds, written as n.
Step 3
Step 3 - Count the values in the list.
In this problem: Counting along the list from left to right reaches \(3\) at the last value, so \(n = 3\).
Final Answer
Step 5
Step 5 - Substitute the count into the formula to find the middle position.
In this problem: Replacing \(n\) with \(3\) gives position \(2\), so one value sits in the middle.
Step 6
Step 6 - Take the middle value, or the mean of the two middle values.
In this problem: The value at position \(2\) of the sorted list is \(5\).
Final Answer
Final Answer
Step 4
Step 4 - Substitute the quartiles into the formula.
In this problem: Replacing \(Q_3\) with \(5\) and \(Q_1\) with \(1\) gives \(IQR = 5 - 1\).
Step 5
Step 5 - Subtract to get the interquartile range.
In this problem: Subtracting gives \(5 - 1 = 4\).
Final Answer
Step 4
Step 4 - Substitute them into the formulas.
In this problem: Replacing \(Q_1\), \(Q_3\) and \(IQR\) in both formulas gives the two fences to work out.
Step 5
Step 5 - Work out the two fences.
In this problem: First \(1.5 \times 4 = 6\), then it is taken away from \(Q_1\) and added to \(Q_3\).
Step 6
Step 6 - Check each value against the fences.
In this problem: Any value below \(-5\) or above \(11\) is an outlier. The value \(-20\) lies outside the fences.
Step 7
Step 7 - Show the fences and the outliers on a box plot.
In this problem: The dashed lines are the fences. The orange circles are the outliers, and the whiskers stop at the last values inside the fences.
Final Answer
Calculator and Practice Mode
Want to check your own working? The Outlier Calculator solves any problem you type in and shows every step, so you can compare it line by line with your answer and find exactly where a mistake crept in. When you are ready to test yourself, Outlier Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode is available on the Plus and Pro plans.