Lesson 3 of 81958–today8 min
Logistic regression and classification metrics
In 1958 the British statistician David Cox published “The Regression Analysis of Binary Sequences”. His problem was an outcome that is either 0 or 1, success or failure, and how it depends on explanatory variables. A straight line cannot do it: it predicts values below 0 and above 1.
Cox modelled the log-odds of the outcome as linear instead. The result, logistic regression, is still the first model a data scientist fits to a yes/no question, and the baseline any fraud, spam or churn classifier has to beat.
The rest of this lesson is part of Pro
Create a free account to read the first lesson of every path, and go Pro for the rest.
Sources
- The Regression Analysis of Binary Sequences (D. R. Cox, Journal of the Royal Statistical Society, Series B 20(2), 1958) — Journal of the Royal Statistical Society
- Metrics and scoring: quantifying the quality of predictions — scikit-learn documentation
- CS229 Machine Learning: lecture notes, classification and logistic regression (A. Ng, T. Ma) — Stanford University