Logistic Regression
Logistic regression models the probability of a binary outcome as a logistic (sigmoid) function of a linear combination of features.
Definition
where squashes the linear output to [0, 1].
Parameters are fit by maximizing the likelihood — equivalent to minimizing binary cross-entropy loss.
Intuition
Despite "regression" in the name, it's a classification method — the sigmoid converts a raw score to a calibrated probability.
Log-odds is linear in the features, so each unit increase in multiplies the odds by .
Worked example
Predicting loan default: .
If , a one-unit increase in income multiplies the odds of default by .
The math
Loss: , minimized by gradient descent.
Multinomial logistic regression (softmax) extends to classes with .
In practice
Baseline classifier for binary problems — fast, interpretable (coefficients show direction and magnitude), and often competitive.
Used in epidemiology, credit scoring, and any domain where you need both predictions and calibrated probabilities.
Go deeper
- InteractiveActivation Functions Explorer
More in Data science
Assembled from the ReLU.chat curated knowledge base. These explanations are concise on purpose; check the sources for anything important.