Everything from the 2 lessons of this topic on a few pages: the key idea of each lesson, the diagram to remember, the points to learn and the traps examiners set. Read it, cover it, test yourself.
Under \(\text{H}_0\) (the model fits) find each expected frequency \(E = N \times P(\text{class})\). Combine neighbouring classes until every \(E \ge 5\). Then \(\chi^{2} = \displaystyle\sum \frac{(O - E)^{2}}{E} = \sum \frac{O^{2}}{E} - N\), with degrees of freedom \(\nu = k - 1 - m\), where \(k\) is the number of classes AFTER combining and \(m\) is the number of parameters estimated from the data. Reject \(\text{H}_0\) only when \(\chi^{2}\) exceeds the upper critical value: the test is always upper-tailed.
Divide by \(E\), not by \(O\), and never add up \(O - E\) on its own: those differences always total 0. A small \(\chi^{2}\) does not PROVE the model; it only means the data give no evidence against it.
Count \(k\) AFTER combining and subtract one for every parameter you estimated. In the Poisson example the six values became five classes, and estimating \(\lambda\) took another degree of freedom away: \(\nu = 3\), not 5.
If \(\mu\) and \(\sigma\) had been estimated from the same 200 heights, \(\nu\) would be \(4 - 1 - 2 = 1\). And an extreme cell explains WHY a model fails; it does not let you drop that cell and test again.
H0: the two classifications are independent; H1: they are not independent (there is an association). Expected frequency \(E = \dfrac{\text{row total} \times \text{column total}}{\text{grand total}}\). Combine adjacent rows or columns until every \(E \ge 5\), then \(X^{2} = \sum \dfrac{(O - E)^{2}}{E}\) is compared with \(\chi^{2}_{\nu}\) where \(\nu = (r - 1)(c - 1)\) for the table you actually use. Reject H0 if \(X^{2}\) exceeds the critical value.
Do not round expected frequencies to whole numbers. They are averages, not counts: 2.52 and 14.4 are correct values. Rounding them changes every contribution and can change the conclusion.
Rejecting H0 shows an association, not a cause: the test cannot say that flashcards MADE students pass. Equally, not rejecting H0 never proves independence; write 'there is insufficient evidence of an association'.
Combine on EXPECTED frequencies, not observed ones: the '6+' column has observed 5 in one row, but its expected frequency 2.52 is what matters. And after combining, \(\nu\) comes from the new table: \((3 - 1)(3 - 1) = 4\), not the original 6.