Istruzioni passo passo
Prepare Your Data
List your paired data points, ensuring they are related (e.g., before and after measurements).
Calculate the Differences
Calculate the difference between each pair of measurements.
Rank the Absolute Differences
Rank the absolute differences, ignoring the signs, and assign average ranks for ties.
Apply the Sign to the Ranks
Apply the original sign to each rank, maintaining the direction of difference.
Calculate the W Statistic
Sum the negative ranks to obtain the W statistic, which will be used to determine the p-value.
Determine the p-value
Look up the p-value in a Wilcoxon signed-rank test table or use software, considering the sample size and W statistic.
Introduction to the Wilcoxon Signed-Rank Test
The Wilcoxon signed-rank test is a non-parametric statistical test used to compare two related samples or repeated measurements on a single sample. It's a useful alternative to the paired t-test when the data doesn't meet the assumptions of normality.
Prerequisites
Before performing the Wilcoxon signed-rank test, ensure you have:
- Paired data (e.g., before and after measurements)
- The data is not normally distributed or you're unsure about the distribution
Performing the Wilcoxon Signed-Rank Test Manually
To perform the test manually, follow these steps:
Step 1: Prepare Your Data
List your paired data points. For example, let's say we have the following before and after measurements for a weight loss program: (75, 70), (80, 78), (85, 82), (70, 68), (90, 88).
Step 2: Calculate the Differences
Calculate the difference between each pair of measurements. Using our example: -5, -2, -3, -2, -2.
Step 3: Rank the Absolute Differences
Rank the absolute differences, ignoring the signs. If there are ties, assign the average of the tied ranks. For our example, the absolute differences are: 5, 2, 3, 2, 2. Ranked, they become: 5 (rank 4), 2 (rank 1.5), 3 (rank 3), 2 (rank 1.5), 2 (rank 1.5). Since there are ties, the ranks for the 2s become (1+2+3)/3 = 2.
Step 4: Apply the Sign to the Ranks
Apply the original sign to each rank. For our example: -4, -2, -3, -2, -2.
Step 5: Calculate the W Statistic
The W statistic (also known as the T statistic in some texts) is the sum of the negative ranks. From our example: -4 + (-2) + (-3) + (-2) + (-2) = -13.
Step 6: Determine the p-value
The p-value can be looked up in a Wilcoxon signed-rank test table or calculated using software. For small samples, tables are typically used. The p-value indicates the probability of observing the test results assuming that the null hypothesis is true.
Common Mistakes to Avoid
- Incorrectly ranking tied values
- Forgetting to apply the original sign to the ranks
- Using the wrong table or software for determining the p-value
When to Use a Calculator
While manual calculations are educational, for convenience and accuracy, especially with large datasets, using a Wilcoxon test calculator is recommended. It saves time and reduces the chance of human error.