Ridge and Lasso Regression

Ridge regression adds λ‖w‖² to the squared error: the MAP estimate under a Gaussian prior, with closed form (XXᵀ + λI)⁻¹Xy, which shrinks every weight and cures collinearity. Lasso adds λ‖w‖₁ instead: a Laplace prior, no closed form, and the corners of the L1 ball push many weights to exactly zero, so it selects features.

Machine Learning Techniques

Sign up free to read the rest of this lesson