Chi-Square Test of Independence
Chi-Square Test of Independence
Objectives
➢Reviewing the Concept of Independence
Not 5 10 15 30
Sure
40 30 30 100
Total
Expected Frequencies
➢ The test variable is also known as the dependent variable because its
value is believed to be dependent on the value of the group variable.
Step 1. Assumptions for the Chi-square Test
Brush and
Brush Miswak Miswak Total
Yes 20 10 10 40
The Knowledge of the
Gum Disease No 15 10 5 30
Not Sure 5 10 15 30
40 30 30 100
Total
First step calculate expected frequencies
The expected frequency for the first cell would be E11 = (40*40)/100=16.
similarly others expected will be calculated. The complete table is given
below.
Brush and
Brush Miswak Miswak Total
Yes 20 16 10 12 10 12 40
The Knowledge of the
Gum Disease No 15 12 10 9 5 9 30
Not Sure 5 12 10 9 15 9 30
40 30 30 100
Total
Knowledge of gum disease * Hygenic instrument used Crosstabulation
Brush and
Brush Miswak miswak Total
Knowledge of gum Yes Count 20 10 10 40
disease
Expected Count 16.0 12.0 12.0 40.0
No Count 15 10 5 30
Expected Count 12.0 9.0 9.0 30.0
Not sure Count 5 10 15 30
Expected Count 12.0 9.0 9.0 30.0
Total Count 40 30 30 100
Expected Count 40.0 30.0 30.0 100.0
Chi-Square Tests
(O ij − Eij ) 2
Step # 3: Test statistic: 2 = i =1 j =1
Eij