Used when two categorical variables are measured on the same sample. Tests if there is a relationship between the variables.
Suppose a table of r rows and c columns, containing observed data, is provided. Observed values are dentoed by Oij.
H0:There is no association between the two variables.
H1:There is a significant association between the two variables.
ν=(r−1)(c−1)
Eij=Grand total(Row total)×(Column total)
χcalc2=∑Eij(Oij−Eij)2∼χν2
H0 is rejected if χcalc2>χν,α.