Expected counts in two-way tables
pTwo-way tables sort the data according to two categorical variables. We want to test the hypothesis that there is no relationship between these two categorical variables (H0).
pTo test this hypothesis, we compare actual counts from the sample data with expected counts given the null hypothesis of no relationship.
p
pThe expected count in any cell of a two-way table when H0 is true is: