Skip to content

Linear Regression

A model that predicts a numerical target as a linear combination of features.

\[ \hat y=w_1x_1+w_2x_2+\ldots+w_dx_d+b \]

Parameters

  • \(w_1,\ldots,w_d\) — the weights: how strongly each feature affects the answer;
  • \(b\) — the intercept.

These are the model's parameters: training fits them.

How It Is Trained

  1. Compute the error — usually MSE.
  2. Minimize it: analytically or with gradient descent.
  3. To keep the model from overfitting, add regularization — L1 or L2.

See Also

← All Terms