1. Applications

Applications of the Sign Test:

  • Single population quantile or median test.
  • Single population proportion test.
  • Paired population median test.

Sign Test is applicable for small sample sizes and when the data is not normally distributed.

2. Test Procedure

Given data points , a null hypothesis , and an alternative hypothesis , the Sign Test is used to test the null hypothesis under a given significance level .

  1. Go through the data points and remove ties, i.e. data points equal to . Redefine the sample size as .

  2. Compute the number of data points greater than , denoted as , and the number of data points less than , denoted as .

  3. The test statistic is given by by convention. Under the null hypothesis, .

  4. Compute the p-value:

    where is the observed value of under the sample data.

    • If , then .
    • If , then .

3. Large Sample Approximation

Large sample approximation of the Sign Test:

  • Empirically, for a Sign Test on the median, if , then the test statistic can be approximated by a normal distribution.
  • In this case, the Sign Test is equivalent to the Z-test.
  • For binomial distribution, we may also consider the adjusted continuity correction for the normal approximation.

4. Examples

Example (Quantile Sign Test). A survey was conducted on the heights of students. Conduct a Sign Test to test the null hypothesis that the 3/4 quartile of the heights is 180 cm.

Solution

Consider the null hypothesis cm, and alternative hypothesis cm.

First check for ties. Then and . Here let .

Under the null hypothesis, .

Compute the p-value:

Reject the null hypothesis.

Example (Paired Sign Test). There are two types of tires, A and B. We want to test if A is significantly more durable than B. The data of cars are given.

  • If we can assume that the data is from a normal distribution, we can use the paired t-test to test if the mean differs significantly.
  • Otherwise, we can use the Sign Test, without assuming the distribution of the data, and test if the median differs significantly.

Solution

Consider the null hypothesis , and alternative hypothesis .

First check for ties, i.e. if , and remove them.

Then compute the statistic:

Compute the p-value:

Fail to reject the null hypothesis.