Under this null hypothesis, the expected frequency for each class equals the total sample size divided by the number of classes, Under the null hypothesis (of equal proportions, specified frequencies, ...
The chi-square value is calculated using the following formula: Using this formula, the difference between the observed and expected frequencies is calculated for each experimental outcome category.