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

## 1 comment

## Leave a comment

You must be logged in to post a comment.

Skip to content
# Constant in Logistic Regression

##
1 comment

## Leave a comment

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

You must be logged in to post a comment.

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.