AS & A Level · Practice questions · Sign tests

Count the signs, then decide.

Six original Cambridge-style questions on sign tests: the idea of a non-parametric test, B(n, 0.5) probabilities, critical regions and actual significance levels, single-sample tests for a median, paired-sample tests and the strengths and weaknesses of the method.

Original questions All questions on this page are original work, written in the Cambridge AS & A Level style. They are not from past papers. They test the same concepts and skills the syllabus rewards.
The method

Signs, binomial, tail, compare.

01
Recall
[3 marks]

(a) Explain what is meant by a non-parametric test, and give one situation in which such a test might be preferred to a \(t\)-test.

(b) A sign test of \(\mathrm{H}_0\): median \(= m\) uses a random sample of 9 observations, none equal to \(m\). State the distribution of the number of + signs under \(\mathrm{H}_0\), and explain why.

  • (a) A non-parametric test makes no assumption about the distribution of the population (for example, it does not assume normality). It might be preferred when the sample is small and the population cannot be assumed to be normal, for instance if the data are clearly skewed. ✓
  • (b) \(\mathrm{B}(9, 0.5)\): if the median is \(m\), each observation is above \(m\) with probability \(\frac{1}{2}\), independently of the others, and there are 9 observations. ✓
02
Calculation
[4 marks]

A sign test of \(\mathrm{H}_0\): median \(= m\) against \(\mathrm{H}_1\): median \(\ne m\) uses a random sample of 15 and the 5% significance level. Find the critical region for the number of + signs, and the actual significance level of the test.

  • \(X \sim \mathrm{B}(15, 0.5)\), \(2^{15} = 32768\). Each tail may hold at most 2.5%. ✓
  • \(P(X \le 3) = \dfrac{1 + 15 + 105 + 455}{32768} = \dfrac{576}{32768} = 0.0176 \le 0.025\). ✓
  • \(P(X \le 4) = \dfrac{576 + 1365}{32768} = \dfrac{1941}{32768} = 0.0592 > 0.025\), so the lower tail is \(X \le 3\); by symmetry the upper tail is \(X \ge 12\). ✓
  • Critical region \(X \le 3\) or \(X \ge 12\); actual significance level \(2 \times 0.0176 = 0.0352\), that is 3.52%. ✓
03
Analysis
[5 marks]

Packets of rice are labelled with a median mass of 250 g. A consumer group suspects the median is less than this. The masses, in grams, of 13 randomly chosen packets are

248, 251, 246, 249, 247, 252, 245, 249, 248, 253, 247, 244, 249.

Carry out a sign test at the 5% level.

  • \(\mathrm{H}_0\): the population median mass is 250 g; \(\mathrm{H}_1\): it is less than 250 g. ✓
  • Above 250: 251, 252, 253, so 3 + signs and 10 \(-\) signs. ✓
  • Under \(\mathrm{H}_0\), \(X \sim \mathrm{B}(13, 0.5)\): \[P(X \le 3) = \frac{1 + 13 + 78 + 286}{8192} = \frac{378}{8192} = 0.0461\] ✓
  • \(0.0461 < 0.05\), so reject \(\mathrm{H}_0\). ✓
  • There is sufficient evidence at the 5% level that the median mass of the packets is less than 250 g. ✓
04
Analysis
[5 marks]

The reaction times, in milliseconds, of 9 people are measured without caffeine and again after drinking coffee.

Without: 312, 298, 305, 321, 289, 330, 301, 315, 296
With: 301, 290, 308, 310, 280, 318, 295, 309, 288

Use a paired-sample sign test at the 5% level to test whether caffeine changes reaction times.

  • \(\mathrm{H}_0\): the populations of reaction times without and with caffeine are identical; \(\mathrm{H}_1\): they are not. ✓
  • Differences (without \(-\) with): 11, 8, \(-3\), 11, 9, 12, 6, 6, 8: 8 + signs and 1 \(-\) sign. ✓
  • Let \(X\) be the number of \(-\) signs; under \(\mathrm{H}_0\), \(X \sim \mathrm{B}(9, 0.5)\): \[P(X \le 1) = \frac{1 + 9}{512} = 0.0195\] ✓
  • Two-tailed at 5%: \(0.0195 < 0.025\), so reject \(\mathrm{H}_0\). ✓
  • There is sufficient evidence at the 5% level that caffeine changes reaction times. ✓
05
Analysis
[4 marks]

(a) Find the smallest sample size \(n\) for which a one-tailed sign test at the 5% level could lead to rejecting \(\mathrm{H}_0\).

(b) Find the corresponding smallest \(n\) for a two-tailed test at the 5% level.

  • The most extreme result is all \(n\) signs the same way, with probability \(\left(\frac{1}{2}\right)^{n}\). ✓
  • (a) Need \(\left(\frac{1}{2}\right)^{n} \le 0.05\): \(\left(\frac{1}{2}\right)^{4} = 0.0625 > 0.05\) but \(\left(\frac{1}{2}\right)^{5} = 0.03125 \le 0.05\), so \(n = 5\). ✓
  • (b) Need \(\left(\frac{1}{2}\right)^{n} \le 0.025\): \(\left(\frac{1}{2}\right)^{5} = 0.03125 > 0.025\) but \(\left(\frac{1}{2}\right)^{6} = 0.015625 \le 0.025\), so \(n = 6\). ✓
06
Analysis
[6 marks]

A machine is set to cut rods with a median length of 40.0 cm. A random sample of 10 rods has lengths, in cm,

40.2, 40.5, 40.8, 41.0, 40.3, 40.6, 40.9, 40.4, 41.1, 31.5.

(a) Use a sign test at the 5% level to test whether the median length differs from 40.0 cm.

(b) The sample mean is 39.73 cm, below 40.0 cm. Explain why the sign test is more suitable than a \(t\)-test for these data.

(c) State one disadvantage of the sign test.

  • (a) \(\mathrm{H}_0\): the population median length is 40.0 cm; \(\mathrm{H}_1\): it is not 40.0 cm. ✓
  • 9 + signs and 1 \(-\) sign. Under \(\mathrm{H}_0\), \(X \sim \mathrm{B}(10, 0.5)\): \(P(X \ge 9) = \dfrac{10 + 1}{1024} = 0.0107\). ✓
  • Two-tailed at 5%: \(0.0107 < 0.025\), so reject \(\mathrm{H}_0\). There is sufficient evidence at the 5% level that the median length differs from 40.0 cm. ✓
  • (b) The value 31.5 is an outlier, so the population cannot be assumed normal and the \(t\)-test is not valid. The outlier drags the mean below 40, although 9 of the 10 rods are longer than 40.0 cm. The sign test needs no normality and counts the outlier as only one \(-\) sign. ✓
  • (c) It ignores the sizes of the deviations from 40.0 cm, so it uses less information and is less powerful than a test that uses the magnitudes. ✓

Mark this once you have attempted all six and checked your working. It records a Practiced badge on the topic and adds a one-time bonus. Revealing the solutions alone does not count.