Linear Model vs Least-Squares Regression Line

Both terms below come up in the same part of the course, and students mix them up. Here is each one defined on its own, side by side, so you can see where they part company.

Linear model

Regression and correlation

A linear model is a straight-line equation that uses an explanatory variable x to predict a response variable y, written y-hat = a + bx.

A linear model summarizes a scatterplot with one straight line, so any xx you choose turns into a prediction. It is written y^=a+bx\hat{y} = a + bx, where y^\hat{y} (read y-hat) is the predicted response, aa is the y-intercept, and bb is the slope. For example, if y^=12+3x\hat{y} = 12 + 3x predicts a plant's height in centimeters from weeks of growth, then at x=5x = 5 weeks the model gives 12+3(5)=2712 + 3(5) = 27 centimeters. Fit a linear model only when the scatterplot and the residual plot show a linear form, since the equation will happily produce numbers for curved data too.

Full entry for linear model

Least-squares regression line

Regression and correlation

The least-squares regression line is the straight line through a scatterplot that makes the sum of the squared residuals as small as possible.

The least-squares regression line is the best-fit line for predicting the response from the explanatory variable, chosen to minimize the total squared vertical distance from the points. Its equation is y^=a+bx\hat{y} = a + bx, where y^\hat{y} (read y-hat) is the predicted response, aa is the y-intercept, and bb is the slope. For example, y^=50+5x\hat{y} = 50 + 5x predicts a score of 75 when x=5x = 5 hours of study. The line always passes through the point of averages (xˉ,yˉ)(\bar{x}, \bar{y}).

Full entry for least-squares regression line

Where each one fits in the course