PsychologyOrbit
Sign in Join

Psychology dictionary

Chi-square test

Definition

A non-parametric test for nominal (category) data that compares observed frequencies with the frequencies expected if there were no association.

Explanation

Expected frequency for each cell = (row total x column total) / grand total. Chi-square is the sum, over all cells, of (observed - expected) squared divided by expected.

Data must be frequencies, each participant can appear in only one cell, and expected frequencies should not be too small (often at least 5). For a table, df = (rows - 1) x (columns - 1). Also written as the chi-squared test.

Example

Testing whether preference for tea or coffee is linked to whether someone is a morning or evening person.

Worked example

  1. Observed (100 people): morning people: 30 tea, 20 coffee; evening people: 10 tea, 40 coffee.
  2. Row totals 50 and 50; column totals 40 (tea) and 60 (coffee).
  3. Expected: tea cells 50 x 40 / 100 = 20; coffee cells 50 x 60 / 100 = 30.
  4. Chi-square = (30-20)²/20 + (20-30)²/30 + (10-20)²/20 + (40-30)²/30 = 5 + 3.33 + 5 + 3.33 = 16.67.
  5. df = (2-1) x (2-1) = 1. Critical value at 0.05 = 3.84. 16.67 is larger, so the association is significant.

Answer: Chi-square = 16.67, df = 1, significant at p < 0.05

Exam tip

Show the expected frequencies; they earn method marks even if you make an arithmetic slip later.

Related terms

Written in plain English for students. It is a study aid, not clinical or medical advice. Back to the dictionary