Ready to master linear regression? This summary breaks down how... Show more
Sign up to see the contentIt's free!
Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
Subjects
106
•
Dec 11, 2025
•
Ready to master linear regression? This summary breaks down how... Show more











Regression lines help you predict how a response variable changes as an explanatory variable changes. The equation for a regression line is ŷ = a + bx, where:
Remember the difference between y and ŷ: y is the actual value from your data, while ŷ is what your regression line predicts.
When analyzing car prices, for example, you might find that price decreases as mileage increases—a perfect application for regression analysis!
💡 Think of regression as your crystal ball—it uses known data points to make predictions about unknown values, but it's only as good as the relationship between your variables.

Let's look at a real example. For used Ford F-150 trucks, the regression line is: price = 38,257 - 0.1629(miles driven)
Interpreting the slope: For every additional mile driven, the predicted price decreases by $0.1629.
Interpreting the y-intercept: A truck with 0 miles would cost approximately $38,257.
To predict the price of a truck with 100,000 miles: price = 38,257 - 0.1629(100,000) = $21,967
However, if we try to predict for 250,000 miles: price = 38,257 - 0.1629(250,000) = -$2,468
Wait—a negative price makes no sense! This illustrates the danger of extrapolation—using the regression line to predict values outside the range of your original data. The relationship might not remain linear beyond your data points.
When making predictions, stay within the range of values used to create your regression line. Otherwise, your predictions may become wildly inaccurate.

When analyzing a track and field example where ŷ = 305 - 27.6x , the slope tells us that for each additional second in sprint time, we predict the long jump distance to decrease by about 27.6 inches.
Sometimes interpreting the y-intercept doesn't make sense. For instance, a sprint time of 0 seconds is impossible, so we wouldn't interpret that value.
To find a regression line using your calculator:
For 11 used Honda CR-Vs, we found:
This means for every additional thousand miles driven, the predicted price decreases by 18,773.
💡 Always sketch your scatterplot first to make sure the relationship looks linear before calculating a regression line!

A residual is the difference between what actually happened and what your line predicted: residual = actual y - predicted y = y - ŷ
The formula is easy to remember with "AP: actual minus predicted."
Positive residuals mean the actual value is above the line (the prediction was too low), while negative residuals mean the actual value is below the line (the prediction was too high).
Let's calculate a residual for a Ford F-150 with 59,000 miles and an actual price of $32,000:
This means this particular truck is selling for $3,354.10 more than our regression line predicted. Maybe it has special features or is in exceptionally good condition!
Residuals help us see how accurately our regression line fits the actual data points. The closer the residuals are to zero, the better our predictions.

What makes a regression line the "best" fit? The least-squares regression line is the one that makes the sum of the squared residuals as small as possible.
Why square the residuals? This emphasizes larger errors and ensures positive and negative errors don't cancel each other out. For example, a residual of -4,765 becomes a squared residual of 22,705,225.
When analyzing Taco Bell's chicken menu items (comparing fat to carbs), we found:
For the Chicken Burrito Supreme with 12g of fat and 50g of carbs:
This item has 12.35 more grams of carbs than our line predicted!
💡 The least-squares line isn't resistant to outliers—unusual data points can drastically change your regression line!

A residual plot graphs residuals against the explanatory variable (x), helping you see if a linear model is appropriate for your data.
What to look for in a residual plot:
Creating a residual plot on your calculator:
A good residual plot will look like a random cloud of points scattered evenly above and below the horizontal line where residual = 0.
Think of residual plots as your regression lie detector—they reveal patterns that might be hidden in the original scatterplot and tell you whether your linear model is trustworthy.

Two key statistics tell us how well our regression line fits the data:
Standard deviation of the residuals (s):
Coefficient of determination (r²):
Important relationships:
💡 A higher r² means your model explains more of the variation in your data, making it a stronger predictor!

For the Taco Bell data, r² = 0.7105, meaning 71.05% of the variation in carbohydrates is accounted for by the relationship between fat and carbs in Taco Bell chicken items.
In another example with college football teams, the regression line ŷ = -3.75 + 0.437x relates points scored per game (x) to wins (y):
When reading computer output from statistical software (like Minitab or JMP), you need to locate:
Learning to interpret these values helps you evaluate how well your model fits the data and how reliable your predictions will be.

For roller coasters, we analyzed the relationship between height (x in feet) and speed (y in mph), finding:
For Mr. Freeze, a roller coaster 218 ft tall with actual speed of 70 mph:
The statistics tell us:
Interesting note: Changing units would not affect r² but would increase s because the values of y would be larger.
💡 Be cautious about extrapolation! We wouldn't use this model to predict speed for a 500-foot roller coaster since that's outside our data range.

You can calculate the regression line without the original data if you know:
The formulas are:
For example, with foot length (x) and height (y) data:
Slope: b = 0.697(10.69/2.71) = 2.75 y-intercept: a = 171.43 - 2.75(24.76) = 103.34
So the regression line is: ŷ = 2.75x + 103.34
This means for every additional centimeter in foot length, we predict height to increase by 2.75 centimeters.
Remember: The regression line always passes through the point (x̄, ȳ), and for each increase of 1 standard deviation in x, the predicted y increases by r times the standard deviation of y.
Our AI companion is specifically built for the needs of students. Based on the millions of content pieces we have on the platform we can provide truly meaningful and relevant answers to students. But its not only about answers, the companion is even more about guiding students through their daily learning challenges, with personalised study plans, quizzes or content pieces in the chat and 100% personalisation based on the students skills and developments.
You can download the app in the Google Play Store and in the Apple App Store.
That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.
App Store
Google Play
The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.
Stefan S
iOS user
This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.
Samantha Klich
Android user
Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.
Anna
iOS user
I think it’s very much worth it and you’ll end up using it a lot once you get the hang of it and even after looking at others notes you can still ask your Artificial intelligence buddy the question and ask to simplify it if you still don’t get it!!! In the end I think it’s worth it 😊👍 ⚠️Also DID I MENTION ITS FREEE YOU DON’T HAVE TO PAY FOR ANYTHING AND STILL GET YOUR GRADES IN PERFECTLY❗️❗️⚠️
Thomas R
iOS user
Knowunity is the BEST app I’ve used in a minute. This is not an ai review or anything this is genuinely coming from a 7th grade student (I know 2011 im young) but dude this app is a 10/10 i have maintained a 3.8 gpa and have plenty of time for gaming. I love it and my mom is just happy I got good grades
Brad T
Android user
Not only did it help me find the answer but it also showed me alternative ways to solve it. I was horrible in math and science but now I have an a in both subjects. Thanks for the help🤍🤍
David K
iOS user
The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!
Sudenaz Ocak
Android user
In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.
Greenlight Bonnie
Android user
I found this app a couple years ago and it has only gotten better since then. I really love it because it can help with written questions and photo questions. Also, it can find study guides that other people have made as well as flashcard sets and practice tests. The free version is also amazing for students who might not be able to afford it. Would 100% recommend
Aubrey
iOS user
Best app if you're in Highschool or Junior high. I have been using this app for 2 school years and it's the best, it's good if you don't have anyone to help you with school work.😋🩷🎀
Marco B
iOS user
THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮
Elisha
iOS user
This app is phenomenal down to the correct info and the various topics you can study! I greatly recommend it for people who struggle with procrastination and those who need homework help. It has been perfectly accurate for world 1 history as far as I’ve seen! Geometry too!
Paul T
iOS user
The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.
Stefan S
iOS user
This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.
Samantha Klich
Android user
Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.
Anna
iOS user
I think it’s very much worth it and you’ll end up using it a lot once you get the hang of it and even after looking at others notes you can still ask your Artificial intelligence buddy the question and ask to simplify it if you still don’t get it!!! In the end I think it’s worth it 😊👍 ⚠️Also DID I MENTION ITS FREEE YOU DON’T HAVE TO PAY FOR ANYTHING AND STILL GET YOUR GRADES IN PERFECTLY❗️❗️⚠️
Thomas R
iOS user
Knowunity is the BEST app I’ve used in a minute. This is not an ai review or anything this is genuinely coming from a 7th grade student (I know 2011 im young) but dude this app is a 10/10 i have maintained a 3.8 gpa and have plenty of time for gaming. I love it and my mom is just happy I got good grades
Brad T
Android user
Not only did it help me find the answer but it also showed me alternative ways to solve it. I was horrible in math and science but now I have an a in both subjects. Thanks for the help🤍🤍
David K
iOS user
The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!
Sudenaz Ocak
Android user
In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.
Greenlight Bonnie
Android user
I found this app a couple years ago and it has only gotten better since then. I really love it because it can help with written questions and photo questions. Also, it can find study guides that other people have made as well as flashcard sets and practice tests. The free version is also amazing for students who might not be able to afford it. Would 100% recommend
Aubrey
iOS user
Best app if you're in Highschool or Junior high. I have been using this app for 2 school years and it's the best, it's good if you don't have anyone to help you with school work.😋🩷🎀
Marco B
iOS user
THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮
Elisha
iOS user
This app is phenomenal down to the correct info and the various topics you can study! I greatly recommend it for people who struggle with procrastination and those who need homework help. It has been perfectly accurate for world 1 history as far as I’ve seen! Geometry too!
Paul T
iOS user
Ready to master linear regression? This summary breaks down how to find, interpret, and evaluate regression lines that show relationships between variables. You'll learn practical skills for predicting values, understanding how well your predictions work, and avoiding common pitfalls.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
Regression lines help you predict how a response variable changes as an explanatory variable changes. The equation for a regression line is ŷ = a + bx, where:
Remember the difference between y and ŷ: y is the actual value from your data, while ŷ is what your regression line predicts.
When analyzing car prices, for example, you might find that price decreases as mileage increases—a perfect application for regression analysis!
💡 Think of regression as your crystal ball—it uses known data points to make predictions about unknown values, but it's only as good as the relationship between your variables.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
Let's look at a real example. For used Ford F-150 trucks, the regression line is: price = 38,257 - 0.1629(miles driven)
Interpreting the slope: For every additional mile driven, the predicted price decreases by $0.1629.
Interpreting the y-intercept: A truck with 0 miles would cost approximately $38,257.
To predict the price of a truck with 100,000 miles: price = 38,257 - 0.1629(100,000) = $21,967
However, if we try to predict for 250,000 miles: price = 38,257 - 0.1629(250,000) = -$2,468
Wait—a negative price makes no sense! This illustrates the danger of extrapolation—using the regression line to predict values outside the range of your original data. The relationship might not remain linear beyond your data points.
When making predictions, stay within the range of values used to create your regression line. Otherwise, your predictions may become wildly inaccurate.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
When analyzing a track and field example where ŷ = 305 - 27.6x , the slope tells us that for each additional second in sprint time, we predict the long jump distance to decrease by about 27.6 inches.
Sometimes interpreting the y-intercept doesn't make sense. For instance, a sprint time of 0 seconds is impossible, so we wouldn't interpret that value.
To find a regression line using your calculator:
For 11 used Honda CR-Vs, we found:
This means for every additional thousand miles driven, the predicted price decreases by 18,773.
💡 Always sketch your scatterplot first to make sure the relationship looks linear before calculating a regression line!

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
A residual is the difference between what actually happened and what your line predicted: residual = actual y - predicted y = y - ŷ
The formula is easy to remember with "AP: actual minus predicted."
Positive residuals mean the actual value is above the line (the prediction was too low), while negative residuals mean the actual value is below the line (the prediction was too high).
Let's calculate a residual for a Ford F-150 with 59,000 miles and an actual price of $32,000:
This means this particular truck is selling for $3,354.10 more than our regression line predicted. Maybe it has special features or is in exceptionally good condition!
Residuals help us see how accurately our regression line fits the actual data points. The closer the residuals are to zero, the better our predictions.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
What makes a regression line the "best" fit? The least-squares regression line is the one that makes the sum of the squared residuals as small as possible.
Why square the residuals? This emphasizes larger errors and ensures positive and negative errors don't cancel each other out. For example, a residual of -4,765 becomes a squared residual of 22,705,225.
When analyzing Taco Bell's chicken menu items (comparing fat to carbs), we found:
For the Chicken Burrito Supreme with 12g of fat and 50g of carbs:
This item has 12.35 more grams of carbs than our line predicted!
💡 The least-squares line isn't resistant to outliers—unusual data points can drastically change your regression line!

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
A residual plot graphs residuals against the explanatory variable (x), helping you see if a linear model is appropriate for your data.
What to look for in a residual plot:
Creating a residual plot on your calculator:
A good residual plot will look like a random cloud of points scattered evenly above and below the horizontal line where residual = 0.
Think of residual plots as your regression lie detector—they reveal patterns that might be hidden in the original scatterplot and tell you whether your linear model is trustworthy.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
Two key statistics tell us how well our regression line fits the data:
Standard deviation of the residuals (s):
Coefficient of determination (r²):
Important relationships:
💡 A higher r² means your model explains more of the variation in your data, making it a stronger predictor!

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
For the Taco Bell data, r² = 0.7105, meaning 71.05% of the variation in carbohydrates is accounted for by the relationship between fat and carbs in Taco Bell chicken items.
In another example with college football teams, the regression line ŷ = -3.75 + 0.437x relates points scored per game (x) to wins (y):
When reading computer output from statistical software (like Minitab or JMP), you need to locate:
Learning to interpret these values helps you evaluate how well your model fits the data and how reliable your predictions will be.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
For roller coasters, we analyzed the relationship between height (x in feet) and speed (y in mph), finding:
For Mr. Freeze, a roller coaster 218 ft tall with actual speed of 70 mph:
The statistics tell us:
Interesting note: Changing units would not affect r² but would increase s because the values of y would be larger.
💡 Be cautious about extrapolation! We wouldn't use this model to predict speed for a 500-foot roller coaster since that's outside our data range.

Access to all documents
Improve your grades
Join milions of students
By signing up you accept Terms of Service and Privacy Policy
You can calculate the regression line without the original data if you know:
The formulas are:
For example, with foot length (x) and height (y) data:
Slope: b = 0.697(10.69/2.71) = 2.75 y-intercept: a = 171.43 - 2.75(24.76) = 103.34
So the regression line is: ŷ = 2.75x + 103.34
This means for every additional centimeter in foot length, we predict height to increase by 2.75 centimeters.
Remember: The regression line always passes through the point (x̄, ȳ), and for each increase of 1 standard deviation in x, the predicted y increases by r times the standard deviation of y.
Our AI companion is specifically built for the needs of students. Based on the millions of content pieces we have on the platform we can provide truly meaningful and relevant answers to students. But its not only about answers, the companion is even more about guiding students through their daily learning challenges, with personalised study plans, quizzes or content pieces in the chat and 100% personalisation based on the students skills and developments.
You can download the app in the Google Play Store and in the Apple App Store.
That's right! Enjoy free access to study content, connect with fellow students, and get instant help – all at your fingertips.
2
Smart Tools NEW
Transform this note into: ✓ 50+ Practice Questions ✓ Interactive Flashcards ✓ Full Mock Exam ✓ Essay Outlines
App Store
Google Play
The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.
Stefan S
iOS user
This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.
Samantha Klich
Android user
Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.
Anna
iOS user
I think it’s very much worth it and you’ll end up using it a lot once you get the hang of it and even after looking at others notes you can still ask your Artificial intelligence buddy the question and ask to simplify it if you still don’t get it!!! In the end I think it’s worth it 😊👍 ⚠️Also DID I MENTION ITS FREEE YOU DON’T HAVE TO PAY FOR ANYTHING AND STILL GET YOUR GRADES IN PERFECTLY❗️❗️⚠️
Thomas R
iOS user
Knowunity is the BEST app I’ve used in a minute. This is not an ai review or anything this is genuinely coming from a 7th grade student (I know 2011 im young) but dude this app is a 10/10 i have maintained a 3.8 gpa and have plenty of time for gaming. I love it and my mom is just happy I got good grades
Brad T
Android user
Not only did it help me find the answer but it also showed me alternative ways to solve it. I was horrible in math and science but now I have an a in both subjects. Thanks for the help🤍🤍
David K
iOS user
The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!
Sudenaz Ocak
Android user
In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.
Greenlight Bonnie
Android user
I found this app a couple years ago and it has only gotten better since then. I really love it because it can help with written questions and photo questions. Also, it can find study guides that other people have made as well as flashcard sets and practice tests. The free version is also amazing for students who might not be able to afford it. Would 100% recommend
Aubrey
iOS user
Best app if you're in Highschool or Junior high. I have been using this app for 2 school years and it's the best, it's good if you don't have anyone to help you with school work.😋🩷🎀
Marco B
iOS user
THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮
Elisha
iOS user
This app is phenomenal down to the correct info and the various topics you can study! I greatly recommend it for people who struggle with procrastination and those who need homework help. It has been perfectly accurate for world 1 history as far as I’ve seen! Geometry too!
Paul T
iOS user
The app is very easy to use and well designed. I have found everything I was looking for so far and have been able to learn a lot from the presentations! I will definitely use the app for a class assignment! And of course it also helps a lot as an inspiration.
Stefan S
iOS user
This app is really great. There are so many study notes and help [...]. My problem subject is French, for example, and the app has so many options for help. Thanks to this app, I have improved my French. I would recommend it to anyone.
Samantha Klich
Android user
Wow, I am really amazed. I just tried the app because I've seen it advertised many times and was absolutely stunned. This app is THE HELP you want for school and above all, it offers so many things, such as workouts and fact sheets, which have been VERY helpful to me personally.
Anna
iOS user
I think it’s very much worth it and you’ll end up using it a lot once you get the hang of it and even after looking at others notes you can still ask your Artificial intelligence buddy the question and ask to simplify it if you still don’t get it!!! In the end I think it’s worth it 😊👍 ⚠️Also DID I MENTION ITS FREEE YOU DON’T HAVE TO PAY FOR ANYTHING AND STILL GET YOUR GRADES IN PERFECTLY❗️❗️⚠️
Thomas R
iOS user
Knowunity is the BEST app I’ve used in a minute. This is not an ai review or anything this is genuinely coming from a 7th grade student (I know 2011 im young) but dude this app is a 10/10 i have maintained a 3.8 gpa and have plenty of time for gaming. I love it and my mom is just happy I got good grades
Brad T
Android user
Not only did it help me find the answer but it also showed me alternative ways to solve it. I was horrible in math and science but now I have an a in both subjects. Thanks for the help🤍🤍
David K
iOS user
The app's just great! All I have to do is enter the topic in the search bar and I get the response real fast. I don't have to watch 10 YouTube videos to understand something, so I'm saving my time. Highly recommended!
Sudenaz Ocak
Android user
In school I was really bad at maths but thanks to the app, I am doing better now. I am so grateful that you made the app.
Greenlight Bonnie
Android user
I found this app a couple years ago and it has only gotten better since then. I really love it because it can help with written questions and photo questions. Also, it can find study guides that other people have made as well as flashcard sets and practice tests. The free version is also amazing for students who might not be able to afford it. Would 100% recommend
Aubrey
iOS user
Best app if you're in Highschool or Junior high. I have been using this app for 2 school years and it's the best, it's good if you don't have anyone to help you with school work.😋🩷🎀
Marco B
iOS user
THE QUIZES AND FLASHCARDS ARE SO USEFUL AND I LOVE THE SCHOOLGPT. IT ALSO IS LITREALLY LIKE CHATGPT BUT SMARTER!! HELPED ME WITH MY MASCARA PROBLEMS TOO!! AS WELL AS MY REAL SUBJECTS ! DUHHH 😍😁😲🤑💗✨🎀😮
Elisha
iOS user
This app is phenomenal down to the correct info and the various topics you can study! I greatly recommend it for people who struggle with procrastination and those who need homework help. It has been perfectly accurate for world 1 history as far as I’ve seen! Geometry too!
Paul T
iOS user