EXAMPLE 9 Calculating the Wilcoxon signed ranks
The California Community Colleges Chancellor's Office publishes enrollment data for each of its community colleges. Table 7 contains the number of students enrolled in the Spring 2013 and the Spring 2014 semesters at a random sample of six community colleges in California. We are interested in testing whether the median number of enrolled students has declined from 2013 to 2014. That is, we are interested in testing whether the population median of the differences (2014 – 2013) is less than zero.
Solution
Calculate the signed ranks as follows:
Community college |
Enrollment Spring 2013 |
Enrollment Spring 2014 |
Difference (2014 – 2013) |
Rank of |
Signed rank |
|
---|---|---|---|---|---|---|
Los Angeles CC | 148,754 | 148,362 | –392 | 392 | 3 | –3 |
Santa Monica CC | 31,719 | 31,437 | –282 | 282 | 2 | –2 |
El Camino CC | 22,657 | 22,791 | 134 | 134 | 1 | 1 |
North Orange CC | 51,780 | 53,993 | 2,213 | 2,213 | 5 | 5 |
Foothill CC | 34,415 | 33,574 | –841 | 841 | 4 | –4 |
Los Rios CC | 75,230 | 71,911 | –3,319 | 3,319 | 6 | –6 |
The sum of the positive sign ranks is
The sum of the negative signed ranks is