EDU 303.2 · Research Methods and Statistics
Our notes
2 min readWhen 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
| Test | Parametric partner | Use |
|---|---|---|
| Chi-square (χ²) | None | Frequencies in categories |
| Mann-Whitney U | Independent t-test | Two independent groups, ranks |
| Wilcoxon signed-rank | Paired t-test | Same group twice, ranks |
| Kruskal-Wallis H | One-way ANOVA | Three or more groups, ranks |
| Spearman's rho | Pearson's r | Relationship 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:
| Pass | Fail | Total | |
|---|---|---|---|
| Male | 30 | 20 | 50 |
| Female | 40 | 10 | 50 |
| Total | 70 | 30 | 100 |
Expected: pass = 50 × 70 ÷ 100 = 35 for each sex; fail = 50 × 30 ÷ 100 = 15 for each.
| Cell | O | E | (O − E)² ÷ E |
|---|---|---|---|
| Male pass | 30 | 35 | 25 ÷ 35 = 0.714 |
| Female pass | 40 | 35 | 0.714 |
| Male fail | 20 | 15 | 25 ÷ 15 = 1.667 |
| Female fail | 10 | 15 | 1.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
| Strengths | Weaknesses |
|---|---|
| Few assumptions | Less powerful when parametric conditions are met |
| Work with small samples and ranks | Use less information (ranks, not values) |
| Easy to compute | Fewer 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
-
Best pick Introductory Statistics 2e, 11.3 Test of Independence
(opens openstax.org in a new tab)
OpenStax, Introductory Statistics 2e, 11.3 Test of Independence, CC BY-NC-SA 4.0 · licence
-
Chi-squared test
(opens en.wikipedia.org in a new tab)
Wikipedia, Chi-squared test, CC BY-SA 4.0 · licence
-
Nonparametric statistics
(opens en.wikipedia.org in a new tab)
Wikipedia, Nonparametric statistics, CC BY-SA 4.0 · licence
-
OpenStax, Introductory Statistics 2e (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introductory Statistics 2e (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Chi-squared Test
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Lesson 4 - The Chi square Distribution (Statistics Tutor)
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
Chi-square statistic for hypothesis testing | AP Statistics | Khan Academy
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
CHI-SQUARE TESTING (HYPOTHESIS TESTING)
44 min · ≈ 198 MB · about ₦111
(opens youtube.com in a new tab)
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.