0% found this document useful (0 votes)
15 views14 pages

Purchase File Logistic Regression

The document outlines the results of a logistic regression and discriminant analysis conducted on a dataset containing 237 cases to predict purchase decisions based on various factors such as gender, income, and customer satisfaction. The logistic regression model achieved an overall accuracy of 97.5%, while the discriminant analysis correctly classified 92.8% of cases. Key variables influencing purchase decisions included previous purchase frequency, discount offers received, and customer satisfaction scores.

Uploaded by

shrutishah964
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views14 pages

Purchase File Logistic Regression

The document outlines the results of a logistic regression and discriminant analysis conducted on a dataset containing 237 cases to predict purchase decisions based on various factors such as gender, income, and customer satisfaction. The logistic regression model achieved an overall accuracy of 97.5%, while the discriminant analysis correctly classified 92.8% of cases. Key variables influencing purchase decisions included previous purchase frequency, discount offers received, and customer satisfaction scores.

Uploaded by

shrutishah964
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

GET

FILE='C:\Users\Shruti\Downloads\purchase.sav'.

DATASET NAME DataSet1 WINDOW=FRONT.

LOGISTIC REGRESSION VARIABLES PurchaseDecision1Buy

/METHOD=ENTER GenderMale1 IncomeRs PreviousPurchaseFrequency DiscountOffersReceived CustomerSatisfactionScore Age

/CONTRAST (GenderMale1)=Indicator

/SAVE=PRED PGROUP

/CLASSPLOT

/CRITERIA=PIN(0.05) POUT(0.10) ITERATE(20) CUT(0.5).

Logistic Regression

Notes

Output Created 08-APR-2025 10:01:50

Comments

C:\Users\Shruti\Downloads\
Data
purchase.sav

Active Dataset DataSet1

Input Filter <none>

Weight <none>

Split File <none>

N of Rows in Working Data File 237


User-defined missing values are
Missing Value Handling Definition of Missing
treated as missing

LOGISTIC REGRESSION
VARIABLES
PurchaseDecision1Buy

/METHOD=ENTER
GenderMale1 IncomeRs
PreviousPurchaseFrequency
DiscountOffersReceived
CustomerSatisfactionScore Age
Syntax
/CONTRAST
(GenderMale1)=Indicator

/SAVE=PRED PGROUP

/CLASSPLOT

/CRITERIA=PIN(0.05)
POUT(0.10) ITERATE(20)
CUT(0.5).

Processor Time 00:00:00.00


Resources
Elapsed Time 00:00:00.02

PRE_1 Predicted probability


Variables Created or Modified
PGR_1 Predicted group

[DataSet1] C:\Users\Shruti\Downloads\purchase.sav

Case Processing Summary

Unweighted Casesa N Percent

Selected Cases Included in Analysis 237 100.0

Missing Cases 0 .0
Total 237 100.0

Unselected Cases 0 .0

Total 237 100.0

a. If weight is in effect, see classification table for the total number of


cases.

Dependent Variable Encoding

Original Value Internal Value

No 0

Yes 1

Categorical Variables Codings

Frequency Parameter coding

(1)

0 106 1.000
Gender (Male=1)
1 131 .000

Block 0: Beginning Block

Classification Tablea,b

Observed Predicted

Purchase Decision (1=Buy) Percentage


No Yes Correct

No 0 60 .0
Purchase Decision (1=Buy)
Step 0 Yes 0 177 100.0

Overall Percentage 74.7

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 1.082 .149 52.441 1 .000 2.950

Variables not in the Equationa

Score df Sig.

GenderMale1(1) .726 1 .394

IncomeRs 105.606 1 .000

PreviousPurchaseFrequency 44.998 1 .000


Step 0 Variables
DiscountOffersReceived 41.492 1 .000

CustomerSatisfactionScore 31.000 1 .000

Age 45.521 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 211.831 6 .000

Step 1 Block 211.831 6 .000

Model 211.831 6 .000

Model Summary

Step -2 Log likelihood Cox & Snell R Nagelkerke R


Square Square

1 56.351a .591 .872

a. Estimation terminated at iteration number 9 because


parameter estimates changed by less than .001.

Classification Tablea

Observed Predicted

Purchase Decision (1=Buy) Percentage


Correct
No Yes

No 57 3 95.0
Purchase Decision (1=Buy)
Step 1 Yes 3 174 98.3

Overall Percentage 97.5

a. The cut value is .500

Variables in the Equation


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

GenderMale1(1) .269 .806 .112 1 .738 1.309

IncomeRs .000 .000 19.174 1 .000 1.000

PreviousPurchaseFrequency 1.417 .381 13.856 1 .000 4.124

Step 1a DiscountOffersReceived 1.050 .333 9.958 1 .002 2.858

CustomerSatisfactionScore .890 .242 13.516 1 .000 2.435

Age .106 .064 2.753 1 .097 1.111

Constant -21.627 4.173 26.865 1 .000 .000

a. Variable(s) entered on step 1: GenderMale1, IncomeRs, PreviousPurchaseFrequency, DiscountOffersReceived,


CustomerSatisfactionScore, Age.

Step number: 1

Observed Groups and Predicted Probabilities

160 + +

I I

I I

F I YI

R 120 + Y+

E I YI

Q I YI
U I YI

E 80 + Y+

N I YI

C I YI

Y I YI

40 + Y+

I YI

IYN YI

INN YYYYI

Predicted ---------+---------+---------+---------+---------+---------+---------+---------+---------+----------

Prob: 0 .1 .2 .3 .4 .5 .6 .7 .8 .9 1

Group: NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Predicted Probability is of Membership for Yes

The Cut Value is .50

Symbols: N - No

Y - Yes

Each Symbol Represents 10 Cases.

DISCRIMINANT

/GROUPS=PurchaseDecision1Buy(0 1)

/VARIABLES=GenderMale1 Age IncomeRs PreviousPurchaseFrequency DiscountOffersReceived CustomerSatisfactionScore

/ANALYSIS ALL

/SAVE=CLASS

/PRIORS EQUAL

/STATISTICS=MEAN STDDEV TABLE

/CLASSIFY=NONMISSING POOLED.
Discriminant

Notes

Output Created 08-APR-2025 10:25:11

Comments

C:\Users\Shruti\Downloads\
Data
purchase.sav

Active Dataset DataSet1

Input Filter <none>

Weight <none>

Split File <none>

N of Rows in Working Data File 237

User-defined missing values are


Definition of Missing treated as missing in the
analysis phase.

In the analysis phase, cases


with no user- or system-missing
Missing Value Handling values for any predictor
variable are used. Cases with
Cases Used
user-, system-missing, or out-
of-range values for the
grouping variable are always
excluded.
DISCRIMINANT

/GROUPS=PurchaseDecision1B
uy(0 1)

/VARIABLES=GenderMale1
Age IncomeRs
PreviousPurchaseFrequency
DiscountOffersReceived
Syntax CustomerSatisfactionScore

/ANALYSIS ALL

/SAVE=CLASS

/PRIORS EQUAL

/STATISTICS=MEAN STDDEV
TABLE

/CLASSIFY=NONMISSING
POOLED.

Processor Time 00:00:00.00


Resources
Elapsed Time 00:00:00.02

Variables Created or Modified Dis_1 Predicted Group for Analysis 1

Number of unweighted cases written to the working file after


237
classification

[DataSet1] C:\Users\Shruti\Downloads\purchase.sav

Analysis Case Processing Summary

Unweighted Cases N Percent

Valid 237 100.0

Excluded Missing or out-of-range group 0 .0


codes
At least one missing
0 .0
discriminating variable

Both missing or out-of-range


group codes and at least one 0 .0
missing discriminating variable

Total 0 .0

Total 237 100.0

Group Statistics

Purchase Decision (1=Buy) Mean Std. Deviation Valid N (listwise)

Unweighted Weighted

Gender (Male=1) .6000 .49403 60 60.000

Age 26.0167 3.35722 60 60.000

Income (Rs) 29460.3000 6915.69585 60 60.000


No
Previous Purchase Frequency 1.0000 1.05766 60 60.000

Discount Offers Received 1.8000 1.48210 60 60.000

Customer Satisfaction Score 5.2250 1.71401 60 60.000

Gender (Male=1) .5367 .50006 177 177.000

Age 38.1582 12.41370 177 177.000

Income (Rs) 45155.0395 7873.83267 177 177.000


Yes
Previous Purchase Frequency 2.7119 1.67587 177 177.000

Discount Offers Received 3.6610 1.84893 177 177.000

Customer Satisfaction Score 6.9068 1.94946 177 177.000

Total Gender (Male=1) .5527 .49826 237 237.000

Age 35.0844 12.07187 237 237.000

Income (Rs) 41181.6878 10245.12000 237 237.000

Previous Purchase Frequency 2.2785 1.71190 237 237.000


Discount Offers Received 3.1899 1.93808 237 237.000

Customer Satisfaction Score 6.4810 2.02625 237 237.000

Analysis 1

Summary of Canonical Discriminant Functions

Eigenvalues

Function Eigenvalue % of Variance Cumulative % Canonical


Correlation

1 1.768a 100.0 100.0 .799

a. First 1 canonical discriminant functions were used in the analysis.

Wilks' Lambda

Test of Function(s) Wilks' Lambda Chi-square df Sig.

1 .361 236.188 6 .000

Standardized Canonical Discriminant


Function Coefficients
Function

Gender (Male=1) -.053

Age -.075

Income (Rs) .929

Previous Purchase Frequency .523

Discount Offers Received .339

Customer Satisfaction Score .313

Structure Matrix

Function

Income (Rs) .674

Age .367

Previous Purchase Frequency .364

Discount Offers Received .346

Customer Satisfaction Score .292

Gender (Male=1) -.042

Pooled within-groups correlations between


discriminating variables and standardized
canonical discriminant functions

Variables ordered by absolute size of


correlation within function.

Functions at Group Centroids

Purchase Decision (1=Buy) Function


1

No -2.274

Yes .771

Unstandardized canonical discriminant


functions evaluated at group means

Classification Statistics

Classification Processing Summary

Processed 237

Missing or out-of-range group


0
codes
Excluded
At least one missing
0
discriminating variable

Used in Output 237

Prior Probabilities for Groups

Purchase Decision (1=Buy) Prior Cases Used in Analysis

Unweighted Weighted

No .500 60 60.000

Yes .500 177 177.000

Total 1.000 237 237.000


Classification Resultsa

Purchase Decision (1=Buy) Predicted Group Membership Total

No Yes

No 55 5 60
Count
Yes 12 165 177
Original
No 91.7 8.3 100.0
%
Yes 6.8 93.2 100.0

a. 92.8% of original grouped cases correctly classified.

You might also like