Beruflich Dokumente
Kultur Dokumente
Dr. T. T. Kachwala
1
Using the Chi-Square Test
χ statistic
2
fo - fe
2
fe
2 statistics
• measures difference between fo and fe
• is always positive
• if fe is small, it is over estimated (limitation of 2 statistics)
2
Chi-square as a Test of Independence
Objective
If we classify a population into two attributes with
several classes, we can use Chi-square test to determine
whether or not the two attributes are independent of
each other.
3
Chi-square as a test of Independence
Contingency Table:
4
Chi-square as a test of Independence
RT CT
fe
N
5
Degree of Freedom (for Contingency table of size m * n)
0.05
2Critical 7
Summarized procedure for Chi-Square Test of Independence
χ statistic
2
fo - fe
2
fe
8
Summarized procedure for Chi Square as a Test of Independence
2 Critical
Accept H0: the two attributes are independent Reject H0 : the two attributes are independent
Accept H1: One attribute depends on the other
9
Chi-square as a Test of Goodness of Fit
Objective
To assess whether or not there is a significant
difference between observed frequency fo & expected
frequency fe
The term Goodness of Fit signifies how well the
theoretical distribution like Binomial, Poisson or
Normal distribution fits or represents the observed
frequency distribution
10
Chi-square as a Test of Goodness of Fit
H1: Not all fo are equal to fe (Theoretical distribution is not a good fit)
χ statistic
2
fo - fe
2
fe
11
Chi-square as a Test of Goodness of Fit
2 Critical
When the expected frequencies fe are too small, the value of 2 will be
overestimated
χ statistic
2
fo - fe
2
fe
1. To avoid making incorrect inferences from 2 test follow the
general rule that an expected frequency of less than five in one
cell of the contingency table is too small to use.
2. One of the suggested adjustments for small value of fe is
combining frequency of the cells in the table. i.e. if the table
contains more than one cell with an expected frequency of less
than 5, we can combine them in order to get an expected
13
frequency of 5 or more.
Thanks and Good Luck
Dr. T. T. Kachwala
14