# When doesn't the chi-squared statistic follow the chi-squared distribution? [duplicate]

When we do a chi-squared test (to test goodness of fit or the dependence of two variables), we assume that the the chi-squared statistic follows the chi-squared distribution.

• Shouldn't we first check if the chi-squared statistic follows the chi-squared distribution in that particular case?
• If yes, then how do we do that?
• Or have I got it all mixed up and my question itself is wrong?