Jargonautica
Classical Machine Learning

Linear and Logistic Regression

Also called: Linear Regression, Logistic Regression

The simplest useful models, and the sensible place to start. Linear regression fits a straight line through your data to predict a number. Logistic regression does the same but bends the output into a probability between nought and one so it can predict a category instead. They are often dismissed as too basic, but they are fast, they need little data, and you can explain exactly why they produced any given answer, which is more than can be said for most of what follows.

Technical view

Both are generalised linear models: a weighted sum of inputs, with logistic regression passing that sum through a sigmoid. Coefficients are directly interpretable as the effect of each input, which is why they remain standard in medicine, credit scoring and anywhere a decision has to be defended. They assume the relationship is linear in the inputs and handle interactions only if those are engineered in by hand. A single-layer neural network with a sigmoid activation is logistic regression, which is a useful thing to notice.


Part of AI Terminology Index, section: Classical Machine Learning.

How it connects

Linear and Logistic Regression links to 7 other terms. The faint lines are links between those terms. See it in the full graph.

Neural NetworkNeural NetworkLoss FunctionLoss FunctionClassification and RegressionClassification and …ConvexityConvexityInterpretabilityInterpretabilityFeature EngineeringFeature EngineeringPerceptronPerceptronLinear and Logistic Regression