? 2 - Test
? 2 - Test
Nandini Rai
KJSCE
So far we have dealt with the problems of
estimation of a parameter or testing an
hypothesis about a parameter.
Such tests which deals with the parameter of
the population are called parametric tests.
On the other hand tests which do not deal
with the parameter are called non
parametric tests.
One such test, which we are going to study
is 𝜒 2 - test (pronounced as ‘ki’ square test –
‘ki’ as in kite)
Prof. Nandini Rai χ^2- test Wednesday, March 20, 2024 2
Suppose we are given a die and we want to
know whether it is biased or unbiased.
OR suppose in a cholera epidemic we
inoculate a group and we want to know
whether inoculation is effective in
preventing the attack of cholera.
In such situations Chi square test is used to
test the hypothesis
e.g the die is not biased or the inoculation is
not effective.
proportions 𝑝1 , 𝑝2 , 𝑝3 , 𝑝4 in different
populations are equal
i.e. 𝜒 2 test can also be used to test the null
hypothesis that 𝑝1 = 𝑝2 = 𝑝3 = 𝑝4 .
No.
1 2 3 4 5 6 Total
obtained
Frequency 15 20 25 15 29 28 132
Digit 0 1 2 3 4 5 6 7 8 9 Tot
al
Freque 28 29 33 31 26 35 32 30 31 25 300
ncy
Colour of
Not Dark 110 752 862
son’s eyes
Total 128 872 1000
𝑂 𝐸 𝑂−𝐸 2 𝑂−𝐸 2 𝐸
48 18
80 110
90 120
782 752
Total
value of 𝜒 2 = 3.84,
the hypothesis is rejected
∴ There is an association between darkness
of eye colour of fathers and sons
𝑂−𝐸 −0.5 2
𝑂 𝐸 𝑂 − 𝐸 − 0.5
𝐸
10×12
2 =5
24
10 12 − 5 = 7
8 10 − 5 = 5
4 12 − 5 = 7
20.2
No. of pages 209.31 92.1 2.97 0.36
6
No of 2 2
𝑂 𝐸 𝑂−𝐸 𝑂−𝐸 𝐸
mistakes
0 211 209.31 2.87 0.014
1 90 92.10 4.41 0.048
2 19 20.26
3 5 2.97 0.17 0.007
4 0 0.36
0.069
Total
Prof. Nandini Rai χ^2- test Wednesday, March 20, 2024 57
𝑂−𝐸 2
∴ 𝜒2 = = 0.069
𝐸
Level of significance: 𝛼 = 0.05
Degrees of freedom 5 − 4 = 1
(The number of degrees of freedom is 1 for
each class. There are 5 classes originally.
Hence, the degrees of freedom originally is
5. But we reduced the classes by two, thus
reduced the degree of freedom by 2. Further,
while calculating the parameter 𝑚, we used
two sums 𝑓𝑖 and 𝑓𝑖 𝑥𝑖 , thus, reducing the
degree of freedom again by 2)
𝜒 2 = 5.991,
the hypothesis is accepted
∴ Proportion of defective items is same in all
shipments.