Running a Wilcoxon signed rank test on two paired samples with XLSTAT

Dataset for Non parametric Tests on two paired samples XLS19.0 KB

Tutorial video
Non parametric Tests on two paired samples is part of:
Download Trial version More details See users' feedback


  • Easy and user-friendly
    Easy and user-friendly XLSTAT is flawlessly integrated with Microsoft Excel which is the most popular spreadsheet worldwide. This integration makes it one of the simplest available tools to work with as it utilizes the same philosophy as Microsoft Excel. The program is accessible in a dedicated XLSTAT tab. The analyses are grouped into functional menus. The dialog boxes are user-friendly and setting up an analysis is straightforward.
  • Data and results shared seamlessly
    Data and results shared seamlessly One of the greatest advantages of XLSTAT is the way you can share data and results seamlessly. As the results are stored in Microsoft Excel, anyone can access them. There is no need for the receiver to have an XLSTAT license or any additional viewer which makes your team-work easier and more affordable. In addition, results are easily integrable into other Microsoft Office software such as PowerPoint, so that you can create striking presentation in minutes.
  • Modular
    Modular XLSTAT is a modular product. XLSTAT-Pro is a core statistical module of XLSTAT which includes all the mainstream functionalities in statistics and multivariate analysis. More advanced features contained in add-on modules can be added for specific applications. This way you can adapt the software to your needs making the software more cost-efficient.
  • Didactic
    Didactic The results of XLSTAT are organized by analysis and are easy to navigate. Moreover useful information is provided along with the results to assist you in your interpretation.
  • Affordable
    Affordable XLSTAT is a complete and modular analytical solution that can suit any analytical business needs. It is very reasonably priced so that the return of your investment is almost immediate. Any XLSTAT license comes with top level support and assistance.
  • Accessible - Available in many languages
    Accessible - Available in many languages We have ensured XLSTAT is accessible to everyone by making the program available in many languages, including Chinese, English, French, German, Italian, Japanese, Polish, Portuguese and Spanish.
  • Automatable and customizable
    Automatable and customizable Most of the statistical functions available in XLSTAT can be called directly from the Visual Basic window of Microsoft Excel. They can be modified and integrated to more code to fit to the specificity of your domain. Adding tables and plots as well as modifying existing outputs becomes easy. Furthermore, XLSTAT includes some special tools on the dialog boxes to generate automatically the VBA code in order to reproduce your analysis using the VBA editor or to simply load pre-set settings. This effortless automation of routine analysis will be a huge time saver on your part.

Principle of the Wilcoxon signed test

The Wilcoxon test is a non parametric test that allows to compare two paired samples.

Two tests have been proposed for the cases where samples are paired: the sign test and the Wilcoxon signed rank test.

The sign test is based on a simple principle: we compare the number of cases where the first sample is greater than the second sample to the number of cases where the second sample is greater that the first sample. The disadvantage of the sign test is that it does not take into account the size of the difference between each pair, data which is often available.

Wilcoxon proposed a test which takes into account the size of the difference within pairs. This test is called the Wilcoxon signed rank test, as the sign of the differences is also involved.

Dataset for a sign test and a Wilcoxon signed rank test

An Excel sheet with both the data and the results can be downloaded by clicking here.

The data correspond to an experiment in which depression is studied. Patients have been followed at two different times (0: pre-test and 6: 6 months follow-up). The variable to be compared is a depression score.

The goal of this tutorial is to compare the two periods with respect to the depression score.

Setting up a sign test and a Wilcoxon signed rank test on two paired samples

Once XLSTAT-Pro is activated, select the XLSTAT / Nonparametric tests / Comparison of two samples (Wilcoxon, Mann-Whitney, ...) command, or click on the corresponding button of the Nonparametric test menu (see below).

menu test mann whitney 

Once you've clicked the button, the dialog box appears. You can then select the data on the Excel sheet. Select the paired samples option.

 dialog box test wilcoxon general

In the options tab, we suppose that the difference between samples is equal to 0. XLSTAT allows to compute the exact p-value for this test, we will not use it in this tutorial and will use the classical approximation of the p-value.

 dialog box test wilcoxon options

After you have clicked on the OK button, the results are displayed on a new Excel sheet (because the Sheet option has been selected for outputs).

Interpreting the results of a sign test and a Wilcoxon signed rank test on two paired samples

The first results displayed are the statistics for the samples.

For the sign test, we can see that the null hypothesis of equality is rejected. We can consider that patient state of depression has evolved.

results test sign test

Regarding the Wilcoxon signed rank test, the hypothesis is also rejected, which confirm the results of the sign test.

results test wilcoxon test