Lec4 Logistic Regression
Lec4 Logistic Regression
Lec 4
Instructor:
Assoc Lecturer : Ahmed Yousry
The classification problem is just like the regression problem,
except that the values y we now want to predict take on only
a small number of discrete values.
This way we map the probabilities from the [0; 1] range to the
entire number line (real value).
pi
log xi
1 p i
pi
xi
1 pi e
e xi 1
pi xi
xi
1 e 1
e Standard logistic sigmoid function
g( )
1
p i g ( t
x) t
1 e
x
h (x) p( y 1|
x; )
Maximum Likelihood Estimation
(MLE)
1. Step 1 : get the probability for all observations