The chi-square is a non-parametric test which is used for comparing the categorical variables. The chi-square goodness of fit test helps in determining how the observed distribution fits the expected distribution. It is used for comparing the observed data with the expected data. In other words, it determines whether the data of the sample is reliable with the population distribution or not.
-The sample drawn must be randomly selected.
-The variable considered for the study must be a categorical variable.
-Different levels of categorical variable must be mutually exclusive.
-Each of the observations from the sample must be independent of each other.
-Each level of the categorical variable must have at least 5 expected frequencies.