Salam Academy
Contents · 0% complete
  1. Learning objectives
  2. Core idea
  3. Key formulae
  4. Worked examples
  5. Explore the graph
  6. Common mistakes
  7. Exam tip
  8. Guided practice
  9. Practice questions
  10. Challenge
  11. Summary
  12. Quick quiz
  13. Same topic, different board
  14. Past paper questions
Non-parametric tests · Subtopic 1 of 1

Non-parametric Tests

When you can't assume a normal population, test the median instead. The sign test counts values above and below the hypothesised median, using B(n,0.5)B(n,0.5). The Wilcoxon signed-rank test also uses the sizes of differences: rank ∣d∣|d|, sum the ranks for each sign, and compare the smaller sum TT with tables.

Cambridge 9231 Paper 4≈ 45 minRevision 1 · updated 2026-10-27
Section 1 of 14

Learning objectives

  • Know when a non-parametric test is appropriate.
  • Carry out a sign test.
  • Carry out Wilcoxon signed-rank and rank-sum tests.
Pause and think

Ten taste-testers rate a new recipe. Eight prefer it. Is that convincing evidence?

Section 2 of 14

Core idea

Start hereWhen the data aren’t normal

Taste scores, pain ratings and reaction times are often skewed or full of outliers. A tt-test assumes normality and can mislead. Non-parametric tests ask simpler questions: which way do the differences go, and how do they rank?

The big idea

The sign test uses only the signs of differences, with B(n,0.5)B(n,0.5) under H0H_0. The Wilcoxon signed-rank test also uses the ranks of ∣d∣|d|, making it more powerful while still assuming only symmetry.

1. The sign test

Worked exampleRecipe preference

10 tasters: 8 prefer the new recipe, 2 the old. Test at 5% (one-tailed) whether the new one is preferred.

Goal
Decision.
Strategy
Under H0H_0, preferences are fair coin flips.
  1. X∼B(10,0.5)X\sim B(10,0.5)
    Number preferring the old recipe.
  2. P(X≤2)=1+10+451024P(X\le2)=\frac{1+10+45}{1024}
    Binomial probabilities.
  3. =0.0547=0.0547
    p-value.
Answer0.0547>0.050.0547>0.05: not significant at 5%, though close.
✓ CheckWith 9 out of 10 it would be 0.01070.0107, significant ✓.

2. Wilcoxon signed-rank

Why P+Q=n(n+1)2P+Q=\frac{n(n+1)}2
  1. ranks 1,2,…,n\text{ranks }1,2,\dots,n
    Each ∣d∣|d| gets one rank.
  2. P+Q=1+2+⋯+nP+Q=1+2+\dots+n
    Every rank goes to one of the two sums.
  3. =n(n+1)2=\frac{n(n+1)}2
    Arithmetic series.
Under H0H_0 each sum is near n(n+1)4\frac{n(n+1)}4; a very small T=min⁡(P,Q)T=\min(P,Q) is evidence against H0H_0.
Worked exampleSigned-rank test

Differences: 3,−1,4,6,−2,5,7,83,-1,4,6,-2,5,7,8. Test at 5% (one-tailed) whether the median difference is positive.

Goal
Decision.
Strategy
Rank ∣d∣|d|, sum by sign.
  1. ∣d∣:1,2,3,4,5,6,7,8 → ranks 1..8|d|:1,2,3,4,5,6,7,8\ \to\ \text{ranks }1..8
    Already distinct.
  2. Q=1+2=3Q=1+2=3
    Negative differences −1,−2-1,-2.
  3. P=36−3=33P=36-3=33
    P+Q=36P+Q=36.
  4. T=3≤5T=3\le5
    Critical value for n=8n=8, 5% one-tail.
AnswerSignificant: evidence that the median difference is positive.
✓ CheckThe sign test here gives P(X≤2)P(X\le2) with n=8n=8: 37256=0.145\frac{37}{256}=0.145, not significant. Using ranks adds power.
Which test?

More information used, more powerful test.

Common misconceptionZeros Drop zero differences and reduce nn before looking up critical values.
Key takeawayLarge samples For large nn, T≈N(n(n+1)4,n(n+1)(2n+1)24)T\approx N\left(\frac{n(n+1)}4,\frac{n(n+1)(2n+1)}{24}\right) with a continuity correction.
Pause and think

Why is the sign test less powerful than Wilcoxon?

Summary

  • Sign test: B(n,0.5)B(n,0.5).
  • Signed-rank: T=min⁡(P,Q)T=\min(P,Q), reject if small.
  • Ties share average ranks; drop zeros.
Key words
Non-parametric
Makes no assumption about the population distribution’s form.
Rank
Position in order of size.
Median
Middle value; the parameter these tests target.
HistoryFrank Wilcoxon. Wilcoxon, a chemist testing insecticides, published his rank tests in a two-page paper in 1945. They're now among the most used tests in science.
Fun factRobust. One wild outlier can wreck a tt-test, but in a rank test it's just "the biggest", with rank nn.
Section 3 of 14

Key formulae

Sign testX=# positive signs∼B(n,0.5) under H0X=\#\text{ positive signs}\sim B(n,0.5)\ \text{under }H_0
Signed-rankT=min⁡(P,Q),P+Q=n(n+1)2T=\min(P,Q),\quad P+Q=\frac{n(n+1)}2
Large nT≈N(n(n+1)4, n(n+1)(2n+1)24)T\approx N\left(\frac{n(n+1)}4,\ \frac{n(n+1)(2n+1)}{24}\right)
TrickZeros and ties. Discard zero differences (reduce nn). Tied ∣d∣|d| share the average of their ranks.
Section 4 of 14

Worked examples

Example 1 · Sign test0 / 2 steps
10 differences: 8 positive, 2 negative. Test at 5% (one-tailed) whether the median difference is positive.
    Example 2 · Signed-rank0 / 3 steps
    Differences: 3,−1,4,6,−2,5,7,83,-1,4,6,-2,5,7,8. Find TT.
      Section 5 of 14

      Explore the graph

      Sign test distribution B(10, 0.5)
      Loading the interactive graph…
      Try this
      1. The bars show P(X=x)P(X=x) under H0H_0.
      2. The area left of the line is P(X≤c)P(X\le c): the p-value for cc negative signs.

      Under H0H_0 signs are fair coin flips.

      In the real worldCustomer ratings. Ratings on a 1–5 scale aren't normal, so researchers compare products with Wilcoxon tests.
      Section 6 of 14

      Common mistakes

      IncorrectRanking signed differences
      CorrectRank ∣d∣|d|, then attach signs
      Size and sign are separate.
      IncorrectKeeping zero differences
      CorrectDiscard them
      They give no sign.
      IncorrectReject if TT is large
      CorrectReject if T≤T\le critical value
      TT is the smaller sum.

      Data: not normal

      Wilcoxon: rank it and carry on.

      Section 7 of 14

      Exam tip

      Exam tipCheck P + Q. P+QP+Q must equal n(n+1)2\frac{n(n+1)}2: a free check on your ranking.
      Section 8 of 14

      Guided practice

      SA-ST-NP-G012 marksL2 StandardCalculatorSign test
      In a sign test with 10 non-zero differences, 2 are negative. Find P(X≤2)P(X\le2) for X∼B(10,0.5)X\sim B(10,0.5) (3 s.f.).

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 9 of 14

      Practice questions

      SA-ST-NP-0011 markL1 FoundationNon-calculatorWilcoxon
      For a Wilcoxon signed-rank test with n=8n=8, find P+QP+Q.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-ST-NP-0022 marksL2 StandardNon-calculatorWilcoxon
      Differences: 3,−1,4,6,−2,5,7,83,-1,4,6,-2,5,7,8. Find TT.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      SA-ST-NP-0032 marksL2 StandardNon-calculatorWilcoxon
      Values ∣d∣=2,5,5,7|d|=2,5,5,7 are ranked. What rank does each 55 receive?

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme

      More questions on every skill in this subtopic are in the question bank under Practise.

      Section 10 of 14

      Challenge

      SA-ST-NP-0042 marksL3 ExamNon-calculatorWilcoxon
      For large nn, TT is approximately normal with mean n(n+1)4\frac{n(n+1)}4. Find this mean when n=40n=40.

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 11 of 14

      Summary

      • Sign test: B(n,0.5)B(n,0.5).
      • Signed-rank: rank ∣d∣|d|, T=T= smaller sum.
      • Reject when T≤T\le critical.
      • No normality needed.
      Section 12 of 14

      Quick quiz

      Q1 · SA-ST-NP-Q011 markL1 FoundationNon-calculatorSign test
      A non-parametric test is preferred when
      Choose one option

      Sign in or create a free account to check answers, get hints and track your progress.

      Salam Academy Original Practice · Proposed mark scheme
      Section 13 of 14

      Same topic, different board

      Specification
      9231 AS & A Level Further Mathematics
      Where
      Paper 4 · Non-parametric tests
      Expected
      Sign test, Wilcoxon signed-rank test (single sample and paired), Wilcoxon rank-sum test; normal approximations for large samples; when non-parametric tests are appropriate.
      Calculator
      Permitted on all papers; exact answers are expected where the question asks.
      Typical style
      Typical: paired data with no assumption of normality; carry out a Wilcoxon signed-rank test and compare T with the tabulated critical value.
      Open in
      9231 · Paper 4
      Section 14 of 14

      Past paper questions

      No past paper questions are tagged to this subtopic yet. We add papers every week.

      Browse past papers

      Salam Academy original content · Content status: reviewed and published. Syllabus mapping: Cambridge International 9231, Current syllabus (official specification).