Sign Test

The sign test is an exact hypothesis test for paired data that discards the magnitude of each pair’s change and retains only its direction. It is the simplest member of the location-test family and a clean setting for exact inference, because under the null hypothesis the test statistic follows a binomial distribution with success probability one-half.

From differences to signs

For each pair , compute the difference and record its sign:

The test statistic is the count of one chosen sign — say the number of positive differences. If the null hypothesis of no systematic change is true, positive and negative differences are equally likely, so

where is the number of pairs with a nonzero difference. Every probability in the test is an exact binomial tail probability; no normal approximation is involved.

The binomial model

For , the probability mass function is

with mean and variance ; under the sign-test null these reduce to and .

The model applies when four conditions hold: a fixed number of trials, binary outcomes on each trial, a constant success probability across trials, and independent trials. Deciding whether a random variable is binomial means checking these conditions against how the data arise: sampling until the first success violates the fixed- condition, and drawing without replacement from a small population of successes and failures makes change from draw to draw.

Tail probabilities are obtained by summing the masses of the relevant counts — directly, from a binomial table, or with standard software. A binomial table is organized by and and lists either point probabilities or cumulative probabilities such as ; check which before reading. From cumulative entries an upper tail is , and a two-sided tail at doubles the smaller side. Many tables list only ; larger values are handled by reversing the roles of successes and failures, since equals with the count of failures.

Assumptions

In standard usage the test requires:

  • Paired, independent observations. Each pair contributes one sign, and the pairs are independent of one another; the signs then behave like independent binary trials.
  • Meaningful direction. The measurements must be at least ordinal, so that “larger” and “smaller” are defined within each pair. No distributional shape assumption about the differences is needed — the raw data may be skewed, heavy-tailed, or otherwise nonnormal, since only their signs enter.
  • Ties are excluded. Pairs with carry no directional information and are dropped, reducing accordingly.

Because only signs are used, the test does not assume symmetry of the outcome distribution; the binomial null at concerns the signs, not the raw measurements.

Procedure

The test follows the shared four-step framework of Hypothesis Testing:

  1. Hypotheses. With , the null is (“no systematic change”). A directed alternative is (or ); a nondirected alternative is . The direction, if any, must be chosen before inspecting the data.
  2. Criteria. Fix in advance. Because the binomial is discrete, available cutoffs may not achieve exactly ; choose the first cutoff whose tail probability does not exceed it. The actual level is then at or below the nominal , often strictly below it.
  3. Statistic and p-value. Count the signs and evaluate the corresponding binomial tail under .
  4. Decision and interpretation. Reject when ; otherwise fail to reject — which does not establish that there is no effect.

One-sided and two-sided tests

  • One-sided: for an upper-tailed alternative, using the distribution.
  • Two-sided: the distribution is symmetric about . A common exact two-sided p-value is twice the smaller one-sided probability, capped at for central observations. Rejection regions are likewise placed in both tails with probability at most each. Doubling is valid here by symmetry of the null distribution of — not by any symmetry of the original measurements. (For a general success probability the distribution is asymmetric and doubling is only a convention; the general caveats in P-Values apply.)

Worked example: a pre–post intervention

Ten students complete a short intervention, and anxiety scores are measured before and after. Eight students improve and two worsen. Coding a “success” as an improvement gives , so the relevant one-sided tail for evidence of improvement is the upper tail.

Under , . The point probability of the observed count is

but the evidence lies in the tail:

(The same upper tail could be read from a cumulative binomial table as .)

At the two-sided critical region is or , since while is too large; the actual level is , illustrating the conservative discreteness of the test. With outside the region and , the null is not rejected: the data do not provide sufficient evidence of an intervention effect on anxiety. This is not evidence that the intervention does nothing — with ten pairs, the test has limited sensitivity; see Statistical Power.

Strengths and limitations

The sign test asks very little of the data: no normality, no scale beyond ordinality, exact probabilities at any sample size. The price is power. By discarding magnitudes it ignores much of the information in the differences, so for measurements on an interval scale a paired test on the differences (see t Tests) is typically more sensitive when its assumptions hold, and the sign test is most useful with small samples, skewed differences, or data that support only ordinal conclusions.

Connections

  • Hypothesis Testing: the four-step procedure, critical regions, and decision language the test instantiates.
  • P-Values: tail versus point probabilities and the symmetry rule used for the two-sided calculation.
  • Probability: the binomial count as a sum of independent Bernoulli trials.
  • t Tests: the magnitude-using counterparts for paired and independent comparisons of means.