Lecture 4 · Wed, 23 Sept 2026

Linear models for prediction

Linear regression, penalised regression (ridge, lasso), and prediction

Open slides

Linear Models for Prediction

Linear regression is your first credible baseline — transparent, fast, and fully inspectable. This lecture covers OLS regression, then introduces ridge and lasso as the first upgrade when you worry about overfitting or too many features. We discuss when to penalise, how to tune the regularisation parameter with cross-validation, and what the regularisation path tells you about your features.

Interactive: Regularisation path

Regularisation path: as λ increases (slider right), coefficients shrink toward zero. Stronger features resist longer. Ridge shrinks smoothly; lasso would send some coefficients exactly to zero.

MST0052 Predictive Modelling with Machine Learning · Fall 2026 · BI Norwegian Business School