It earns a place when
- Use it as a strong, interpretable classification baseline, especially with sparse or high-dimensional features.
- You can evaluate it against a credible baseline.
- Its output fits the decision and data constraints.
Machine learning models · Phase 2 · Lesson 11
Understand logistic regression as a probability model for classification and see how GLMs extend linear predictors.
Understand logistic regression as a probability model for classification and see how GLMs extend linear predictors.
The model still adds weighted evidence, then passes it through a link function that turns an unconstrained score into a valid probability.
Logistic regression uses logit(p) = beta_0 + beta^T x, so p = 1/(1 + exp(-z)). The coefficients act on log-odds, not directly on probability.
Predict whether a transaction is fraudulent from amount, merchant category and velocity features. The model outputs a probability before a business threshold decides whether to review it.
When a result looks surprisingly good, inspect the split, target timing, error slices and data-generating process before celebrating.
Use this as a small experiment rather than a recipe to copy blindly. Change one thing, record the result and explain the change.
Answer from memory first. The buttons reveal feedback, but the durable step is explaining why.
1. What does logistic regression model naturally?
2. What does changing the threshold change?
3. Why can a coefficient be hard to interpret causally?
An Introduction to Statistical Learning. Use the source for the deeper treatment after you can explain the lesson's core idea without looking.