Before you readCan you stop a degree-9 polynomial from chasing noise without lowering its degree?
Watch: Regularization Part 1: Ridge (L2) Regression · StatQuest with Josh Starmer
Ridge regression adds a penalty for large weights to the least-squares objective:
sets the trade-off between fitting the data and keeping the weights small. The solution is
For the matrix is always invertible, even if the design matrix has dependent columns. With Gaussian observation noise and an isotropic zero-mean Gaussian prior on ridge gives the MAP estimate.
Lasso replaces the squared penalty with the penalty It can set some weights exactly to zero, leaving a sparse model.
‖w‖ = 453.42Train MSE = 0Test MSE = 1.65
Recall
What penalty does ridge add to least squares?Recall
How does ridge change the normal equations?Recall
What happens to the weights as the ridge penalty grows without bound?Exercise
Fit by ridge regression to and with Give Exercise
Which penalty can set some fitted weights exactly to zero to make a sparse model?