AI & ML

Linear Models: Regression

Part of Foundations, level 0. About 7 hours of study across the topics below.

Create free account

Linear Regression I: Prediction and ResidualsLoss and Fitting: Squared ErrorLinear Regression II: Least Squares FittingMultiple RegressionPolynomial Features and Nonlinearity via FeaturesLinear Regression as a Probabilistic ModelGeneralized Linear Models

1Simple Regression

  1. Linear Regression I: Prediction and ResidualsThe first model: a line that predicts, residuals that complain, errors that add up. 1–2 h
  2. Loss and Fitting: Squared ErrorResiduals become costs: squared error, SSE/MSE, and fitting as minimization. 1–2 h
  3. Linear Regression II: Least Squares FittingThe fit, computed: least-squares intuition, the normal-equations idea, and by-hand vs closed-form. 1–2 h

2Multiple Regression

  1. Multiple RegressionMany features, one prediction: planes, coefficient reading, and projection intuition. 1–2 h
  2. Polynomial Features and Nonlinearity via FeaturesCurves from lines: expanding features so a linear fitter can bend. 1–2 h
  3. Linear Regression as a Probabilistic ModelGaussian noise turns least squares into maximum likelihood: the bridge between fitting and probability. 1–2 h
  4. Generalized Linear ModelsOne template, many targets: a linear predictor, a link function, and an exponential-family likelihood. 1–2 h