Chi Square Goodness Of Fit Formula. For the goodness of fit test this is one fewer than the number of categories. Calculate the Chi-Square test statistic and the corresponding p-value. The number of categories reduced. In the goodness-of-fit test the degrees of freedom are equal to the number of categories minus 1 or k-1.
Compute the value of Chi-Square goodness of fit test using the following formula. The following formula shows how to calculate O-E 2 E for each row. The observed values are the data values and the expected values are the values. 04 40 16 10 16 2 16 22500. The table value of χ2 for n 1 degrees of freedom and at α level of significance is χ2t χ2n k 1 α χ24 005 94877. In Chi-Square goodness of fit test the degree of freedom depends on the distribution of the sample.
Define the null and alternative hypotheses.
Below is the formula for Chi-Square goodness-of-fit test.