week 4. Chi-Square Flashcards
Chi-Square test
Best used for frequency data, as opposed to data scores.Use chi-square Goodness of Fit Test to eg examine whether sample proportion of male and female lawyers different to population. A one way classification is the simplest form of chi square test, and has only 1 variable.
X2=Chi squared=Σ(O-E)2/E
O=observed frequency and E =expected frequency
Decision for Chi-squared
If X2 obtained>/= X2critical then we reject the null hypothesis.
Degrees of freedom =number of categories minus 1.
Usually set alpha as 0.05.
Table then tells us X2critical
2-way classification, use Chi-square Test for Independence
for more complex situations, eg. to see if two variables are independent. eg is lemonade preference dependent upon gender?
Need to construct a contingency table which shows the distribution of one variable, at all levels of the other. For the contingency table, need to calculate all expected frequencies.
Eij=RiCj/N
R=row total, C=Column total, N=total number of observations.
Once have all expected frequencies (E),
then do
Chi2=Σ(O-E)2/E
Degrees of freedom=(R-1)(C-1)
If Chi2obtained>/=Chi2critical, then we reject the null hypothesis.
effect size
A further measure to quantify how significant, a significant difference (once found), is.
d-family
effect sizes which focus on the differences between groups. eg. probability of choosing lemonade B, for male vs female
r-family
effect sizes used to determine the magnitude of a relationship between 2 variables.
Phi
When using a Chi-square 2x2 table, Phi can be used to determine the magnitude of effect.
phi= square root of (Chi2/N)
By convention, phi=0.10=small effect
phi=0.30=medium effect
and phi=0.50 = large effect
Cramer’s V
used for magnitude of effect when have a larger than 2x2 contingency table.
V=square root of [Chi2/(N{k-1})]
where k is the lesser of Number of Rows or Number of Columns.
The magnitude levels of Cramer’s V, are the same as for Phi.