Logistic Regression

Suppose our answer needs to be yes or no. We can first estimate a probability from the measurements, then decide how large that probability needs to be before we choose yes.

18 sections · 10 questions · 4 coding challenges

1 / 18

How Do We Predict an Outcome That Is Either Yes or No?

BOTIE

Suppose we record whether a component failed, along with the conditions under which it operated. We would like to know how those conditions relate to the chance of failure. A straight-line prediction can rise above certainty or fall below impossibility, so it cannot serve as a probability without further structure.

Logistic regression developed within the study of binary outcomes. David Cox's 1958 paper on binary sequences is an early treatment of regression for this kind of data. The useful change is in what we model with a linear relationship: the logarithm of the odds, rather than the probability itself.

We can think of the model as first collecting evidence into a score. The logistic function then turns that score into a probability between zero and one. Large positive scores approach one; large negative scores approach zero. This gives us a way to represent increasing confidence without leaving the range a probability is allowed to occupy.

Sources for this history