Evaluating numerical algorithm
The Chi-Square (χ²) Test for Goodness of Fit is a non-parametric hypothesis test used to assess whether an observed frequency distribution differs significantly from an expected theoretical frequency distribution across categorical groups.
Chi-Square Test Statistic Formula:
Where:
Observed Counts (k = 4)
Test at
Therefore, because , we fail to reject the null hypothesis and conclude that there is no statistically significant difference between observed and expected frequencies.