STA4173: Biostatistics
Spring 2025
Today we have discussed that we turn to nonparametric tests when we do not meet distributional assumptions for t-tests.
If we do not meet the normality assumption for the paired t-test, we turn to the Wilcoxon signed rank.
Like in the dependent t-test, we will analyze the difference between two values.
Like in the Wilcoxon rank sum, we will be analyzing ranks.
Before ranking, we will find the difference between the paired observations and eliminate any 0 differences.
Note 1: elimniating 0 differences is the big difference between the other tests!
Note 2: because we are eliminating 0 differences, this means that our sample size will update to the number of pairs with a non-0 difference.
When ranking, we the differences are ranked based on the absolute value of the difference.
We also keep the sign of the difference.
X | Y | D | |D| | Rank |
---|---|---|---|---|
5 | 8 | -3 | 3 | - 1.5 |
8 | 5 | 3 | 3 | + 1.5 |
4 | 4 | 0 | 0 | ——— |
Hypotheses
Test Statistic & p-Value
Rejection Region
Conclusion/Interpretation
[Reject or fail to reject] H_0.
There [is or is not] sufficient evidence to suggest [alternative hypothesis in words].
wilcox.test()
function to perform the test,Hypotheses
Test Statistic and p-Value
Rejection Region
Conclusion/Interpretation
Fail to reject H_0.
There is not sufficient evidence to suggest that the median stock shares traded is greater for WBA than for MCD.
Today we reviewed the Wilcoxon signed rank test.
This completes Module 1.
Next: comparing three or more groups.