Chi-Square Goodness of Fit

For a chi-square test, the degrees of freedom are: Degrees of Freedom = k−1−c

  • k: Number of categories or groups
  • c: Number of constraints (e.g., if the expected values are calculated using an estimated mean)