Social Network Ads - Bamba

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

LOGISTIC REGRESSION VARIABLES Purchased

/METHOD=ENTER Gender Age EstimatedSalary


/CONTRAST (Gender)=Indicator
/CLASSPLOT
/PRINT=GOODFIT CI(95)
/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).

Logistic Regression
[DataSet1]

Case Processing Summary


a
Unweighted Cases N Percent
Selected Cases Included in Analysis 400 100.0
Missing Cases 0 .0
Total 400 100.0
Unselected Cases 0 .0
Total 400 100.0

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

Categorical Variables Codings


Parameter
coding
Frequency (1)
Gender Female 204 1.000
Male 196 .000

Block 0: Beginning Block

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. Constant is included in the model.


b. The cut value is .500

Variables in the Equation


B S.E. Wald df Sig. Exp(B)
Step 0 Constant -.586 .104 31.575 1 .000 .556

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

a. Residual Chi-Squares are not computed because of redundancies.

Block 1: Method = Enter

Omnibus Tests of Model Coefficients


Chi-square df Sig.
Step 1 Step 245.730 3 .000
Block 245.730 3 .000
Model 245.730 3 .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

Contingency Table for Hosmer and Lemeshow Test


Purchased = 0 Purchased = 1
Observed Expected Observed Expected Total
Step 1 1 40 39.878 0 .122 40
2 40 39.504 0 .496 40
3 39 38.388 1 1.612 40
4 40 36.263 0 3.737 40
5 32 31.941 8 8.059 40
6 28 27.686 12 12.314 40
7 20 23.203 21 17.797 41
8 9 14.799 31 25.201 40
9 5 4.602 35 35.398 40
10 4 .736 35 38.264 39

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

a. The cut value is .500

Variables in the Equation

B S.E. Wald df Sig. Exp(B)


a
Step 1 Gender(1) -.334 .305 1.196 1 .274 .716
Age .237 .026 80.710 1 .000 1.267
EstimatedSalary .000 .000 44.336 1 .000 1.000
Constant -12.450 1.309 90.435 1 .000 .000

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

a. Variable(s) entered on step 1: Gender, Age, EstimatedSalary.

Step number: 1

Observed Groups and Predicted Probabilities

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

Predicted Probability is of Membership for 1


The Cut Value is .50
Symbols: 0 - 0
1 - 1
Each Symbol Represents 5 Cases.

Page 5

You might also like