Probability functions in Logistic Regression

I didn’t understand from where the probability functions defined in second video of logistic regression came from.
Why is the probability of y belonging to class 1 is equal to hypothesis function?

Hey @rjseniwal, in the following video you will see, (theta^t * x >=0) for class 1 and for class 0 (theta^T *x <0),
And than we applied sigmoid activation, which is like this,

Now, for 1 class, 0.5<=sigmoid(z) <1 because all values of z>=0.

Similary fro 0 class, 0<sigmoid(z)<=0.5 because all values of z<0.

Since these values are between 0 and 1, we can refer these values to as confidence value of belonging to 1 class. And similarly if we want to confidence for 0 class, than it would be (1- this value).

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.