You are on page 1of 8

Your license will expire in 4 days.

Your temporary usage period for IBM SPSS Statistics will expire in 4 days.
NEW FILE.
DATASET NAME DataSet1 WINDOW=FRONT.
GET DATA
/TYPE=XLS
/FILE='C:\Users\ALPANA\Desktop\jaihind mr\train.xls'
/SHEET=name 'train'
/CELLRANGE=full
/READNAMES=on
/ASSUMEDSTRWIDTH=32767.
EXECUTE.
DATASET NAME DataSet2 WINDOW=FRONT.
DISCRIMINANT
/GROUPS=response(0 1)
/VARIABLES=Frequencyofshopping Brandedproducts Paymentmode Beverages
Processedfood Time Newproduct
/ANALYSIS ALL
/SAVE=CLASS SCORES
/PRIORS SIZE
/STATISTICS=MEAN STDDEV UNIVF BOXM COEFF TABLE CROSSVALID
/PLOT=COMBINED
/CLASSIFY=NONMISSING POOLED.

Discriminant

Notes
Output Created
Input

15-NOV-2015 22:01:41
Active Dataset

DataSet2

Filter

<none>

Weight

<none>

Split File

<none>

N of Rows in Working Data

61

File
Missing Value Handling

Definition of Missing

User-defined missing values are treated


as missing in the analysis phase.

Cases Used

In the analysis phase, cases with no


user- or system-missing values for any
predictor variable are used. Cases with
user-, system-missing, or out-of-range
values for the grouping variable are
always excluded.

Syntax

DISCRIMINANT
/GROUPS=response(0 1)
/VARIABLES=Frequencyofshopping
Brandedproducts Paymentmode
Beverages Processedfood Time
Newproduct
/ANALYSIS ALL
/SAVE=CLASS SCORES
/PRIORS SIZE
/STATISTICS=MEAN STDDEV UNIVF
BOXM COEFF TABLE CROSSVALID
/PLOT=COMBINED
/CLASSIFY=NONMISSING POOLED.

Resources

Processor Time

00:00:00.13

Elapsed Time

00:00:00.29

Variables Created or

Dis_1

Predicted Group for Analysis 1

Modified

Dis1_1

Discriminant Scores from Function 1 for


Analysis 1

Number of unweighted cases written to the working file after

61

classification

[DataSet2]

Warnings
No COMBINED plot is available for a single discriminant function.

Analysis Case Processing Summary


Unweighted Cases
Valid

Percent
61

100.0

Excluded

Missing or out-of-range group


codes
At least one missing
discriminating variable

.0

.0

.0

.0

61

100.0

Both missing or out-of-range


group codes and at least one
missing discriminating
variable
Total
Total

Group Statistics
Valid N (listwise)
response
0

Total

Mean

Std. Deviation

Unweighted

Weighted

Frequency of shopping

3.33

2.390

40

40.000

Branded products

4.63

3.078

40

40.000

Payment mode

1.58

1.174

40

40.000

Beverages

4.25

1.997

40

40.000

Processed food

3.75

2.609

40

40.000

Time

3.65

1.642

40

40.000

New product

3.68

1.859

40

40.000

Frequency of shopping

1.71

1.953

21

21.000

Branded products

4.10

2.427

21

21.000

Payment mode

2.76

1.136

21

21.000

Beverages

6.76

2.300

21

21.000

Processed food

6.67

2.153

21

21.000

Time

7.48

1.990

21

21.000

New product

6.43

2.580

21

21.000

Frequency of shopping

2.77

2.362

61

61.000

Branded products

4.44

2.861

61

61.000

Payment mode

1.98

1.284

61

61.000

Beverages

5.11

2.409

61

61.000

Processed food

4.75

2.815

61

61.000

Time

4.97

2.536

61

61.000

New product

4.62

2.491

61

61.000

Tests of Equality of Group Means


Wilks' Lambda

df1

df2

Sig.

Frequency of shopping

.893

7.048

59

.010

Branded products

.992

.468

59

.497

Payment mode

.804

14.382

59

.000

Beverages

.750

19.618

59

.000

Processed food

.754

19.297

59

.000

Time

.478

64.524

59

.000

New product

.720

22.993

59

.000

Analysis 1

Box's Test of Equality of Covariance Matrices

Log Determinants
response

Rank

Log Determinant

9.076

8.443

Pooled within-groups

9.426

The ranks and natural logarithms of determinants printed


are those of the group covariance matrices.

Test Results
Box's M
F

33.336
Approx.

1.013

df1

28

df2

5983.523

Sig.

.445

Tests null hypothesis of equal


population covariance matrices.

Summary of Canonical Discriminant Functions

Eigenvalues
Canonical
Function

Eigenvalue

% of Variance

3.435a

Cumulative %

100.0

Correlation

100.0

.880

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

Wilks' Lambda
Test of Function(s)

Wilks' Lambda

.225

Standardized Canonical Discriminant


Function Coefficients
Function
1
Frequency of shopping

-.519

Branded products

.032

Payment mode

.505

Beverages

.516

Processed food

.344

Time

.663

New product

.385

Chi-square
82.671

df

Sig.
7

.000

Structure Matrix
Function
1
Time

.564

New product

.337

Beverages

.311

Processed food

.309

Payment mode

.266

Frequency of shopping

-.186

Branded products

-.048

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
Function
response

-1.321

2.516

Unstandardized canonical
discriminant functions
evaluated at group means

Classification Statistics

Classification Processing Summary


Processed

61

Excluded

Missing or out-of-range group

codes
At least one missing

discriminating variable
Used in Output

61

Prior Probabilities for Groups


Cases Used in Analysis
response

Prior

Unweighted

Weighted

.656

40

40.000

.344

21

21.000

1.000

61

61.000

Total

Classification Function Coefficients


response
0

Frequency of shopping

.223

-.661

Branded products

.816

.859

Payment mode

.809

2.478

1.294

2.235

.675

1.210

1.668

3.107

.697

1.390

-11.658

-33.352

Beverages
Processed food
Time
New product
(Constant)

Fisher's linear discriminant functions

Classification Resultsa,c
Predicted Group Membership
response
Original

Count

Total

40

40

21

21

100.0

.0

100.0

.0

100.0

100.0

Cross-validatedb

Count

40

40

19

21

100.0

.0

100.0

9.5

90.5

100.0

a. 100.0% of original grouped cases correctly classified.


b. Cross validation is done only for those cases in the analysis. In cross validation, each
case is classified by the functions derived from all cases other than that case.
c. 96.7% of cross-validated grouped cases correctly classified.

You might also like