Use it when the outcome has two possible values: default or no default, pass or fail, disease or no disease.
- We want a probability between 0 and 1, not an unrestricted numerical prediction.
- Logistic regression connects predictors to that probability through log odds.
- A probability can later become a classification by choosing a threshold.
By the end: fit a logistic model in R, interpret its coefficient, and explain why a predicted probability is different from a yes-or-no decision.