Logistic Regression Example
Logistic Regression Example
1 X1 X2 Y
2 2.7810836 2.550537003 0
3 1.4654893 2.362125076 0
4 3.3965616 4.400293529 0
5 1.3880701 1.850220317 0
6 3.0640723 3.005305973 0
7 7.6275312 2.759262235 1
8 5.3324412 2.088626775 1
9 6.9225967 1.77106367 1
10 8.6754186 -0.242068654 1
11 7.6737564 3.508563011 1
• Below is a plot of the dataset. You can see that
it is completely contrived and that we can
easily draw a line to separate the classes.
• This is exactly what we are going to do with
the logistic regression model.
plot
Logistic Function
b0 = -0.0375
b1 = -0.104290635
b2 = -0.09564513761
Repeat the Process