# The Chi-Square Goodness of fit test

The Chi-Square goodness of fit test is a non-parametric test for determining how substantially the observed value of phenomenon differs from the predicted value.  The word goodness of fit is used to equate the observed sample distribution with the predicted probability distribution in the Chi-Square goodness of fit test. The Chi-square goodness of fit test is used to decide how well theoretica fits the data.

Procedure for Chi-Square Goodness of Fit Test:

Set up the hypothesis for Chi-Square goodness of fit test:

1. A. Null hypothesis: In Chi-square goodness of fit test, the null hypothesis assumes that there is no significant difference between the observed and the expected value.
2. Alternative hypothesis: In Chi-Square goodness of fit test, the alternative hypothesis assumes that there is a significant difference between the observed and the expected value.

Hypothesis testing:

The Chi-Square goodness of fit test uses the same hypothesis testing as other tests such as the t-test and ANOVA. The Chi-Square goodness of fit test’s estimated value is compared to the table value. We will reject the null hypothesis and assume that there is a substantial difference between tha observer and the data if the measured value of the Chi-Square goodness of fir test is greater than the table value

Compute the value of Chi-Square goodness of fit test using the following formula:

Degree of freedom: In Chi-Square goodness of fit test, the degree of freedom depends on the distribution of the sample. The following table shows the distribution and an associated degree of freedom: