12) Chi - Square
12) Chi - Square
Chi- square test is most commonly used non- parametric test. It is applicable only
for qualitative data ( nominal and ordinal scale) such as intelligence, color, heath response of
drug etc.
(𝑂−𝐸)²
the tests statistic is given by; 𝛘²= 𝐸
E= expected frequency= =
( 𝑂−𝐸 −1/2)²
Therefore 𝛘² =
𝐸
Application of 𝛘² test:
3.Test of homogeneity.
Criteria for applying chi- square test
1. Random sample.
2. Qualitative date.
H0: There is not significance difference between observed and expected values.
B=
C=
D=
poor good
Class I II III IV
Observed frequency 8 15 14 17
Solution:
Null hypothesis Ho: The severity of diabetes and incidence of nephropathy are
independent (no association)
Class I II III IV
Observed 8 15 14 17
freq (O)
Expected 13.5 13.5 13.5 13.5
freq (E)
Calculated 𝛘²=
= 3.33
Df = 4-1=3
Conclusion:
Phenotype Round yellow Round green Wrinkled yellow Winkled green Total
HINT;
Hypothesis
Null hypothesis(Ho): the given distribution follows Mendel's law
Alternative hypothesis (H1): the given distribution does not follow Mendel's law.
The expected frequency is calculated as
9𝑥 + 3𝑥 + 1𝑥 = 560
16𝑥 = 560
𝑥 = 35
Then the expected frequencies are 9𝑥 = 315 𝑎𝑛𝑑 𝑥 = 35
2)Test of association ( test of independence of attributes)
OR
OR
𝛘 ²=
𝛘²=
Degree of freedom:
df= (r-1)(c-1)
where r= row and c= column
Alternative formula
𝛘 ²=
𝑁
𝑁( 𝑎𝑑−𝑏𝑐 − 2 )²
𝛘²=
(𝑎+𝑏)(𝑐+𝑑)(𝑎+𝑐)(𝑏+𝑑)
Degree of freedom:
df= (r-1)(c-1)
where r= row and c= column
Q. A random has following observation.
Calculated 𝛘²=
= 172.7
Smoking Habit
Yes No Total
A 90 140 230
Districts
B 80 190 270
Total 170 330 500
Ho: the two districts are homogeneous with respect to smoking habit.
H1: the two districts are not homogeneous with respect to smoking habit.
Miscellaneous questions
Posterior 31 35 66
Anterior 6 28 34
Total 37 63 100
Q)Apply chi-square test to find the efficacy of vaccine. The following result was obtained:
Group A O = 75 O = 25 100
E= E=
Yes No
Can the researcher conclude that the two communications differ with respect
to variable of interest?
Q. In a sample of 100 persons blood group proportions observed and expected are
given below. Find if the observed distribution fits to hypothetical (expected)
distribution.
A B AB O
(O) 23 35 5 37
(E) 42 9 3 46
Q. Ratio of female to male births in universe is expected to be 1:1 (
proportion of male and female birth is 50: 50 )
In one village it was found that males born were 52 and female 48. it this
differences due to chance.
Hint :
Male female
O 52 48
E 50 50
No of class =2