| Literature DB >> 26885295 |
Abstract
Conventional statistical tests are usually called parametric tests. Parametric tests are used more frequently than nonparametric tests in many medical articles, because most of the medical researchers are familiar with and the statistical software packages strongly support parametric tests. Parametric tests require important assumption; assumption of normality which means that distribution of sample means is normally distributed. However, parametric test can be misleading when this assumption is not satisfied. In this circumstance, nonparametric tests are the alternative methods available, because they do not required the normality assumption. Nonparametric tests are the statistical methods based on signs and ranks. In this article, we will discuss about the basic concepts and practical use of nonparametric tests for the guide to the proper use.Entities:
Keywords: Data interpretation; Investigative technique; Nonparametric statistics; Statistical data analysis
Year: 2016 PMID: 26885295 PMCID: PMC4754273 DOI: 10.4097/kjae.2016.69.1.8
Source DB: PubMed Journal: Korean J Anesthesiol ISSN: 2005-6419
Analog of Parametic and Nonparametric Tests
| Parametric tests | Nonparametric tests | |
|---|---|---|
| One sample | One sample t test | Sign test |
| Wilcoxon's signed rank test | ||
| Two sample | Paired t test | Sign test |
| Wilcoxon's signed rank test | ||
| Unpaired t test | Mann-Whitney test | |
| Kolmorogov-Smirnov test | ||
| K-sample | Analysis of variance | Kruskal-Wallis test |
| Jonckheer test | ||
| 2 way analysis of variance | Friedman test |
Examples of Sign Test and Wilcoxon's Singed Rank Test for One Sample
| X1 | X2 | X3 | X4 | X5 | |
|---|---|---|---|---|---|
| Data | 47 | 55 | 34 | 26 | 99 |
| +/- compared to 50 | - | + | - | - | + |
| R | -3 | 5 | -16 | -14 | 49 |
| Rank | (1) | (2) | (4) | (3) | (5) |
Let the median (θ0) is 50. The original data were transformed into rank and sign data. +/- mean Xi > 50 and < 50 respectively. The round bracket means rank.
Example of Wilcoxon's Singed Rank Test for the Paired Sample
| Xi1 | Xi2 | Xi3 | Xi4 | Xi5 | |
|---|---|---|---|---|---|
| X1j (pre scores) | 33 | 28 | 33 | 33 | 40 |
| X2j (post scores) | 34 | 33 | 30 | 39 | 42 |
| Rj = X1j - X2j | -1 | -5 | 3 | -6 | -2 |
| Rank | (1) | (4) | (3) | (5) | (2) |
| W+ | = 3 | ||||
| W- | = 12 (1 + 4 + 5 + 2 ) | ||||
Under the null hypothesis (no difference between the pre/post scores), test statistics (W+, the sum of the positive rank) would be close to 7.5 (), but get far from 7.5 when the alternative hypothesis is true. According to the table for Wilcoxon's rank sum test, the P value = 0. 1363 when test statistics (W+) 3 under α = 0.05 (two tailed test) and the sample size = 5. Therefore, null hypothesis cannot be rejected.
Examples and Process of Wilcoxon's Rank Sum Test
| Group X | 18 | 21 | 15 | 30 | 25 | ||||
| Group Y | 20 | 11 | 16 | 14 | |||||
| Data from group X & Y | 11 | 14 | 15 | 16 | 18 | 20 | 21 | 25 | 30 |
| Rank (group) | 1(Y) | 2(Y) | 3(X) | 4(Y) | 5(X) | 6(Y) | 7(X) | 8(X) | 9(X) |
| WX | 3 + 5 + 7 + 8 + 9 = 32 | ||||||||
| WY | 1 + 2 + 4 + 6 = 13 | ||||||||
There are two independent groups with the sample sizes of group X (m) is 5 and group Y (n) is 4. Under the null hypothesis (no difference between the 2 groups), the rank sum of group X (WX) and group Y (WY) would be close to 22.5 (, but get far from 22.5 when the alternative hypothesis is true. According to the table for Wilcoxon's rank sum test, the P value = 0. 0556 when test statistics (WY) = 13 under α = 0.05 (two tailed test) at m = 5 and n = 4. Therefore, null hypothesis cannot be rejected.
Example and Process of Mann-Whitney Test
| Group X | 18 | 21 | 15 | 30 | 25 |
| Group Y | 20 | 11 | 16 | 14 | |
| Number of X > Y | 3 | 4 | 2 | 4 | 4 |
| Number of X < Y | 2 | 0 | 1 | 0 | |
| UX | 3 + 4 + 2 + 4 + 4 = 17 | ||||
| UY | 2 + 0 + 1 + 0 = 3 | ||||
| U | Min (UX, UY) = 3 | ||||
There are two independent groups with the sample sizes of group X (m) is 5 and group Y (n) is 4. Under the null hypothesis (no difference between the 2 groups), the test statistics (U) gets closer to 10 (), but gets more extreme (smaller in this example) when the alternative hypothesis is true. The test statistics of this data is U = 3, which is greater than the reference value of 1 under α = 0.05 (two tailed test) at m = 5 and n = 4. Therefore, null hypothesis cannot be rejected.
Example and Process of Kolmogorov-Smirnov Test
| X | Y | Interval | Frequency of X | SX | Frequency of Y | SY | SX - SY |
|---|---|---|---|---|---|---|---|
| 53 | 88 | 50-53 | 3 | 3/15 | 1 | 1/15 | 2/15 |
| 87 | 84 | 54-57 | 2 | 5/15 | 0 | 1/15 | 4/15 |
| 71 | 72 | 58-61 | 1 | 6/15 | 0 | 1/15 | 5/15 |
| 64 | 91 | 62-65 | 1 | 7/15 | 0 | 1/15 | 6/15 |
| 78 | 89 | 66-69 | 3 | 10/15 | 1 | 2/15 | 8/15 (Max difference) |
| 66 | 68 | 70-73 | 1 | 11/15 | 3 | 5/15 | 6/15 |
| 52 | 73 | 74-77 | 0 | 11/15 | 1 | 6/15 | 5/15 |
| 54 | 52 | 78-81 | 1 | 12/15 | 0 | 6/15 | 6/15 |
| 50 | 71 | 82-85 | 1 | 13/15 | 2 | 8/15 | 5/15 |
| 91 | 93 | 86-89 | 1 | 14/15 | 4 | 12/15 | 2/15 |
| 55 | 87 | 90-93 | 1 | 15/15 | 3 | 15/15 | 0/15 |
| 86 | 92 | ||||||
| 69 | 76 | ||||||
| 82 | 72 | ||||||
| 68 | 86 |
There are two independent groups with the sample sizes of group X (NX) and group Y (NY) are 15. The maximal difference between the cumulative probability density of X (SX) and Y (SY) is 8/15 (0.533), which is greater than the rejection value of 0.467 under α = 0.05 (two tailed test) at NX = NY = 15. Therefore, there is a significant difference between the group X and group Y.
Example and Process of Jonckheere Test
| Group X | 9 | 13 | 14 | 18 | ||
| Group Y | 12 | 16 | 17 | 19 | 20 | |
| Group Z | 15 | 21 | 23 | 25 | 26 | |
| Number of [X < Y] | (UXY = 15) | 5 | 4 | 4 | 2 | |
| Number of [Y < Z] | (UYZ = 21) | 5 | 4 | 4 | 4 | 4 |
| Number of [X < Z] | (UXZ = 19) | 5 | 5 | 5 | 4 | |
| J = UXY + UYZ + UXZ + 15 + 21 + 19 = 55 | ||||||
| P (J ≥ 55) = 0.037 | ||||||
The test statistic J = 55 and P (J ≥ 55) = 0.035. Therefore, the null hypothesis (τ1 = τ2 = τ3) is rejected and the alternative hypothesis (τ1 ≤ τ2 ≤ τ3, with at least strict inequality) is accepted under α = 0.05.