The sign test — recording signs and counting
Sign of each (value − median) or pair difference → discard zeros → count + signs → number of + signs ~ B(n, 0.5).
When to use it. A single sample tested against a median , or a paired sample (work with the pair differences). Unlike the Wilcoxon signed-rank test, the sign test needs no assumption of symmetry — it only uses the sign of each difference, so it has the weakest assumptions of all the non-parametric tests in 9231.
The procedure — four steps:
- Form the differences. For a single sample, . For a paired sample, = (first − second) of each pair.
- Record only the sign of each : a if positive, a if negative.
- Discard ties / zeros. Any is dropped and the sample size reduced accordingly.
- Count the plus signs. Let = number of signs. Under (median ), each difference is equally likely to be or , so
Cambridge tip. The sign test throws away the size of each difference and keeps only its direction — which is exactly why it works without a symmetry assumption, but also why it is less powerful than the signed-rank test. Mention this trade-off if a question asks you to justify the choice of test.
- Differences → signs only → discard zeros → reduce .
- = number of signs under .
- Weakest assumptions: no normality, no symmetry required.