You are on page 1of 3

NEW FILE.

DATASET NAME DataSet1 WINDOW=FRONT.


GET DATA /TYPE=XLSX
/FILE='C:\Users\admi\Desktop\1.xlsx'
/SHEET=name 'Sheet1'
/CELLRANGE=full
/READNAMES=on
/ASSUMEDSTRWIDTH=32767.
EXECUTE.
DATASET NAME DataSet2 WINDOW=FRONT.
NEW FILE.
DATASET NAME DataSet3 WINDOW=FRONT.
GET DATA /TYPE=XLSX
/FILE='C:\Users\admi\Desktop\1.xlsx'
/SHEET=name 'Sheet1'
/CELLRANGE=full
/READNAMES=on
/ASSUMEDSTRWIDTH=32767.
EXECUTE.
DATASET NAME DataSet4 WINDOW=FRONT.
CROSSTABS
/TABLES=BrandPref BY Gender
/FORMAT=AVALUE TABLES
/STATISTICS=CHISQ
/CELLS=COUNT
/COUNT ROUND CELL.
a) Null Hypothesis (H0): There is no significant relationship between the 2
variables78
Alternate hypothesis (H1): There is a significant relationship
between the 2 variables

Since we have to check the relationship between the two nominal


variable, we will apply chi-square test.

Crosstabs

Notes
Output Created

04-DEC-2015 09:16:19

Comments

Input

Active Dataset

DataSet4

Filter

<none>

Weight

<none>

Split File

<none>

N of Rows in Working Data


File

12

User-defined missing values

Definition of Missing

are treated as missing.


Statistics for each table are

Missing Value Handling

based on all the cases with


Cases Used

valid data in the specified


range(s) for all variables in
each table.
CROSSTABS
/TABLES=BrandPref BY
Gender
/FORMAT=AVALUE

Syntax

TABLES
/STATISTICS=CHISQ
/CELLS=COUNT
/COUNT ROUND CELL.

Resources

Processor Time

00:00:00.00

Elapsed Time

00:00:00.03

Dimensions Requested

Cells Available

174762

[DataSet4]

Case Processing Summary


Cases
Valid
N
Brand Pref * Gender

Missing
Percent

12

100.0%

Percent
0

Brand Pref * Gender Crosstabulation


Count
Gender
F
Brand Pref

Total

Total
M

no

yes

0.0%

Percent
12

100.0%

Total

12

Chi-Square Tests
Value

Likelihood Ratio

Exact Sig. (2-

Exact Sig. (1-

sided)

sided)

sided)

1.000

.000

1.000

.000

1.000

Fisher's Exact Test


N of Valid Cases

Asymp. Sig. (2-

.000

Pearson Chi-Square
Continuity Correction

df

1.000

.716

12

a. 4 cells (100.0%) have expected count less than 5. The minimum expected count is 3.00.
b. Computed only for a 2x2 table

Analysis:
1) As we have to show significant relationship between Brand Prefrence and Gender.As we
see the relationship between two nomial variable,we will apply Chi-Square.
2) The p-value is more than .05 ,so there is significant difference between two.
We accept the null hypothesis.There is no relationship between Brand Prefrence and
Gender.
Since,the calculated value for significance level will be same,again p-value will be greater than
0.01.So,we accept the hypothesis.

You might also like