From the course: Machine Learning & AI Foundations: Linear Regression

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Residuals and R2

Residuals and R2 - SPSS Tutorial

From the course: Machine Learning & AI Foundations: Linear Regression

Start my 1-month free trial

Residuals and R2

- [Instructor] Now we have to discuss a terribly important topic and that is how can we come up with some kind of objective way of evaluating how well our regression line fits data when these data and models come in so many different shapes and sizes, like the two models shown here that we're already discussed. We've gotta come up with some way of measuring that even though the number of data points will change, the proximity of the data points will change, and so on. So let's start at the beginning. Where does the regression line come from? Well frankly the thing to do is to find a regression fit that minimizes the distance between our data points and the regression line. So there you go, this line tries to be as close to those data points as possible. Now of course, when one is talking about multiple regression this becomes very conceptual and it's hard to picture, but when we're talking about simple linear regression as we are now you really can visualize it if you simply display…

Contents