Sigmoid and Logistic Regression
Learn how sigmoid plays a link in mapping logit values into probabilities and its role in logistic regression.
From logits to probabilities
We are trying to map logit values into probabilities, and we have found, graphically, a function that maps log odds ratios into probabilities.
Clearly, our logits are log odds ratios. Sure, concluding this is not very scientific, but the purpose of this exercise is to illustrate how the results of a regression, represented by the logits (), get to be mapped into probabilities.
So, that is where we arrived at:
Let us work this equation out a bit, inverting, rearranging, and simplifying some terms to isolate :
Does it look familiar? That is a sigmoid function! It is the inverse of the log odds ratio, which has the following equation:
The code for this is given below as well:
Get hands-on with 1400+ tech skills courses.