Professional Documents
Culture Documents
Social Network Ads - Bamba
Social Network Ads - Bamba
Social Network Ads - Bamba
Logistic Regression
[DataSet1]
a. If weight is in effect, see classification table for the total number of cases.
Dependent Variable
Encoding
Original Value Internal Value
0 0
1 1
Page 1
a,b
Classification Table
Predicted
Purchased
Percentage
Observed 0 1 Correct
Step 0 Purchased 0 257 0 100.0
1 143 0 .0
Overall Percentage 64.3
a
Variables not in the Equation
Score df Sig.
Step 0 Variables Gender(1) .721 1 .396
Age 154.980 1 .000
EstimatedSalary 52.442 1 .000
Model Summary
-2 Log Cox & Snell R Nagelkerke R
Step likelihood Square Square
a
1 275.843 .459 .630
a. Estimation terminated at iteration number 6 because parameter estimates changed by less than .001.
Page 2
Hosmer and Lemeshow Test
Step Chi-square df Sig.
1 24.432 8 .002
a
Classification Table
Predicted
Purchased
Percentage
Observed 0 1 Correct
Step 1 Purchased 0 237 20 92.2
1 39 104 72.7
Overall Percentage 85.3
Page 3
Variables in the Equation
95% C.I.for EXP(B)
Lower Upper
a
Step 1 Gender(1) .394 1.303
Age 1.204 1.335
EstimatedSalary 1.000 1.000
Constant
Step number: 1
80 +
+
I
I
I
I
F I
I
R 60 +
+
E I0
I
Q I0
I
U I0
I
E 40 +0
+
N I0
I
C I0
I
Y I0
I
Page 4
20 +00
+
I00 0
1I
I000000 1 01
11I
I0000000 00000 00 0 00 00 0000 1 11 1101 1 0 0 11 11 11
1 1 11 1111101I
Predicted ---------+---------+---------+---------+---------+---------+--------
-+---------+---------+----------
Prob: 0 .1 .2 .3 .4 .5 .6
.7 .8 .9 1
Group: 00000000000000000000000000000000000000000000000000111111111111111111
11111111111111111111111111111111
Page 5