Chi Square Test
Chi Square Test
Chi Square Test
x2= ∑(O-E) 2 / E
x2 Test of Independence
χ 2 test of Independence
• In the example we want to determine if there is a relationship between
professional credentials and geographic location. The null
and alternative hypotheses are:
• H O : there is no association between credentials and geographic
location
• H A : there is an association between credential and geographic
location
• alpha =0.05
χ 2 Test of Independence
to calculate χ 2
Credential
Health tech Health Asst
Location O E (O-E)2/E O E (O-E)2/E
Urban/sub 30 45.5 5.28 76 60.5 3.97
Rural 55 39.5 6.08 37 52.5 4.48
Total 85 85 113 113
χ 2 Test of Independence
• To calculate:χ 2=∑[(O-E)]2/E
• =5.28+60.8+3.97+4.58
• = 19.91
• χ 2=19.91
• χ 2 crit = 3.841, df = 1, p = .05
• Since the calculated value, 19.91, is > the critical value,
• 3.841, we reject the null hypothesis and conclude that there is a
relationship between professional credential and geographic location.
χ 2 Test of Independence
• Degrees of Freedom for Chi Square Test:
• df = (No of Rows – 1) x (No of Columns -1)
• So for a 2x2 it would be : 1
Conditions of Chi Square
• Should be actual number – Chi Square does not work on percentages
and proportions
• Expected Frequency for any given cell should not be less than 1
• 20% of total cells should not have less than 5 each expected frequency
• Yates correction factor
χ 2 Goodness of Fit Test