Non-parametric Tests
So far, all of our tests have been parametric, meaning they make assumptions about the sample distribution. We assumed that the sample followed a normal distribution in the , , and tests. In the proportions and tests, we assume that the samples follow a binomial or multinomial distribution, respectively.
But sometimes, particularly with small samples, it is not fair to make these assumptions. For this reason, we have non-parametric tests that do not make any assumptions about the distribution of the sample.
While there are many, many non-parametric tests, we will go over two of the most popular ones: test and the paired signed-rank test.
Please note that there are ways to calculate -values for the test statistics of non-parametric tests, but we don’t describe how to do it here due to their esoteric nature.
Test
Cheat Sheet
- Description: Tests if the median of two independent samples (say and ) are different/more than/less than the median of another sample
- Statistic: (difference of medians)
- Sidedness: Either
- Null Hypothesis: (two-sided), (one-sided)
- Alternative Hypothesis: (two-sided), (one-sided)
- Test Statistic: where
Description
The idea behind this test is that and are proxies for and , respectively. In fact, the hypotheses of the -test can be restated as This works because the median is just defined as such that .
As stated before, there is a way to calculate a cdf for and test it against a significance level , but it is beyond this course’s scope and better left to software.
Paired Signed-rank Test
Cheat Sheet
Description: Tests if the sample median of a sample at one point in time () is different/more than/less than the median of a sample at a different point in time ()
Statistic: (difference of medians)
Sidedness: Either
Null Hypothesis: (two-sided), (one-sided)
Alternative Hypothesis: (two-sided), (one-sided)
Test Statistic:
Description
The function in the -statistic is called the rank function. It returns the index of when is sorted in ascending order. For example, if , then sorted that would be , so .
The function (read “sign”) in takes the “sign” of its input. It is defined as:
Here . We rank the absolute differences and then attach each difference’s sign. For example, if the differences are , the absolute values get ranks , so .
So contains information about the relative ranks of the difference between the observations at the time of and .
53%
CompletedYou have 35 sections remaining on this learning path.
