It fits a line (or hyperplane) that minimizes the sum of squared errors between predictions and actual values, solved with the normal equation or gradient descent.
Assumptions: a linear relationship, independent errors, constant error variance (homoscedasticity), roughly normal residuals, and little multicollinearity among features.
Check residual plots and the variance inflation factor (VIF); outliers can distort the fit heavily.
Fix problems with transformations, polynomial features, regularization (Ridge or Lasso), or removing correlated features.
Loading…