In the standard applications of the test, the observations are classified into mutually exclusive classes, and there is some theory, or say null hypothesis, which gives the probability that any observation falls into the corresponding class. The purpose of the test is to evaluate how likely the observations that are made would be, assuming the null hypothesis is true.
for what purpose can the chi-square test be used
to evaluate how likely the observations that are made would be, assuming the null hypothesis is true