This model can overfitt. Some of the regularization techniques are:

Ridge regression

In ridge regression, we use the L2 penalty i.e. adds penalty equivalent to square of the magnitude of coefficients i.e. we minimize

$$RSS + \lambda \sum_{j=1}^p\beta_{j}^2$$

Here, is known as a tuning parameter. When , the penalty term has no effect and ridge regression will produce the least square estimates. However, as , the impact of penalty increases.

NOTE: It is best to apply ridge regression after standarizing the predictors (feature normalization).

Ridge regression solves the problem of overfitting (high variance) as a consequence of bias-variance tradeoff. As increases, the flexibility of regression fit decreases, leading to decreases variance but increased bias.

Lasso regresssion

In lasso regression, we use L1 penalty i.e. adds penalty equivalent to absolute value of the magnitude of coefficients so we minimize

The benefit in lasso regression is that L1 penalty can force some of the coefficient estimates to be exactly equal to when is large unlike in ridge regression.

Regularization in Neural Networks

In neural networks, there are many regularization techniques used such as L2 regularization (Frobenius norm regularization), Early stopping, Dropout regularization and many more.

In general, there are many regularization techniques. Each has some advantages over others. The choice of regularization technique to use depends on the type of problem you’re trying to solve.