Chi-Square Test: Property of STI
Chi-Square Test: Property of STI
Chi-Square Test
a. Goodness-of-Fit
b. Independence
Chi-Square Goodness-of-Fit
Chi-Square Goodness-of-Fit
k k
O E
i i n
Notations: i 1 i 1
Assumptions:
1. There are k mutually exclusive classes;
2. Each observation falls in one and only one
class, and
3. No more than 20% of the classes have
expected frequency is less than 1.
Chi-Square Goodness-of-Fit
Test statistic:
2c
k
Oi Ei 2
i 1 Ei
Decision Rule:
Reject Ho if c
2 2
, k 1, otherwise,
fail to reject Ho.
Chi-Square Goodness-of-Fit
Example:
Rating 1 2 3 4 5
Frequency 30 75 20 45 30
Chi-Square Goodness-of-Fit
Solution:
Hypotheses
Ho: The proportions of viewers are equal
in each rating scale.
Ha: The proportions of viewers are not
equal in each rating scale.
2 test
Test Statistic
k
2c
Oi Ei 2
i 1 Ei
Level of Significance
1%
Chi-Square Goodness-of-Fit
Decision Rule
Computation
n = 200
1
P1 P2 P5
5
1
Ei 200 Pi 200 40
5
Oi 30 75 20 45 30
Ei 40 40 40 40 40
Chi-Square Goodness-of-Fit
Computation:
2
30 40 75 40 20 40 45 40 30 40
2
2
2
2
2
c
40 40 40 40 40
c2 46.25
Decision
Since 46.25 is greater than the critical
value ( 02.01, 4 13.277 ), reject Ho.
Conclusion
The proportions of viewers are not equal
in each rating scale at 1% level of
significance.
Test of Independence
Test of Independence
where
Oij = observed frequency in the ith row
and the jth column
Ri = total observed frequency for the ith
row;
Cj = total observed frequency fot the jth
column; and
n = total sample size
Test of Independence
Hypotheses
Ri * C j i = 1, 2, 3,…,r and
Eij
n j = 1, 2, …,c.
where
Test of Independence
Test statistic
r
c2
c O
ij Eij
2
i 1 j 1 Eij
Decision Rule
Reject Ho at the α level of significance if
2c 2,r 1c 1 , otherwise, fail to
reject Ho.
Test of Independence
Example:
Test of Independence
Solution:
Hypotheses
Test Statistic
2 test
r
c2
c O
ij Eij
2
i 1 j 1 Eij
Level of Significance
1%
Test of Independence
Decision Rule
Computation
The observed and expected frequencies
are presented as follows:
Test of Independence
Computations:
100 * 65 100 * 65
E11 32.5 E21 32.5
200 200
100 * 75 100 * 75
E12 37.5 E22 37.5
200 200
100 * 60 100 * 60
E13 30.0 E23 30.0
200 200
2
40 32.5 2
45 37.5 2
45 30
2
c
32.5 37.5 30
c2 21.46
Test of Independence
Decision
Ho.
Conclusion