In the previous tutorial, you understood about logistic regression and the best fit sigmoid curve. Next, discuss Odds and Log Odds.
The relationship between x and probability is not very intuitive. Let’s modify the above equation to find an intuitive equation.
Step-1: Calculate the probability of not having blood sugar.
p = probability of having diabetes.
1-p = probability of not having diabetes.
You can interpret odd like below.
This means the probability of diabetes is 5 times not having probability.
So now that you have understood odd, let’s check out the next concept called log odds. Log odds is nothing but the logarithmic value of Odds.
Let’s use the diabetes dataset to calculate and visualize odds.
|Blood Sugar Level||probability||Odds||Log Odds|
Upon plotting Blood sugar vs Log odds, we can observe the linear relation between blood sugar and Log Odds.
Hope this post helps you to understand odds and log odds. Follow other tutorials to learn more about Logistic Regression.