Professional Documents
Culture Documents
Class 20, Chi-Square Test of Independence (Introduction)
Class 20, Chi-Square Test of Independence (Introduction)
Class 20, Chi-Square Test of Independence (Introduction)
Examples:
Nominal level of measurement
Variables Categories
Variable Categories
***
2
Problem:
Table 1 is a contingency table built to test a relationship
between competency in official languages and employment
status.
Legend:
(fo) observed frequencies– data found in the
sample
(fe) expected frequencies– the frequencies that we
would expect, if the pattern were due to chance.
(We need to calculate those...) (like the 50/50 heads and tails)
fe = (RT)(CT)/n
Expected Frequency =(Row Total)•(Column Total)/n
fe = (RT)(CT)/n
Upper-left cell: fe=(100)(108)/190 = 56.84
Upper-right cell: fe = (100)(82)/190 = 43.16
Lower-left cell: fe =(90)(108)/190 = 51.16
Lower-right cell: fe =(90)(82)/190 = 38.84
In other words:
7
x² =(65-56.84)²/56.84 + (35-43.16)²/43.16 +
(43-51.16)²/51.16 + (47-38.84)²/38.84
Order of operations:
df = (r – 1) • (c – 1) r = number of rows
c = number of columns
Given: r = 2, c = 2,
df = (2 –1) • (2 –1)
df = 1
3. Given the df= 1 and α=0.01, the X²cv =6.
5.727 ‹ 6.635
X²obt ‹ X²cv
Final qualification:
We keep in mind that there is still a probability that we
failed to reject the Null hypothesis when in fact the Null
Hypothesis is false. In other words, there is a probability
that we may have committed the Type II error
(Reminder:
The Null hypothesis is false when the sample results are not
due to a sampling error – not due to chance. In that case, it
should be rejected.)
***
Looking for moderate evidence:
Testing at α=0.05
Testing at α=0.05
Step 4-1:
We use the Table of Critical Values for Chi-Square (X²),
looking for the critical value at α=0.05.
Degrees LEVEL OF SIGNIFICANCE
of Freedom (Probability of exceeding the critical value)
df = (r – 1) • (c – 1) r = number of rows;
c = number of columns
Given: r = 2, c = 2,
df = (2 –1) • (2 –1)
df = 1
14
***
x² =x²
obt cv : The calculated test statistic meets the
critical value.
Conclusion: We reject Ho and accept Ha.
Qualifications: probability of Type I
Error.
x² >x²
obt cv : The calculated test statistic exceeds the
critical value.
Conclusion: We reject Ho and accepts
Ha. Qualifications: probability of Type I
Error.
17
x² <x²
obt cv : The calculated test statistic does not
meet the critical value. (have not significantly departed
from chance enough)