# Ridge Regression: When should the intercept be included ? What is the purpose of the intercept term? [duplicate]

I am trying to determine what is the purpose of including the intercept term in ridge regression.

In what situations should I include the intercept term ?

And in what situations should I not include the intercept term in ridge regression ?

## marked as duplicate by kjetil b halvorsen, Peter Flom - Reinstate Monica♦Nov 26 '18 at 10:51

The only reason we want to remove the intercept term is that we need $$y=0$$ when $$\mathbf x = \mathbf 0$$.