Professional Documents
Culture Documents
Chi Test
Chi Test
Unit - IV
Dr. E. Suresh,
Assistant Professor, Department of Mathematics,
SRM Institute of Science and Technology,
Kattankulathur - 603203.
Conclusion
Note
Digits 0 1 2 3 4 5 6
Frequency 1026 1107 997 966 1075 933 1107
Digits 7 8 9
Frequency 972 964 853
(Oi − Ei )2
Digits Oi Ei
Ei
0 1026 1000 0.676
1 1107 1000 11.449
2 997 1000 0.009
3 966 1000 1.156
4 1075 1000 5.625
5 933 1000 4.489
6 1107 1000 11.449
7 972 1000 0.784
8 964 1000 1.296
9 853 1000 21.609
Total 10000 10000 58.542
n
2
X (Oi − Ei )2
Test statistic χ = = 58.542
Ei
i=1
Problem No. 2
The following table gives the number of accidents that occurs
during the various days of the week. Find whether the accidents
are uniformly distributed over the week.
Solution:
Step(1): Null hypothesis H0 : The accidents are uniformly dist over
the week
Step(2): Alternative hypothesis H1 : The accidents are not
uniformly dist over the week
Step(3): Choose α = 5% level of significance.
Dr. E.Suresh 18MAB204T - Probability and Queueing Theory
Problem No. 2
Step(4): Calculations:
Under the null hypothesis, the expected frequencies for each day =
84
= 12.
7
The values of χ2 is calculated using the following table.
(Oi − Ei )2
Days Obser Freq Oi Exp Freq Ei
Ei
Sun 14 12 0.333
Mon 16 12 1.333
Tue 8 12 1.333
Wed 12 12 0
Thu 11 12 0.083
Fri 9 12 0.75
Sat 14 12 0.333
Total 84 84 4.167
n
2
X (Oi − Ei )2
Test statistic χ = = 4.167.
Ei
i=1
Problem No. 3
The theory predict the proportion of beans in the four groups A, B,
C and D should be 9 : 3 : 3 : 1. In an experiment among 1600
beans, the numbers in the four groups were 882, 313, 287 and 118.
Does the experimental results support the theory?.
Solution:
Step(1):
Null hypothesis H0 : The experimental results is support the theory.
Step(2):
Alternative hypothesis H1 : The experimental results is not support
the theory.
Step(3): Choose α = 5% level of significance.
3
E (B) = × 1600 = 300,
16
3
E (C ) = × 1600 = 300,
16
1
E (D) = × 1600 = 100.
16
2
(Oi − Ei )
Type Observed Frequency Oi Expected Frequency Ei
Ei
A 882 900 0.36
B 313 300 0.5633
C 287 300 0.5633
D 118 100 3.24
Total 1600 1600 4.7266
n
2
X (Oi − Ei )2
Test statistic χ = = 4.72664.
Ei
i=1
Problem No. 4
4 coins were tossed 160 times and the following results were
obtained
No. of heads : 0 1 2 3 4
Observed frequencies : 17 52 54 31 6
Under the assumption that the coins are balanced and test the
goodness of fit. (or) fit a binomial distribution and test the
goodness of fit.
Solution:
Step(1): Null hypothesis H0 : The coins are balanced
Step(2): Alternative hypothesis H1 : The coins are not balanced
Step(3): Choose α = 5% level of significance.
x 4−x 4
1 1 4 1
E = 160 × 4Cx = 160 × cx , x = 0, 1, 2, 3, 4.
2 2 2
4
1
When x = 0, E0 = Np (x = 0) = 160×4C0 = 160×0.0625 = 10
2
4
1
When x = 1, E1 = Np (x = 1) = 160×4C1 = 160×0.25 = 40
2
4
1
When x = 2, E2 = Np (x = 2) = 160×4C2 = 160×0.375 = 60
2
4
1
When x = 3, E3 = Np (x = 3) = 160×4C3 = 160×0.25 = 40
2
4
1
When x = 4, E4 = Np (x = 4) = 160×4C4 = 160×0.0625 = 10
2
n
2
X (Oi − Ei )2
Test statistic χ = = 12.725.
Ei
i=1
Note:
The expected frequency for each cell is
RT × CT
E=
N
where
RT is row total
CT is column total
N is total of frequency
Dr. E.Suresh 18MAB204T - Probability and Queueing Theory
Problem No. 1
Problem No. 1
Two researchers adopted different sampling techniques while
investigating same group of students to find the number of
students falling in different intelligence levels. The results as
follows : No. of students
Would you say that the sampling techniques adopted by the two
researchers are significantly different?
n
X (Oi − Ei )2
Test statistic χ2 = = 2.0971.
Ei
i=1
Levels of stress
Cummuting time High Moderate Low Total
Under 15 min 9 5 18 32
15 − 45 min 17 8 28 53
over 45 min 18 6 7 31
Total 44 19 53 116
CT × RT 44 × 32
E11 = = = 12.138
N 116
CT × RT 19 × 32
E12 = = = 5.241
N 116
CT × RT 53 × 32
E13 = = = 14.621,
N 116
CT × RT 44 × 53
E21 = = = 20.103
N 116
CT × RT 19 × 53
E22 = = = 8.681
N 116
CT × RT 53 × 53
E23 = = = 24.216
N 116
CT × RT 44 × 31
E31 = = = 11.756
N 116
CT × RT 19 × 31
E32 = = = 5.078
N 116
CT × RT 53 × 31
E33 = = = 14.164
N 116
n
X (Oi − Ei )2
Test statistic χ2 = = 9.828.
Ei
i=1
Problem No. 3
In an investigation in to health and nutrition of two groups of
children of different social status, the following results are got.
Social of status
Health Poor Rich Total
Below normal 130 20 150
Above 24 96 120
Normal 102 108 210
Total 256 224 480
Discuss the relation between the health and their social status use
chi-square test.
CT × RT 100 × 150
E11 = = = 80
N 480
CT × RT 224 × 150
E12 = = = 70
N 480
CT × RT 256 × 120
E21 = = = 64
N 480
CT × RT 224 × 120
E22 = = = 56
N 480
CT × RT 256 × 210
E31 = = = 112
N 480
CT × RT 224 × 210
E32 = = = 98
N 480
n
X (Oi − Ei )2
Test statistic χ2 = = 122.44.
Ei
i=1
n
X (Oi − Ei )2
Test statistic χ2 = = 5.0122.
Ei
i=1
n
X (Oi − Ei )2
Test statistic χ2 = = 12.09.
Ei
i=1