Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

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

P(y=1∣x)=11+e−(β0+β1x1+⋯+βkxk)P(y = 1 \mid x) = \frac{1}{1 + e^{-(\beta_0 + \beta_1 x_1 + \cdots + \beta_k x_k)}}
TeX source
P(y = 1 \mid x) = \frac{1}{1 + e^{-(\beta_0 + \beta_1 x_1 + \cdots + \beta_k x_k)}}

Worked example

Hypothetical: in a churn model the coefficient on support tickets filed last quarter is 0.4, so each extra ticket multiplies the odds of churning by e^0.4 ≈ 1.49. A customer whose churn probability is 10% (odds 0.111) would have odds of about 0.166, or a 14% probability, after one more ticket.

Try it in a tool

  • 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.

Courses

More in Regression

All glossary terms