Maths4U
Menu

Maths4U Original · Learn, check, explain

Single-sample sign test — 9231 FPS

Discard zero differences and use the binomial sign-count model.

Notes and key methods

A sign test for a continuous population median counts observations above and below the null median. Under H₀, each nonzero difference is equally likely to be positive or negative, so the positive count is Bin(n,1/2).

For paired data, first calculate differences in the stated order. Remove zero differences before fixing n. The sign test uses direction alone and does not require the symmetry assumption needed by the signed-rank test.

Check the conditions

Three worked examples

Example 1 · Exact sign tests

After removing zero differences, 10 independent paired differences contain 7 positive and 3 negative values. The alternative is a positive population median difference.

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the expected positive count under H₀.
  2. Find the exact one-sided p-value.
  3. Find the exact two-sided p-value using twice the smaller tail, capped at one.
  4. If three exact zero differences had also been recorded, find the original number of pairs.
Show the reasoning

(a)

\(n/2=5\)

Answer: \(5\).

(b)

\(P(\operatorname{Bin}(10,1/2)\ge 7)=0.171875\)

Answer: \(0.171875\).

(c)

\(\min(1,2p_{\rm one-sided})=0.34375\)

Answer: \(0.34375\).

(d)

\(10+3=13\)

Answer: \(13\).

The p-value is \(0.171875\). Since it exceeds 0.05, do not reject H₀: the sample gives insufficient evidence that the population median difference is positive. This does not give the probability that H₀ is true.

Example 2 · Exact sign tests

After removing zero differences, 11 independent paired differences contain 10 positive and 1 negative values. The alternative is a positive population median difference.

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the expected positive count under H₀.
  2. Find the exact one-sided p-value.
  3. Find the exact two-sided p-value using twice the smaller tail, capped at one.
  4. If three exact zero differences had also been recorded, find the original number of pairs.
Show the reasoning

(a)

\(n/2=\frac{11}{2}\)

Answer: \(\frac{11}{2}\).

(b)

\(P(\operatorname{Bin}(11,1/2)\ge 10)=0.005859375\)

Answer: \(0.005859375\).

(c)

\(\min(1,2p_{\rm one-sided})=0.01171875\)

Answer: \(0.01171875\).

(d)

\(11+3=14\)

Answer: \(14\).

The p-value is \(0.005859375\). Since it is at most 0.05, reject H₀: there is evidence that the population median difference is positive. This does not give the probability that H₀ is true.

Example 3 · Exact sign tests

After removing zero differences, 12 independent paired differences contain 10 positive and 2 negative values. The alternative is a positive population median difference.

Use a 5% significance level for a written conclusion. A distribution calculator may be used for numerical p-values.

  1. Find the expected positive count under H₀.
  2. Find the exact one-sided p-value.
  3. Find the exact two-sided p-value using twice the smaller tail, capped at one.
  4. If three exact zero differences had also been recorded, find the original number of pairs.
Show the reasoning

(a)

\(n/2=6\)

Answer: \(6\).

(b)

\(P(\operatorname{Bin}(12,1/2)\ge 10)=0.019287109375\)

Answer: \(0.019287109375\).

(c)

\(\min(1,2p_{\rm one-sided})=0.03857421875\)

Answer: \(0.03857421875\).

(d)

\(12+3=15\)

Answer: \(15\).

The p-value is \(0.019287109375\). Since it is at most 0.05, reject H₀: there is evidence that the population median difference is positive. This does not give the probability that H₀ is true.

Common mistakes

Practise with answer checking

Original exam-style problems

Write complete solutions before opening the worked solution. The marking guidance rewards reasoning as well as answers.

Examination practice · 2020–2026

Apply the method to recent source-labelled questions from this chapter.

Browse recent examination questions · All topic resources and the full bank

Next skill: Single-sample Wilcoxon signed-rank test →