Professional Documents
Culture Documents
Logistic Regression
Logistic Regression
model
- Clearly simplest
model could be y =1
when tumor size is
greater than 5
- In the first model one
could do that by
saying y_predicted
>0.5
- Adding a few more
grey points should not
result in new model or
a new line because in
reality the cut has not
changed
Credit Score
Probability of
default
P(z) = 1/(1+exp(-z))
6
10
Tumor Size
12
14
16
Sigmoid function
Error function(analogy)
Y=0
(p-0)
Roughly
MLE
1
Error
Y=1
(1-p)
Error
p1 y (1 p ) y
Minimiz
e
p y (1 p )1 y
Maximiz
e
MLE
(Maximum
Likelihood)
where
zi xi
Threshold
Negative
Picking a threshold:
KS Chart
- Divide the
population into
deciles
-
- Pick the
score/threshold of
the decile where the
separation between
good and bad is the
maximum
False
True
True Positive
False
Positive
False
True
Negative
False
Negative
Predicted