Assumption · Statistics Library

Adequate expected counts (chi-square)

Adequate expected counts means every cell of a chi-square table has an expected count large enough (conventionally at least 5) for the chi-square distribution to be a good approximation to the test statistic's true sampling distribution.

Topic indexA reference reading outside the guided chapter sequence

Understand the idea

Chi-square tests compare the counts you actually observed in each category or cell against the counts you would EXPECT if there were no association (or no departure from a hypothesized distribution). The chi-square formula's accuracy as an approximation depends on those expected counts being reasonably large.

With very few expected observations in a cell (a rare category, or a table with many cells spread thin over a small sample), the true sampling distribution of the test statistic is lumpy and discrete, not the smooth chi-square curve the p-value is read from. The reported p-value can then be noticeably wrong, usually too small (an inflated false-positive rate).

The common rule of thumb (Cochran's rule) is: all expected counts should be at least 5, or at least 80% of them should be, with none below 1. Below that, either combine sparse categories, collect more data, or switch to an exact test.

The expected cell counts are the counts each cell of the table would have if there were no relationship at all, worked out from the row and column totals. Adequate expected counts is one of the two main chi-square assumptions; the other is that each observation is counted in exactly one cell, independently of the others. When expected counts are too small in a 2x2 table, Fisher's exact test is the usual alternative, because it does not rely on the chi-square approximation.

Practitioner explanation

Expected counts are computed from the observed marginals under the null model (independence, for a contingency table; the hypothesized proportions, for goodness-of-fit), never from the observed cell counts themselves. Cochran's rule (>=80% of cells with expected count >=5, none below 1) is a widely used but ultimately heuristic threshold; simulation shows the chi-square approximation degrades gradually rather than at a hard cliff, so a table just under the rule is not automatically invalid, and one just over it is not automatically safe.

For 2x2 tables specifically, Fisher's exact test computes the exact hypergeometric p-value and is preferred outright at small n rather than treated as a fallback; Yates' continuity correction is a second, cruder adjustment for the same small-count problem in 2x2 tables and is more conservative than necessary at moderate n.

KernelStats reports min_expected and the count of cells below 5 directly on both the independence and goodness-of-fit chi-square cards, so the assumption's status is visible next to the p-value rather than requiring the analyst to compute the expected table by hand.

When to use it

Consider it when

Check it for every chi-square test of independence or goodness-of-fit, especially with more than a few categories or a modest total sample size.

Use caution when

Do not combine categories purely to satisfy the rule when the categories are substantively meaningful and distinct; collapsing them changes the scientific question being asked. Prefer an exact test over merging categories where the categories matter.

Formulas and symbols

Expected count under independence

Eij=(rowi total)×(colj total)nE_{ij} = \frac{(\text{row}_i \text{ total}) \times (\text{col}_j \text{ total})}{n}

n is the table's grand total. Cochran's rule: at least 80% of E_ij should be >= 5, none below 1.

Alternatives

  • Chi-Square Test of Independence. A 2x2 table with small expected counts: use Fisher's exact test (or Yates' continuity correction as a lesser adjustment) instead of the standard chi-square approximation.
  • McNemar's Test. The two variables being compared are the same measurement taken twice on the same subjects (paired categorical data) rather than independent groups, a different design that chi-square independence does not model correctly regardless of cell counts.

Common misconceptions

Misconception

The rule is about the OBSERVED counts in each cell being at least 5.

Correction

The rule concerns the EXPECTED counts under the null model, not the observed counts. A cell can have zero observations and still satisfy the assumption if its expected count is adequate; conversely a cell with several observations can still have a small expected count if the marginal totals are lopsided.

References

  1. NIST/SEMATECH e-Handbook of Statistical Methods, §1.3.5.15 Chi-square test for independence, NIST/SEMATECH (2012), §1.3.5.15.