Priority labels: ImportantNeutralLess important show where to spend revision time.
Why go non-parametric?Important
Parametric methods (t-tests, regression) lean on assumptions about the shape of the population and on means being meaningful numbers. Non-parametric (distribution-free) methods replace the raw values by their ranks and ask whether the ranks look random. They are the right tool when:
| Situation | Reason |
|---|---|
| Ordinal data (Likert scales, rankings) | Numeric gaps are not meaningful, so a mean is not either |
| Small sample, clearly non-Normal | The CLT has not kicked in yet |
| Severe outliers | Ranks cap the influence of extreme values |
| Skewed or multi-modal data | t-test assumptions fail |
| Monotone but curved relations | Ranking straightens them (rank correlations) |
They are not a way to hide an outlier you do not understand, a substitute for a sensible transformation, or a licence to ignore bimodality. There is a price too: with perfectly Normal data a rank test keeps roughly 95% of the power of its parametric twin; when assumptions fail, the rank test is the more reliable choice. Independence is still required — "distribution-free" does not mean "assumption-free".
Ranking rule: pool all observations, number them 1…N from smallest to largest, and give tied values the average of the ranks they occupy.
Parametric tests and their rank-based twinsImportant
| Situation | Parametric | Non-parametric |
|---|---|---|
| Two independent groups | Two-sample t | Wilcoxon rank-sum / Mann–Whitney |
| Paired data | Paired t | Wilcoxon signed-rank |
| Three or more independent groups | One-way ANOVA | Kruskal–Wallis |
| Association between two variables | Pearson r / slope test | Spearman ρ, Kendall τ |
Wilcoxon rank-sum / Mann–Whitney testImportant
H₀: both groups come from the same distribution; H_A: one is shifted higher or lower. (For a clean "location" reading both groups should have the same shape.)
- Pool the N = n₁ + n₂ values and rank them, averaging ties.
- Add up the ranks of each group: T₁ and T₂. Check T₁ + T₂ = N(N+1)/2.
- Take T = the rank sum of the smaller group.
- n₁, n₂ ≤ 10: compare T with Table W1 — reject when T falls outside the tabulated interval. Larger samples: use the Normal approximation below.
(here n is the size of the group whose rank sum is T.)
Two small groups
Group A: 12, 15, 9, 20, 17 (n = 5). Group B: 22, 25, 18, 30, 21, 27 (n = 6).
Pool and rank
Rank sums
Decide
Reject H₀ at α = 0.05: group A tends to have lower values than group B. In the exam you would compare T = 16 with the W1 table interval for (5, 6); the conclusion is the same.
Kruskal–Wallis testImportant
The rank-based counterpart of one-way ANOVA for k ≥ 3 independent groups. H₀: all populations are identical; H_A: they are not all identical.
Three groups of four
Group 1: 7, 9, 6, 11. Group 2: 12, 15, 10, 14. Group 3: 8, 13, 16, 18. (N = 12.)
Rank sums after pooling
Statistic
Compare
Fail to reject H₀: there is some sign of group differences, but not enough at α = 0.05. A significant result would not say which groups differ — that needs post-hoc pairwise tests.
Wilcoxon signed-rank testImportant
For paired data when the differences are not near-Normal. H₀: the median difference is 0.
- Compute dᵢ for each pair; drop zeros, leaving n pairs.
- Rank the absolute differences |dᵢ| (average ties).
- T⁺ = sum of ranks with dᵢ > 0, T⁻ = sum of ranks with dᵢ < 0; check T⁺ + T⁻ = n(n+1)/2.
- Test statistic T = min(T⁺, T⁻).
- n ≤ 50: Table W2 — reject when T is smaller than the critical value. n > 50: Normal approximation.
Seven non-zero differences
Differences: 5, −2, 8, 3, −1, 6, 4 (an eighth pair with d = 0 was dropped).
Rank |d|
Rank sums
T = 3. The exact two-sided p-value is ≈ 0.078, so at α = 0.05 we fail to reject; at α = 0.10 we would reject. Small T signals a shift, which is why the rejection rule here is "T too small".
Rank correlationsNeutral
Kendall's τ counts pairs: n_c concordant (higher x goes with higher y) and n_d discordant.
Spearman's ρ is Pearson's r computed on the ranks of x and of y. Both lie in [−1, 1], ignore the exact spacing of values, resist outliers and need only a monotone (not linear) trend. Quick check: x = 1…5 with y ranks 2, 1, 4, 3, 5 gives 8 concordant and 2 discordant pairs, so τ = 6/10 = 0.6, and ρ = 0.8.
Conditions at a glanceImportant
| Test | Needs |
|---|---|
| Mann–Whitney | Independence within and between groups; random sampling; same shape for a pure location reading |
| Kruskal–Wallis | Independence within and between all groups; random sampling |
| Signed-rank | Paired data; independent differences |
| Spearman / Kendall | Independent observations; at least ordinal data |
Calculator and RNeutral
The TI-84 has none of these tests built in: use SortA( to order the pooled data, assign ranks (averaging ties) by hand, then compare with the table or compute z with normalcdf and H with χ²cdf. For Spearman, rank x and y separately and run LinReg on the ranks. The rank calculators in the lab do the bookkeeping for you.
Key takeaways
- Rank, add up, compare: T for two groups (smaller group), H for k groups (χ² with k − 1 df), min(T⁺, T⁻) for pairs.
- Use rank methods for ordinal data, outliers and small non-Normal samples — not as an outlier-hiding trick.
- Independence is always required; a significant Kruskal–Wallis does not say which groups differ.