Linear model
Predictions are a weighted sum of features plus an intercept.
Estimating parameters by least squares
Linear regression chooses parameters so that a model minimizes squared vertical residuals between observations and predictions.
The essential idea: linearity refers to the parameters, so transformed predictors can still fit nonlinear shapes.
Predictions are a weighted sum of features plus an intercept.
Training minimizes the sum of squared residuals.
Change slope and intercept, then compare your residual sum of squares with the optimal line.
Linear regression estimates parameter coefficients by minimizing squared prediction residuals.