Chi Square Test

The chi square test is used to see if there is a relationship between two categorical variables (qualitative data). This test uses a contingency table with the number of rows r and the number of columns c (contingency table r x c).

The hypotheses used are:
        H0 : there is no relationship between rows and columns
        H1 : there is a relationship between rows and columns

Decision making basis:
a. Based on the comparison of Chi-Square Test and table
        If Chi-Square count < Chi-Square table, then Ho is not rejected
        If Chi-Square count > Chi-Square table, then Ho is rejected
b. Based on probability
        If probability > then H0 is not rejected
        If probability < then H0 is rejected