Sign in to save

Bookmark this page so you can find it later.

Sign in to save

Bookmark this page so you can find it later.

Non-parametric tests are statistical methods used when data do not meet the conditions for common parametric tests, especially normality. This cheat sheet helps students choose the right test for ranked, ordinal, categorical, or strongly skewed data. It is useful for comparing groups, checking associations, and analyzing small samples.

These tests focus on medians, ranks, signs, or counts instead of relying heavily on means and standard deviations.

The main idea is to convert data into ranks, signs, or frequency counts and then compare the observed pattern to what would be expected by chance. Common tests include the sign test, Wilcoxon signed-rank test, Mann-Whitney UU test, Kruskal-Wallis test, chi-square tests, and Spearman rank correlation. Many non-parametric hypotheses use medians or distributions rather than population means.

Students should match the test to the number of groups, whether samples are paired or independent, and whether the data are ordinal, quantitative, or categorical.

Key Facts

  • Use a non-parametric test when data are ordinal, strongly skewed, have major outliers, or do not reasonably satisfy normality assumptions.
  • For a sign test with nn nonzero paired differences, the number of positive signs follows XBinomial(n,0.5)X \sim \operatorname{Binomial}(n, 0.5) under the null hypothesis.
  • The Wilcoxon signed-rank test ranks the absolute paired differences and uses the sum of signed ranks, often written as W+W^{+} or WW^{-}.
  • For the Mann-Whitney test, one test statistic is U1=n1n2+n1(n1+1)2R1U_1 = n_1n_2 + \frac{n_1(n_1+1)}{2} - R_1, where R1R_1 is the rank sum for group 11.
  • For the Kruskal-Wallis test, H=12N(N+1)Ri2ni3(N+1)H = \frac{12}{N(N+1)}\sum \frac{R_i^2}{n_i} - 3(N+1), where RiR_i is the rank sum for group ii.
  • For a chi-square goodness-of-fit or independence test, χ2=(OE)2E\chi^2 = \sum \frac{(O-E)^2}{E}, where OO is observed count and EE is expected count.
  • For a chi-square test of independence in an r×cr \times c table, the degrees of freedom are df=(r1)(c1)df = (r-1)(c-1).
  • Spearman rank correlation measures monotonic association and can be computed by ρs=16di2n(n21)\rho_s = 1 - \frac{6\sum d_i^2}{n(n^2-1)} when there are no tied ranks.

Vocabulary

Non-parametric test
A statistical test that does not require a specific population distribution such as a normal distribution.
Rank
A rank is the position of a data value after all values are ordered from smallest to largest or largest to smallest.
Ordinal data
Ordinal data are values with a meaningful order, such as ratings, rankings, or survey levels, but unequal or unknown spacing.
Mann-Whitney U test
The Mann-Whitney UU test compares two independent groups by ranking all observations together and comparing rank sums.
Wilcoxon signed-rank test
The Wilcoxon signed-rank test compares paired measurements by ranking the sizes of the nonzero differences and keeping their signs.
Chi-square test
A chi-square test compares observed categorical counts with expected counts using χ2=(OE)2E\chi^2 = \sum \frac{(O-E)^2}{E}.

Common Mistakes to Avoid

  • Using a non-parametric test only because the sample is small is wrong because the data type, design, and assumptions still matter.
  • Using the Mann-Whitney UU test for paired data is wrong because Mann-Whitney assumes independent groups, while paired data usually need the sign test or Wilcoxon signed-rank test.
  • Ignoring tied ranks is wrong because ties can change rank sums and may require assigning average ranks or using a corrected procedure.
  • Interpreting every non-parametric test as a test of means is wrong because many of these tests compare medians, distributions, ranks, signs, or counts.
  • Using a chi-square test when expected counts are too small is wrong because the chi-square approximation may be unreliable when many expected counts are below 55.

Practice Questions

  1. 1 Two independent groups have sample sizes n1=6n_1 = 6 and n2=7n_2 = 7. If the rank sum for group 11 is R1=32R_1 = 32, calculate U1=n1n2+n1(n1+1)2R1U_1 = n_1n_2 + \frac{n_1(n_1+1)}{2} - R_1.
  2. 2 In a chi-square goodness-of-fit test, one category has observed count O=18O = 18 and expected count E=12E = 12. Find that category's contribution to χ2=(OE)2E\chi^2 = \sum \frac{(O-E)^2}{E}.
  3. 3 For a Spearman rank correlation with n=5n = 5 and rank differences did_i of 0,1,1,2,20, 1, -1, 2, -2, calculate ρs=16di2n(n21)\rho_s = 1 - \frac{6\sum d_i^2}{n(n^2-1)}.
  4. 4 A student wants to compare pain ratings before and after treatment for the same 2020 patients using an ordinal scale from 11 to 1010. Which non-parametric test is most appropriate, and why?