This test compares measurements relating to the frequency of individuals in defined categories e.g. the numbers of white and purple flowers in a population of pea plants.
Chi-squared is used to test if the observed frequency fits the frequency you expected or predicted.
O = observed
E = expected
H0 = there is no statistically significant difference between the observed frequency of maize grains and the expected frequency (the 9:3:3:1 ratio)
HA = there is a significant difference between the observed frequency of maize grains and the expected frequency
If the value for χ2 exceeds the critical value (P = 0.05), then you can reject the null hypothesis