Lasso

Predicting Life Expectancy

Intro

The focus here is on EDA (Exploratory Data Analysis) and investigating the best choice for the \(\lambda\) hyperparameter for LASSO and Ridge Regression.

We will be working on the Life Expectancy CSV data obtained from WHO.

This page is a worked notebook, not the theory: leave-one-out and \(m\)-fold cross-validation, the LOOCV shortcut for linear smoothers and their proofs are under cross-validation on the model selection page. The notebook also keeps some instructive faults, flagged where they occur:

Read more >

Regularised Regression

this page collects the closed-form solutions to regularised regression (where they exist) and the iterative approximations we fall back on (where they don’t). 𐃏 along the way we will see that regularisation is not an ad-hoc hack but a perfectly sensible artefact of estimation: it drops straight out of MAP (maximum a posteriori) inference once you put a prior on the coefficients.

Read more >