Used to check whether a set of observed categorical data follows a theoretical distribution such as uniform or Poisson.
Hypotheses
: Data follow the specified distribution.
: Data do not follow the specified distribution.
Test Statistic
Here:
- : observed frequency for class
- : expected frequency for class under
- : number of non-empty classes
Degrees of Freedom
Here:
- : number of parameters estimated from the data
Decision Rule
Reject if (right-tail test).
Small Expected Frequencies
When any , merge adjacent classes until all . Recalculate and after merging.