n
nicefa.
Advanced Proof

Derivation of the Chi-Square Test Statistic for Goodness-of-Fit and Independence

Students often conflate the Degrees of Freedom for Goodness-of-Fit with those for Independence. In Independence tests, we estimate marginal probabilities from the data, which imposes additional linear constraints, reducing the dimensions from k1 k-1 to (r1)(c1) (r-1)(c-1) via the subtraction of estimated parameters.
Institutional Reference: Applied Statistics
View Full Proof →