Non-parametric tests

Further Maths · Further Probability & Statistics. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Further Maths topics

The idea

A t-test assumes the population is normal. A non-parametric test makes no such assumption about the shape of the distribution, so it is used when the population cannot be taken as normal or when the data are only ranks or ratings. These tests are about the median, not the mean.

The sign test uses only whether each value is above or below the hypothesised median. The Wilcoxon tests also use the sizes of the differences, through their ranks, so they use more of the information. In return the signed-rank tests need the distribution to be symmetrical, and the rank-sum test needs the two distributions to have the same shape.

Match the test to the design: one sample, paired samples (work with the differences), or two independent samples (rank-sum).

In simpler words

Some tests assume the data follow a normal curve. Non-parametric tests do not. We use them when we cannot assume that, or when the data are only ranks. They test the median, not the mean. The sign test only asks: is each value above or below the median? Wilcoxon tests also rank the sizes of the differences, so they use more information.

An everyday comparison

The sign test is like judging a cooking contest by asking each judge only thumbs up or thumbs down. The Wilcoxon test is like asking each judge to rank how strongly they feel, so it uses more of what they think. The comparison is limited, because the Wilcoxon signed-rank test also needs the differences to be symmetrically distributed.

Rules to remember

Common mistake

In the Wilcoxon tests a small statistic is the significant one, so H0 is rejected when T (or W) is less than or equal to the critical value. Students who are used to t and χ2 tests reject when the statistic is larger, which is the wrong way round.

In the exam

State the hypotheses in terms of the population median, and say why a non-parametric test is used. For a signed-rank test, show the differences, rank them ignoring sign, then find P and Q and check P + Q = n(n + 1)/2. State T as the smaller. Give the critical value from tables, then write: since T ≤ critical value, reject H0. Finish with a conclusion in the context of the question, and state the symmetry assumption.

Worked example

A random sample of 7 values is used to test H0: median = 20 against H1: median > 20 with a Wilcoxon signed-rank test. The values minus 20 are 5, −2, 9, 3, −1, 7 and 4. The critical value for n = 7 (one-tail, 5%) is 3. Carry out the test.

  1. Sizes in order: 1, 2, 3, 4, 5, 7, 9 take ranks 1 to 7. The negative differences −1 and −2 have ranks 1 and 2.
  2. Q = 1 + 2 = 3 and P = 3 + 4 + 5 + 6 + 7 = 25. Check: 3 + 25 = 28 = 7 × 8/2.
  3. T = smaller of P and Q = 3. Since 3 ≤ 3, T is in the critical region.

Answer: T = 3; reject H0. There is evidence at the 5% level that the median is greater than 20.

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Keep going

← χ2-testsProbability generating functions →Take a Further Maths test