Logistic Regression

Category: Foundations of ML/AI

A linear model for binary classification that predicts the probability of an input belonging to a class using the sigmoid function.

Full Explanation

Logistic regression is a fundamental classification algorithm that models the probability of a binary outcome using a linear combination of features passed through the sigmoid (logistic) function. Despite its name, logistic regression is used for classification, not regression. The model outputs probabilities between 0 and 1, with a threshold (typically 0.5) determining the predicted class. It is trained by maximizing the log-likelihood (equivalently minimizing cross-entropy loss). Logistic regression is highly interpretable since each feature weight directly indicates the feature's contribution to the prediction. It can be extended to multi-class problems via one-vs-rest or softmax regression. Logistic regression remains widely used in medicine, social sciences, and industry as both a standalone model and a baseline for comparison.

Related Terms

More in Foundations of ML/AI

Explore More