Glossary · Regression
Logistic Regression
Also called: logit model · logit
A regression model for yes-or-no outcomes that predicts the probability of an event by passing a linear score through an S-shaped logistic function.
Definition
Logistic regression models the log-odds of a binary outcome, such as churn or purchase, as a linear function of predictors, which keeps predicted probabilities between 0 and 1. Coefficients are estimated by maximum likelihood rather than least squares. Exponentiating a coefficient gives an odds ratio: the multiplicative change in the odds of the event for a one-unit increase in that predictor. It is a standard baseline classifier in analytics because it is fast, interpretable and produces calibrated probabilities that can be turned into decisions with a chosen threshold.
Formula
TeX source
P(y = 1 \mid x) = \frac{1}{1 + e^{-(\beta_0 + \beta_1 x_1 + \cdots + \beta_k x_k)}}Worked example
Try it in a tool
Related terms
- Linear Regression: A statistical method that models an outcome as a linear combination of predictors, choosing coefficients that minimize the sum of squared errors.
- Confusion Matrix: A table that counts a classifier's true positives, false positives, true negatives and false negatives, the basis for accuracy, precision and recall.
- Precision and Recall: Precision is the share of predicted positives that are correct; recall is the share of actual positives the model finds.
- Supervised Learning: Machine learning that trains a model on examples with known answers (labels) so it can predict the answer for new cases.
- Conjoint Analysis: A survey method that infers how much customers value each product attribute by having them choose among bundles that vary those attributes.