Select a rank or sign procedure by design

A useful nonparametric alternative starts with the sampling design and the estimand, the population feature the question asks about. One sample compared with a fixed center, matched measurements, and two unrelated groups supply different units of analysis. Check the assumptions of the selected procedure before interpreting its result.

One sample and matched pairs

For one independent sample and a proposed median, the sign test counts observations above and below that value.


Under a continuous null median, each sign has probability one-half; an explicit equal-sign assumption conditional on nonzero values also supports the usual exact binomial calculation. The test uses direction without requiring a symmetric distribution of distances from the proposed center.


A signed-rank test adds the ranks of absolute nonzero deviations to their signs. Its usual zero-location interpretation relies on symmetry about the null center, so ranks do not remove that assumption.


With matched before-and-after measurements, first form one difference per pair and treat independent pairs, rather than individual measurements, as the units. Remove zero differences under the stated convention and specify how tied absolute values are ranked.

Two independent groups

For independent groups, a rank-sum test orders the pooled observations and compares their ranks between groups. Under exchangeability at the null, it can test whether the distributions differ; direction in ranks can describe which group tends to have larger observations.


A median-shift reading needs additional support, such as a common-shape assumption, because differing shapes can alter ranks even when medians coincide.

Worked example

Suppose five independent pairs give differences +6, −3, +2, −5, and +9 in the original measurement units. Their absolute values 2, 3, 5, 6, and 9 receive ranks 1 through 5.


The positive differences carry ranks 4, 1, and 5, so the positive-rank sum is 10; the negative ranks sum to 5. This calculation illustrates how magnitudes affect signed ranks, whereas a sign calculation would count only three positive and two negative differences.



Independent measurements form one strongly skewed sample. The question is whether the population median is 10, with no credible symmetry assumption. Which test best matches the stated target and minimal assumptions?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The same patients are measured before and after an intervention. Their independent patient-level differences are plausibly symmetric around a common center, but normality is doubtful. Which alternative addresses a zero location shift?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

Independent paired differences are +2, −4, +1, +3, with no ties in absolute value. Under a symmetric zero-shift signed-rank analysis, find the positive-rank sum W+ and show the assigned ranks.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors