Regression

Ridge Regression

This is used for preventing the overfitting in data. They simply use the regularization with the regression cost function. So new cost function for ridge regression:-

L=∥wX−y  ∥2+  λ∥w  ∥2L = \parallel wX-y\; \parallel^2 +\; \lambda\parallel w\;\parallel^2

Lasso Regression

This is used for preventing the overfitting in data. They simply use the regularization with the regression cost function. The difference they have with Ridge regression is just in the way they apply regularisation. In the lasso, they use L1L_1 regularisation:

L=∥wX−y  ∥2+  λ∥w  ∥L = \parallel wX-y\; \parallel^2 +\; \lambda\parallel w\;\parallel

Last updated