Logistic regression is a statistical model that estimates the probability of a yes-or-no outcome – a disease, a loan default, a click – from input variables. Despite its name, it is used for classification, and it is one of the most widely applied models in science, medicine and industry.
How it works
Like linear regression, the model computes a weighted sum of the inputs, but it passes the result through the S-shaped logistic function, which squeezes any number into a probability between 0 and 1. The weights are learned by maximizing the likelihood of the observed outcomes, with iterative methods such as Newton’s method or, in machine learning, gradient descent. Each weight can be read as how much an input changes the odds of the outcome, which makes the model easy to explain to doctors, regulators and loan applicants (see Explainability). For more than two classes, the logistic function is replaced by the softmax – the same function that produces a language model’s probabilities over the next token.
History
The logistic curve was introduced by the Belgian mathematician Pierre-François Verhulst in the 1830s and 1840s to describe population growth. Joseph Berkson coined the term “logit” in 1944 and popularized the model, and David Cox’s 1958 paper on binary sequences, along with his later work, helped turn it into a general regression method. It became standard in epidemiology – many clinical risk scores are logistic models – and in credit scoring.
In modern AI
A logistic regression is equivalent to a single artificial neuron with a sigmoid activation – a smooth version of the perceptron’s threshold unit and the standard unit of the neural networks trained with backpropagation from the 1980s (see Perceptron). It remains a strong baseline: a 2019 systematic review of clinical prediction studies found no average performance advantage for machine-learning methods over logistic regression in well-conducted comparisons, and its probability estimates tend to be well calibrated – they match observed frequencies – where some more complex models need extra adjustment. Interpretability researchers train logistic “probes” on a network’s internal states to test what it represents (see Interpretability).
Why it matters
Logistic regression is the quiet standard behind many consequential decisions, from medical risk scores to lending, and the benchmark against which claims that complex AI does better – or fairer – must be measured (see Automated Decision-Making).
Written with Claude, made by Anthropic, whose researchers use linear and logistic probes in interpretability work.
Related
Linear Regression · Softmax · Perceptron · Calibration · Supervised Learning · Naive Bayes
Sources: David R. Cox: The Regression Analysis of Binary Sequences (Journal of the Royal Statistical Society, Series B) (1958) · J. S. Cramer: The Origins of Logistic Regression (Tinbergen Institute Discussion Paper) (2002) · Evangelia Christodoulou et al.: A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models (Journal of Clinical Epidemiology) (2019)
Leave a Reply