The logit and logistic functions
Linear regression works on real numbers \mathbb{R}
, that is, the input and output are in \mathbb{R}
.
For probabilities, this is problematic because the linear regression will happily give a probability of -934
, where we know that probabilities should always lie between 0
and 1
.
This is only by definition, but it is an useful definition in practice.
Informally, the logistic function converts values from real numbers to probabilities and the logit function does the reverse.