When we fit a logistic regression model, the intercept term in the model output represent the log odds of the response variable occurring when all predictor variables are equal to zero.
However, since log odds is hard to interpret we usually frame the intercept in terms of probability.
We can use the following formula to understand the probability that the response variable occurs, given that each predictor variable in the model is equal to zero:
P = eβ0 / (1 +eβ0)
The following example shows how to interpret a logistic regression intercept in practice.
Example: How to Interpret Logistic Regression Intercept
Suppose we would like to fit a logistic regression model using gender and number of practice exams taken to predict whether or not a student will pass a final exam in some class.
|Gender (Male = 1)
We can see that the intercept term has a value of -1.34.
This means that when Gender is equal to zero (i.e. the student is female) and when Practice Exams is equal to zero (the student took no practice exams in preparation for the final exam) the log odds of the student passing the exam are -1.34.
Since log odds are hard to understand, we can instead rewrite things in terms of probability:
- Probability of Passing = eβ0 / (1 +eβ0)
- Probability of Passing = e-1.34 / (1 +e-1.34)
- Probability of Passing = 0.208
When both predictor variables are equal to zero (i.e. a female student who took no prep exams), the probability that the student passes the final exam is 0.208.
The following tutorials provide additional information about logistic regression: