Outliers, Cleaning Data and Choosing How to Present It | Edexcel A Level Maths notes

Free preview: Outliers, Cleaning Data and Choosing How to Present It

Identifying Outliers

Year 1 (AS)

Let's start with a word you have met on box plots. A class of 25 sits a test. Most score between 20 and 45. One student scores 61. Is 61 "unusual"? What about 50? If you and I use our own gut feeling, we might disagree. So statisticians agree on a rule.

  • An outlier is a value that is very different from the rest of the data.
  • "Very different" needs a rule, so that everyone agrees. Two rules are used at A level.

Rule 1: the IQR rule

x<Q1−1.5×IQRorx>Q3+1.5×IQR

๐Ÿ’ก In plain words

  • Q1 and Q3 are the quartiles and IQR = Q3−Q1.
  • Go 1.5 box-lengths beyond each end of the box. Anything past that is an outlier.
  • The two boundary values are sometimes called fences.

Recipe: the IQR rule

  1. Find Q1, Q3 and the IQR. Why: the fences are measured from the box.
  2. Work out 1.5 ร— IQR.
  3. Fences: Q1−1.5×IQR and Q3+1.5×IQR.
  4. Check the extreme values against the fences, and say which (if any) are outliers.

๐Ÿ‘€ Watch me do it: the test marks in the picture

What I writeWhy I do it
Q1=20, Q3=32, so IQR = 12.Step 1.
1.5×12=18Step 2.
Lower fence: 20 โˆ’ 18 = 2. Upper fence: 32 + 18 = 50.Step 3.
55 and 61 are above 50, so they are outliers.Step 4. Nothing is below 2, so no low outliers.
On a box plot: crosses at 55 and 61; the upper whisker stops at 47.47 is the largest value that is not an outlier.

Box plot with Q1 20 and Q3 32, dashed fences at 2 and 50, and two outliers at 55 and 61 marked with crosses

Following the graph

  1. Qโ‚ = 20 and Qโ‚ƒ = 32, so IQR = 12 and 1.5 ร— IQR = 18.
  2. Lower fence: 20 โˆ’ 18 = 2. Upper fence: 32 + 18 = 50.
  3. 55 and 61 are above 50, so they are outliers and are drawn as crosses.
  4. The upper whisker stops at 47, the largest value that is not an outlier.

โœ๏ธ YOUR TURN 1

Try this first:

Use the 1.5 ร— IQR rule to find any outliers in 3, 12, 14, 15, 15, 17, 18, 19, 20, 22, 38.

Answer:

  • n = 11, median = 6th value = 17. Lower half 3, 12, 14, 15, 15: Q1=14. Upper half 18, 19, 20, 22, 38: Q3=20.
  • IQR = 6, 1.5 ร— IQR = 9. Fences: 14 โˆ’ 9 = 5 and 20 + 9 = 29.
  • 3 is below 5 and 38 is above 29, so both are outliers.

The Standard Deviation Rule

If you already know the mean and standard deviation, there's a second rule that uses them instead of quartiles.

x<x¯−kσorx>x¯+kσ

๐Ÿ’ก In plain words

  • x¯ is the mean, σ the standard deviation and k is usually 2 or 3.
  • A value more than k standard deviations away from the mean is an outlier.

Recipe: the standard deviation rule

  1. Work out kσ using the k from the question (or your board). Why: it is how far from the mean counts as "far".
  2. Limits: x¯−kσ and x¯+kσ.
  3. Compare each suspect value with the limits.

๐Ÿ‘€ Watch me do it: mean 25.4, standard deviation 6.2, k = 2

What I writeWhy I do it
2σ=2×6.2=12.4Step 1.
Limits: 25.4 โˆ’ 12.4 = 13.0 and 25.4 + 12.4 = 37.8.Step 2.
A value of 39 would be an outlier, but 36 would not.Step 3: 39 is beyond 37.8; 36 is inside.

Diagram: Two standard deviations is 2 ร— 6.2 = 12.4, measured out from the mean on each side.

What the picture shows

  1. Two standard deviations is 2 ร— 6.2 = 12.4, measured out from the mean on each side.
  2. This gives limits of 13.0 and 37.8.
  3. 36 is inside the limits, so you keep it. 39 is beyond 37.8, so it is an outlier.

๐Ÿ“ Use the rule you are given

  • Wrong: using 1.5 ร— IQR when the question says "more than 2 standard deviations from the mean".
  • Right: the question's rule, every time. Different rules can give different answers for the same value.

โœ๏ธ YOUR TURN 2

Try this first:

The masses of some apples have mean 64 g and standard deviation 5.5 g. An outlier is more than 2 standard deviations from the mean. Which of 52 g, 74 g and 77 g are outliers?

Answer:

  • 2×5.5=11. Limits: 64 โˆ’ 11 = 53 and 64 + 11 = 75.
  • 52 is below 53 and 77 is above 75: both outliers. 74 is inside: not an outlier.

What to Do with Outliers, and Cleaning Data

Finding an outlier is only the first step. Next ask why it is unusual.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Data Presentation and Interpretation

  1. Types of Data and the Mean, Median and Mode
  2. Coding Data: Linear Changes to the Mean and Standard Deviation
  3. The Weather Large Data Set: Met Office Data for 1987 and 2015
  4. Grouped Data: Estimating the Mean, Median, Quartiles and Percentiles
  5. Measuring Spread: Range, Interquartile Range, Variance and Standard Deviation
  6. Cumulative Frequency Diagrams and Box Plots
  7. Histograms, Frequency Density and the Shape of a Distribution
  8. Scatter Diagrams, Correlation and Regression Lines
  9. Outliers, Cleaning Data and Choosing How to Present It
  10. Move Up a Grade: A Level Maths Data Presentation and Interpretation
  11. Tricky Bits: A Level Maths Data Presentation and Interpretation

What's inside for this topic

11 teacher notes, 201 practice questions, 69 flashcards, 7 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Scatter Diagrams, Correlation and Regression Lines Next note: Move Up a Grade: A Level Maths Data Presentation and Interpretation

Outliers, Cleaning Data and Choosing How to Present It on other exam boards

All Edexcel A Level Maths topics ยท A Level Maths