The logistic function and the log-odds #
The log-odds Real.logit p = log (p / (1 - p)) invert the logistic function on (0, 1). The share
of one of two exponentials in their sum is the logistic function of the difference of their
exponents.
The log-odds log (p / (1 - p)), the inverse of Real.sigmoid.
Equations
- p.logit = Real.log (p / (1 - p))