UNIHIVE

Study Hub UNIPORT EDU 303.2

EDU 303.2 · Research Methods and Statistics

Chi-square and other non-parametric tests

Tests for nominal and ordinal data that make few assumptions.

Our notes

2 min read

When to use non-parametric tests

  • Data are nominal or ordinal.
  • Samples are small.
  • The distribution is clearly not normal.

They are often called distribution-free tests.

Common non-parametric tests

TestParametric partnerUse
Chi-square (χ²)NoneFrequencies in categories
Mann-Whitney UIndependent t-testTwo independent groups, ranks
Wilcoxon signed-rankPaired t-testSame group twice, ranks
Kruskal-Wallis HOne-way ANOVAThree or more groups, ranks
Spearman's rhoPearson's rRelationship between ranks

Chi-square test of independence

χ² = Σ (O − E)² ÷ E
Expected frequency E = (row total × column total) ÷ grand total.
df = (rows − 1)(columns − 1).

Worked example

Is passing a test related to sex? 100 students:

PassFailTotal
Male302050
Female401050
Total7030100

Expected: pass = 50 × 70 ÷ 100 = 35 for each sex; fail = 50 × 30 ÷ 100 = 15 for each.

CellOE(O − E)² ÷ E
Male pass303525 ÷ 35 = 0.714
Female pass40350.714
Male fail201525 ÷ 15 = 1.667
Female fail10151.667
χ² = 4.762

df = (2 − 1)(2 − 1) = 1. Critical χ² at 0.05 = 3.841.
4.762 > 3.841: reject H₀. Passing is related to sex in this sample (females passed more).

Check with the 2 × 2 shortcut: χ² = N(ad − bc)² ÷ (row and column totals multiplied)
= 100 × (30 × 10 − 20 × 40)² ÷ (50 × 50 × 70 × 30) = 100 × 250,000 ÷ 5,250,000 = 4.762. Same.

Conditions for chi-square

  • Use frequencies (counts), never percentages or means.
  • Categories must not overlap; each person counts once.
  • Expected frequencies should not be too small (a common rule: none below 5). Otherwise join categories or use Fisher's exact test.

Goodness of fit

χ² also tests whether observed counts fit an expected pattern. Example: are four options of a multiple-choice question chosen equally often? With 80 answers, E = 20 for each option; df = 4 − 1 = 3.

Strengths and weaknesses of non-parametric tests

StrengthsWeaknesses
Few assumptionsLess powerful when parametric conditions are met
Work with small samples and ranksUse less information (ranks, not values)
Easy to computeFewer ways to handle complex designs

Exams usually ask

  • Compute χ² for a contingency table and interpret.
  • Name the non-parametric partner of a given parametric test.

Common mistake

Running chi-square on percentages. Convert back to counts first.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All EDU 303.2 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.