Constant in Logistic Regression

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

1 comment

  1. 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.

Leave a comment