Question
State the requirements to perform a chi-square goodness-of-fit test.
Requirements
To use the usual chi-square goodness-of-fit procedure, check these requirements:
- The data come from a random sample, and observations are independent. Each sampled unit contributes one outcome to the analysis.
- The variable is categorical, with mutually exclusive categories. Record an observed count for every category so each observation is counted once.
- A null distribution is specified. Its category probabilities determine the expected counts, , and those probabilities cover all categories.
- Every expected count is at least 5 for the introductory chi-square approximation used in the cited materials. This condition applies to expected counts, not observed counts.
If any expected count is below 5, this version's requirements are not met. Do not proceed as though the approximation were valid; follow the course or software guidance for combining defensible categories or using an alternative method.
Evidence boundary
This answer uses the introductory chi-square goodness-of-fit conditions stated in the cited Pearson and Penn State materials. It does not claim that the same checklist applies to every test called a ‘goodness-of-fit test,’ and it does not replace course-specific guidance for small expected counts or fitted parameters.
Sources
Các nguồn này hỗ trợ những khái niệm và phương pháp được giải thích ở trên.