Why do we need to add a constants column with the independent variables while doing logistic regression?

Share

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

## Dipayan Sarkar

When all your independent variables are zero, without an intercept, logistic regression will predict a probability of 1/2. In order to avoid the same, adding an intercept is required. The intercept will help predict a class probability instead of simply returning 1/2 as the predicted probability.