Answer
To compute the expected values, there are two rules to follow:
a. If all the expected frequencies are equal, the expected frequency E can be calculated by using E= n/k, where n = total number of observations and k= number of categories.
b.If all the expected frequencies are not equal, then the expected frequency E can be calculated by E=np, where n=total number of observations, p=probability for that category.