Mostly Harmless StatisticsXYZ Homework Edition

⇩ Download ▾

13.2 Sign Test

The sign test can be used for both one sample or for two dependent groups. The sign test uses a Binomial Distribution and looks at the probability of a success as 50%. The median is the 50th percentile, so many times we will state our null hypothesis as the median is equal to a certain value. However, sometimes we will state the hypothesis in terms of a proportion.

Two-Tailed TestRight-Tailed TestLeft-Tailed Test
H0:H_{0}: Median =MD0= \text{MD}_{0}
H1:H_{1}: Median MD0\neq \text{MD}_{0}
H0:H_{0}: Median =MD0= \text{MD}_{0}
H1:H_{1}: Median >MD0> \text{MD}_{0}
H0:H_{0}: Median =MD0= \text{MD}_{0}
H1:H_{1}: Median <MD0< \text{MD}_{0}

MD0\text{MD}_{0} is a placeholder for the number for the hypothesized median.

The Sign Test Procedure

For the single-sample test, compare each value with the conjectured median. If a data value is larger than the hypothesized median, replace the value with a positive sign. If a data value is smaller than the hypothesized median, replace the value with a negative sign. If the data value equals the hypothesized median, replace the value with a 0.

The sample size is the number of plus and minus signs added together (do not include data values that tie with the median). For the paired-sample sign test, subtract the group 2 values from the group 1 values and indicate the difference with a positive or negative sign, or 0 (if they tie) and nn = total number of positive and negative signs (do not include differences of zero).

Use the binomial distribution to find the p-value using technology.

The sign test is an alternative to the one sample t-test when you have a small sample size, but the population is not normally distributed. The sign test is also an alternative to the paired sample t-test when you have a small sample size and the difference in the pairs is not normally distributed. The sign test does not detect the magnitude of the difference between the hypothesized value and is not as efficient as the t-test.

The sign test can also be used for dependent samples when the assumptions for a paired t-test are not met.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University, https://mostlyharmlessstat.wixsite.com/webpage), © Rachel Webb, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.