Calculate the appropriate test statistic and p-value for a chisquare test for homogeneity or independence.
- The appropriate test statistic for a chi-square test for homogeneity or independence is the chi-square statistic 2 2 Observed Count Expec t Expected Cou ted Count nχ − , where the sum is taken over all cells of the two-way table. The chi-square statistics have a chi-square distribution with degrees of freedom equal to number of rows −⋅1 number of columns −1 when the null hypothesis is true.
- The p-value for a chi-square test for independence or homogeneity is found from a chi-square distribution using a table or technology.