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 to via the subtraction of estimated parameters.
Institutional Reference: Applied Statistics
View Full Proof →