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

Influential points in regression | AP Statistics | Khan Academy


3m read
·Nov 10, 2024

I'm pretty sure I just tore my calf muscle this morning while sprinting with my son. But the math must not stop, so I'm here to help us think about what we could call influential points when we're thinking about regressions.

To help us here, I have this tool from BFW Publishing. I encourage you to go here and use this tool yourself. What it allows us to do is to draw some points. So just like that, let me draw some points and then fit a least squares line.

So that's a least squares line right over there. You can not only see the line, but we can see our correlation coefficient. It's pretty good: 0.8156. It's pretty close to 1, so we have a pretty good fit right over here.

But we're going to think about points that might influence or might be overly influential, we could say, to different aspects of this regression line.

One type of influential point is known as an outlier. A good way of identifying an outlier is that it's a very bad fit to the line or it has a very large residual. So if I put a point right over here, that is an outlier.

So what happens when we have an outlier like that? Before, we had a correlation coefficient of 0.8 something. You put one outlier like that out of, it's now one of 16 points. It dramatically lowered our correlation coefficient because we have a really large residual right over here.

So an outlier like this has been very influential on the correlation coefficient. It didn't impact the slope of the line a tremendous amount; it did a little bit. Actually, when I put it there, it didn't impact the slope much at all. It does impact the y-intercept a little bit. Actually, when I put it out here, it doesn't impact the y-intercept much at all. If I put it a little bit more to the left, it impacts it a little bit.

But these outliers that are at least close to the mean x value seem to be most relevant in terms of impacting or most influential in terms of the correlation coefficient.

Now, what about an outlier that's further away from the mean x value? Something, a point whose x value is further away from the mean x values, is considered a high leverage point. The way you could think about that is if you imagine this as being some type of a seesaw, somehow pivoted on the mean x value.

Well, if you put a point out here, it looks like it's pivoting down. It's like someone's sitting at this end of the seesaw, and so that's where I think the term "leverage" comes from. You can see, when I put an outlier—a high leverage outlier—out here, that does many things.

It definitely drops the correlation coefficient. It changes the slope and it changes the y-intercept, so it does a lot of things. It's highly influential for everything I just talked about.

Now, if I have a high leverage point that's maybe a little bit less of an outlier, something like this—based on the points that I happen to have—it didn't hurt the correlation coefficient. In fact, in that example, it actually improved it a little bit. But it did change the y-intercept a bit, and it did change the slope a bit, although obviously not as dramatic as when you do something like that, which then kills the correlation coefficient as well.

Let's see what happens if we do things over here. If I have a high leverage outlier over here, you see the same thing: a high leverage outlier seems to influence everything.

If it is a high leverage point that is less of an outlier, actually, once again it improved the correlation coefficient. You could say that it's still influential on the correlation coefficient; in this case, it's improving it. But it's less influential in terms of the slope and the y-intercept, although it is making a difference there.

So I encourage you to play with this. Think about different points—how far they are away from the mean x value, how large of a residual they have, are they an outlier, and how influential they are to the various aspects of a least squares line: the slope, the y-intercept, or the correlation coefficient.

When we're talking about the correlation coefficient, also known as the r value, which is, of course, the square root of r squared.

More Articles

View All
HOW TO STAY CALM & POSITIVE IN LIFE | MARCUS AURELIUS | STOICISM INSIGHTS
It’s difficult to realize that nearly 2,000 years ago, a Roman emperor confronted many of the same issues that we do today. Marcus Aurelius, a Stoic philosopher and statesman, struggled with uncertainty, authority, and the enormous constraints of empire. …
Worked example: sequence explicit formula | Series | AP Calculus BC | Khan Academy
If a_sub_n is equal to (n^2 - 10) / (n + 1), determine a_sub_4 + a_sub_9. Well, let’s just think about each of these independently. a_sub_4, let me write it this way: a the fourth term. So a_sub_4, so our n, our lowercase n, is going to be four. It’s go…
15 Ways To ADOPT a RICH MINDSET
Becoming rich is not just about getting a new job, moving to another city, or investing in tech and cryptocurrency. But becoming wealthy requires more than a change in financial habits; it also requires a change in mindset. If your mind isn’t geared towar…
"The SECRET To Business Success In 2021 IS THIS!.." | Kevin O'Leary & Gary Vee
So in this crazy outcome that I could have never foreseen, 80% of the portfolio, even though revenues are down, are actually ahead of free cash flow forecasts. You cannot, people, you can’t lie to them. You have to be totally transparent, whether that’s g…
10 THINGS YOU SHOULD DO EVERY MORNING (STOIC MORNING ROUTINE) | STOICISM INSIGHTS
Welcome back, Stoicism Insights family, it’s great to have you here with us again. Today, we’re delving into a topic that’s close to the heart of Stoic philosophy, the art of crafting the perfect morning routine. But this isn’t just any morning routine, i…
Principles for Success: “The Five Step Process” | Episode 3
[Ray] Principles for Success: An Ultra Mini-Series Adventure in 30 minutes and in eight episodes. Episode three: The Five-Step Process. We’ve discussed how important it is to reflect carefully after experiencing pain. When I did this, I was usually able…