Skip to content

Expected counts in two-way tables

Calculate expected counts from table margins and check the chi-square expected-count condition.

It opens on

If sport and breakfast were unrelated, how many of the 180 athletes would eat breakfast?

Why it matters

These counts show what a two-way table would look like if its variables were unrelated.

Good to know first

  • Two categorical variables: two-way tables, conditional distributions and association: a row total counts one group, a conditional proportion is a cell over its row total. Independent events and unions of events: if events are independent, P(A and B) = P(A)·P(B)

Step by step

  1. Overall share

    Use the overall breakfast share to predict a count in a sport row.

    Change only the row to 220 nonathletes; the overall breakfast share remains 0.575.

    A common mix-up

    Split the athlete row equally.

    In fact: The overall breakfast share is 57.5%, not 50%.

  2. Fill cells

    Find every expected cell using row and column totals.

    Nonathletes skipping breakfast: E = (220 × 170) ÷ 400 = 93.5.

    A common mix-up

    Use an observed cell in the formula.

    In fact: Expected cells use row and column totals.

  3. Check counts

    Decide whether all expected cells meet the chi-square expected-count condition.

    Sport–breakfast’s smallest expected cell is 76.5; 76.5 ≥ 5, so this condition holds.

    A common mix-up

    Check observed counts against 5.

    In fact: The condition concerns counts expected under H₀.

Try it

Of the 180 athletes, how many are expected to skip breakfast?Answer

76.5

Hint: Use 170 ÷ 400

Find grade 9’s >8 h expectation and check the expected row sum.Answer

26; row sum 100

Hint: Use column total 104

A smaller table has observed [eat, skip] rows [12, 6] and [11, 11]. Does the condition hold?Answer

Yes; expected cells are [10.35, 7.65] and [12.65, 9.35]; minimum 7.65 ≥ 5

Hint: Row totals are 18 and 22

Write the nonathlete-breakfast line.Answer

E = 220 × 0.575 = 126.5

Write the grade 9, 7–8 h line.Answer

E = (100 × 171) ÷ 400 = 42.75

Expected counts in two-way tables

30 minutes every month. No card.