Wilcoxon Signed-Rank Test
 The logic and computational details of the Wilcoxon test are described in Subchapter 12a of Concepts and Applications.
For n=.

Like the t-test for correlated samples, the Wilcoxon signed-ranks test applies to two-sample designs involving repeated measures, matched pairs, or "before" and "after" measures. Beginning with a set of paired values of Xa and Xb, this page will
• take the absolute difference |Xa−Xb| for each pair;
• omit from consideration those cases where |Xa−Xb|=0;
• rank the remaining absolute differences, from smallest to largest, employing tied ranks where appropriate;
• assign to each such rank a "+" sign when Xa−Xb>0 and a "−" sign when Xa−Xb<0;
• and then calculate the value of W for the Wilcoxon test, which in the present version of the procedure is equal to the sum of the signed ranks. The number of signed ranks, here designated as ns/r, is equal to the number of XaXb pairs with which you begin minus the number of pairs for which |Xa−Xb|=0.
When ns/r is equal to or greater than 10, the sampling distribution of W is a reasonably close approximation of the normal distribution. In this case, the present page calculates the appropriate z-ratio along with the associated one-tail and two-tail probabilities. For smaller sample sizes (ns/r = 5 through 9), the obtained value of W can be referred to the separate table of critical values of ±W.
Procedure:
• Direct Entry into Data Cells:T
Enter the values of Xa and Xb into the cells of the designated columns, beginning in the top-most cell of each column. After each entry, depressing the «tab» key will take you down to the next cell in the column. After all values of Xa and Xb have been entered in this fashion, scroll down to the button labeled «Calculate» and click it. T
• Importing Data via Copy & Paste:T
When importing data from a spreadsheet, the paired values of Xa and Xb must be in the form of two adjacent columns. Within the spreadsheet application, select and copy the two columns of data for Xa and Xb. Then return to your web browser, click the cursor into the text area of the Import/Export Box and perform the 'Paste' operation from the 'Edit' menu. After pasting the data, make sure that the final entry is not followed by an extra blank line. To do this, click the cursor immediately to the right of the final entry in the list, then press the down-arrow key. If an extra line is present, the cursor will move downward. Extra lines can be removed by pressing the down-arrow key until the cursor no longer moves, and then pressing the 'Backspace' key (on a Mac platform, 'delete') until the cursor stands immediately to the right of the final entry. After this data-check procedure has been performed, click the line labeled 'Import data to data cells', then click the «Calculate» button.T
• If you wish to perform another analysis with a different set of data: click the «Reload» button and enter the new value of n at the prompt.

Data EntryQ
 Data Cells S/R of |Xa−Xb| Import/Export Box S/R  ="signed rank" Pairs Xa Xb Xa and Xb Clear this box Import datato data cells
 W= ns/r= P(1-tail) P(2-tail) z=
Critical Values of ±W for Small SamplesQ
 Level of Significance for a Directional Test .05 .025 .01 .005 Non-Directional Test ns/r -- .05 .02 .01 5 15 -- -- -- 6 17 21 -- -- 7 22 24 28 -- 8 26 30 34 36 9 29 35 39 43
Please note that these small-sample critical values pertain to the version of the Wilcoxon test in which the test statistic, W, is calculated as the sum of all the signed ranks, positive and negative combined. Descriptions of this version of the Wilcoxon test can be found in Subchapter 12a of Concepts and Applications of Inferential Statistics and in
Frederick Mosteller & Robert E. K. Rourke, Sturdy Statistics: Nonparametrics and Order Statistics, Addison-Wesley, 1973, 89ff.

 Home Click this link only if you did not arrive here via the VassarStats main page.