Sigmoid function
3
MENTIONS
1
EPISODES
1
PODCASTS
Search complete. 3 mentions across 1 episode found for "Sigmoid function".
Dec 4, 2026
Logistic Regression (C1W2L02)
A
4:17Andrew NgHOST
And it's difficult to enforce that because W transpose X plus B can be much bigger than 1 or can even be negative, which doesn't make sense for a probability that you want to be between 0 and 1.
A
4:29Andrew NgHOST
So in logistic regression, our output is instead going to be y hat equals the sigmoid function applied to this quantity.
A
4:38Andrew NgHOST
This is what the sigmoid function looks like.
A
4:41Andrew NgHOST
If on the horizontal axis, I plot z, then the function sigmoid of z looks like this.
A
4:50Andrew NgHOST
So it goes smoothly from zero up to one.
A
4:54Andrew NgHOST
Let me label my axis here.
A
4:56Andrew NgHOST
this is 0, and it crosses the vertical axis at 0.5.
A
5:01Andrew NgHOST
So this is what sigmoid of z looks like, and we're going to use z to denote this quantity, w transpose x plus b. Here's the formula for the sigmoid function.