Professional Documents
Culture Documents
Chi Square
Chi Square
Solved Example:
Is there any association between appearance of eye colour and hair colour can be interpreted in
given set of data?
Given Data:
For Eye colour:1=black, 2=brown, 3=blue
Black=10times, Brown=10, blue=13
For Hair colour: 1=black, 2=brown, 3=blonde
Black=12, brown=9, blonde=12
H0= There is no association between eye colour and hair colour.
H1= There is significant association between eye colour and hair colour.
Key for SPSS: descriptive-crosstabs-add either eye colour or hair colour in row or column (no
difference in calculations)-statistics-check chi-square-continue-cells-counts observed expected-
ok.
RESULTS FROM SPSS:
haircolour Total
Count 5 3 2 10
black
Expected Count 3.6 2.7 3.6 10.0
Count 1 3 6 10
eyecolour brown
Expected Count 3.6 2.7 3.6 10.0
Chi-Square Tests
Count 6 3 4 13
blue
Value
Expected Count df4.7 Asymp.
3.5 Sig. (2- 4.7 13.0
Count 12 sided)
9 12 33
Total a
Pearson Chi-Square 5.288
Expected Count 12.0 4 9.0 .25912.0 33.0
Likelihood Ratio 5.886 4 .208
Linear-by-Linear Association .059 1 .809
N of Valid Cases 33
blooggroups
A 5 3.4 1.6
B 8 11.9 -3.9
AB 2 .5 1.5
O 2 1.2 .8
Total 17
Test Statistics
blooggroups
Chi-Square 6.936a
df 3
Asymp. Sig. .074
As value of p after yart correction is 3.94 which is greater than 0.05, so we will accept the null
hypothesis that all blood groups are equally distributed in the population i-e x1=x2=x3=x4=1/4
CASE-II:
Let’s say we have blood group data in following form.
Blood groups: Values values/100 observed N
A 20% 0.2 5
B 70% 0.7 8
AB 3% 0.03 2
O 7% 0.07 2
ON SPSS:
Key: analyse- nonparametric-chi-square-add blood to test variable-expected values-check values-
in this box add %ratio values given to each blood group according to order of their labelling.
blood.groups
A 5 3.4 1.6
B 8 11.9 -3.9
AB 2 .5 1.5
O 2 1.2 .8
Total 17
Test Statistics
blood.groups
Chi-Square 6.936a
df 3
Asymp. Sig. .074