Parametric and nonparametric tests and use of nonparametric tests
Parametric Tests |
Nonparametric Tests |
|
Tests concerning a single mean |
t-test, z-test |
Wilcoxon signed-rank test |
Tests concerning differences between means |
t-test, approximate t-test |
Mann-Whitney U test |
Tests concerning mean differences (paired comparison tests) |
t-test |
Wilcoxon signed-rank test, Sign test |
Tests concerning correlation: The Spearman Rank Correlation Coefficient: Correlation measures the strength of the linear relationship between two variables. The t-test for the hypothesis testing relies on fairly stringent assumptions. When the assumptions are violated, then we use the test based on the Spearman rank correlation coefficient. The Spearman rank correlation coefficient, rs, is equivalent to the correlation coefficient calculate don the ranks of the two variables within their respective samples. Its understanding is similar to the actual correlation coefficient i.e. a coefficient of zero means the absence of any straight-line relationships between the variables.
Steps in the calculation of the Spearman rank correlation coefficient:
(1) Rank the observation on X and Y separately from largest to smallest. Assign the number 1 to the largest value and 2 to the second largest value and so on. In the case of ties, assign the average of the ranks to the tied observations. For example, if 4th and 5th observations are tied, then we will assign them a rank of 4.5.
(2) Calculate the difference (di) between the ranks of each pair of observations on X and Y.
(3) Calculate the Spearman coefficient, rs = 1 - [6∑di2 /n(n2 - 1)]
The rejection points for the null hypothesis calculated similarly to that of t-test for a particular level of significance.
If the sample size is large (n>30), then we can conduct a t-test using the below formula.
t = (n-2)1/2rs/(1-rs2)1/2 with n-2 degrees of freedom