Chi-square goodness-of-fit test
Do observed counts match the counts you expected, such as defects spread evenly across shifts?
The chi-square goodness-of-fit test compares observed counts in categories with the counts a hypothesis predicts.
Example
Ninety defects were logged over three shifts: 22, 25 and 43. If defects were spread evenly, each shift would expect 30. The statistic is with 2 degrees of freedom, . Third shift is worth a closer look, but check first whether it simply runs more parts.
Expected counts
The chi-square approximation needs expected counts of about 5 or more in each category. Combine small categories, or use an exact test.
Other uses
- Whether defect types follow last year's proportions.
- Whether counts fit a Poisson model.
- With continuous data grouped into bins, a rough check of a distribution, though Anderson-Darling is better for that.
Stat > Goodness of Fit for counts in categories.
See also
References
- Agresti, A. An Introduction to Categorical Data Analysis. Wiley.