yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Judging outliers in a dataset | Summarizing quantitative data | AP Statistics | Khan Academy


5m read
·Nov 11, 2024

We have a list of 15 numbers here, and what I want to do is think about the outliers. To help us with that, let's actually visualize the distribution of actual numbers. So let us do that.

Here on a number line, I have all the numbers from one to 19. Let's see... we have two ones, so I could say that's one one and then two ones. We have one six, so let's put that six there. We have got, uh, 13, or we have two 13s, so we're going to go up here: 1, 13, and 2, 13s.

Let's see, we have three 14s: 14, 14, and 14. We have a couple of 15s: 15, 15, so 15, 15. We have one 16, so that's our 16 there. We have three 18s: one, two, three, so one, two, and then three. And then we have a 19, and then we have a 19.

When you look visually at the distribution of numbers, it looks like the meat of the distribution, so to speak, is in this area right over here. Some people might say, okay, we have three outliers: these two ones and the six. Some people might say, well, the six is kind of close enough; maybe only these two ones are outliers, and those would actually be both reasonable things to say.

Now to get on the same page, statisticians will use a rule sometimes where they say anything that is more than one and a half times the interquartile range from below Q1 or above Q3, well, those are going to be outliers. What am I talking about? Well, let's actually figure out the median, Q1, and Q3 here. Then we can figure out the interquartile range, and then we can figure out, by that definition, what is going to be an outlier.

If that all made sense to you so far, I encourage you to pause this video and try to work through it on your own, or I'll do it for you right now.

All right, so what's the median here? The median is the middle number. We have 15 numbers, so the middle number is going to be whatever number has seven on either side. So that's going to be the eighth number: 1, 2, 3, 4, 5, 6, 7. Is that right? Yep, six, seven. So that's the median, and you have 1, 2, 3, 4, 5, 6, 7 numbers on the right side too. So that is the median, sometimes called Q2. That is our median.

Now what is Q1? Well, Q1 is going to be the middle of this first group. This first group has seven numbers in it, and so the middle is going to be the fourth number. It has three and three, three to the left, three to the right, so that is Q1.

Then Q3 is going to be the middle of this upper group. Well, that also has seven numbers in it, so the middle is going to be right over there. It has three on either side, so that is Q3.

Now what is the interquartile range going to be? The interquartile range is going to be equal to Q3 minus Q1. The difference between 18 and 13, between 18 and 13, well, that is going to be 18 minus 13, which is equal to five.

Now to figure out outliers: outliers are going to be anything that is below... So outliers, outliers are going to be less than our Q1 minus 1.5 times our interquartile range. This, once again, this isn't some rule of the universe; this is something that statisticians have kind of said. Well, if we want to have a better definition for outliers, let's just agree that it's something that's more than one and a half times the interquartile range below Q1 or an outlier could be greater than Q3 plus one and a half times the interquartile range.

Once again, this is somewhat, you know, people just decided it felt right. One could argue it should be 1.6, or one could argue it should be one, or two, or whatever, but this is what people have tended to agree on.

So let's think about what these numbers are. Q1 we already know, so this is going to be 13 minus 1.5 times our interquartile range. Our interquartile range here is five, so it's 1.5 times 5, which is 7.5. So this is 7.5. 13 - 7.5 is what? 13 - 7 is 6, and then you subtract another 0.5 is 5.5. So we have outliers, outliers are less than 5.5.

Q3 is 18; this is once again 7.5. 18 + 7.5 is 25.5, or outliers, outliers greater than 25, 25.5.

So based on this, we have a kind of a numerical definition for what's an outlier. We're not just subjectively saying, well, this feels right, or that feels right, right? Based on this, we only have two outliers: only these two ones are less than 5.5. This is the cutoff right over here. So this dot just happened to make it, and we don't have any outliers on the high side.

Now, another thing to think about is drawing box and whiskers plots based on Q1, our median, our range, all the range of numbers. You could do it either taking into consideration your outliers or not taking into consideration your outliers.

So there are a couple of ways that we can do it. Let me actually clear... let me clear all of this. We've figured out all of this stuff, so let me clear all of that out, and let's actually draw a box and whiskers plot.

So I'll put another—another, actually, let me do two here. That's one, and then let me put another one down there. This is another. Now, if we were to just draw a classic box and whiskers plot here, we would say, all right, our median at 14. Actually, I'll do it both ways. Our median is at 14, median is at 14. Q1's at 13, Q1's at 13, Q1's at 13. Q3 is at 18, Q3 is at 18, Q3 is 18.

So that's the box part. Let me draw that as an actual... let me actually draw that as a box. So my best attempt—there you go, that's the box. And this is also a box. So far, I'm doing the exact same thing.

Now, if we don't want to consider outliers, we would say, well, what's the entire range here? Well, we have things that go from one all the way to 19. So one way to do it is hey, we can start at one, and so our entire range—we go... let me draw a little bit better than that. We're going all the way, all the way from one to 19.

Now, in this one, we're including everything; we're including even these two outliers. But if we don't want to include those outliers, we want to make it clear that they're outliers, well, let's not include them.

What we can do instead is say, all right, including our non-outliers, we would start at six, because six we're saying is in our dataset, but it is not an outlier. Let me make this look better. So we are going to start at six and go all the way to 19.

To say that we have these outliers, we would put this... we have outliers over there. So once again, this is a box and whiskers plot of the same dataset without outliers, and this is one where we make it clear where the outliers actually are.

More Articles

View All
Safari Live - Day 150 | National Geographic
This program features live coverage of an African safari and may include animal kills and carcasses. Viewer discretion is advised. Good afternoon everybody and welcome to this subdued Sunday sunset Safari. It’s the glorious afternoon here in the western …
Properties of buffers | Acids and bases | AP Chemistry | Khan Academy
A buffer solution consists of a significant amount of a weak acid and its conjugate base. Let’s say we have a generic weak acid HA and its conjugate base A⁻. We’re going to use some particulate diagrams to try to understand how buffers work. So for our f…
🌍 Which Planet is the Closest?
My Very Easy Method Just Speeds Up Naming… Planets. Every Physics classroom has a Solar System line like this. Or… like this. (Sorry, Pluto.) Looking at the line, which planet is closest to Earth: Venus or Mars? To answer, you need first know that, like …
Differentiating polynomials example | Derivative rules | AP Calculus AB | Khan Academy
So I have the function f of X here, and we’re defining it using a polynomial expression. What I would like to do here is take the derivative of our function, which is essentially going to make us take a derivative of this polynomial expression, and we’re …
How A Nuclear War Will Start - Minute by Minute
Mr. President! Nuclear missiles will strike our country in 14 minutes. I know it’s your first day in office, so I’m going to walk you through it, but you’re the only one who can authorize our nuclear retaliation in response, and you’ve only got a few minu…
5 Games That Will Get You Laid: V-LIST #2
Hey V saucers! My name is Danielle, and I’m back today to tell you some games that your girl will play with you, and she might actually like it. Now, one of my most recommended games to get your girlfriend to play with you is Halo 3. Halo 3 is a really, r…