Processing...

` = "Wilcoxon signed rank test"`

Enter a value for all fields

The **Wilcoxon Signed Rank Test** calculator provides the Wilcoxon statistics and critical value for two groups of numeric observations based on an alpha value and whether it's a one or two tailed test.

**INSTRUCTIONS:** Enter the following:

- (
**Group 1, Group 2**) Table of comma separated values for group 1 and 2. - (
**Tails**) Choose 1 or 2 for either a one or two tailed test. - (
**α**) Choose an alpha value from the list for the statistical test.

**Wilcoxon Stat and Critical Value:** The calculator will return the Wilcoxon statistic (**W _{stat}**) and the critical value (

The **Wilcoxon signed rank test** is a non-parametric alternative to the paired samples t-test (Gravetter and Wallnau, 2013) that is useful when one or both of the observation groups are not normally distributed. Just like a paired-samples design, it measures the difference between two treatments on a sample that receives both treatments. Since it is non-parametric, it is only used if the data fail to meet the parametric assumptions; for instance, the data might not create a normal distribution. Therefore, instead of using the data points in the formula, the Wilcoxon test assigns every value a rank and uses the rank to compute the **W value**.

The numbers in the above table match the tutorial in the following YouTube video: CLICK HERE.

The null hypothesis is in regard to the median of the two groups:

Ho Median_{Group1} = Median_{Group2}

**Steps:**

- Confirm that Group 1 has the same number as Group 2 and that the scores are paired (this means that the first score from Group 1 should come from the same participant as the first score from Group 2 and that all other scores should be entered similarly as pairs). The number of pairs (n) is used to look up the critical value (Tcrit) which is 13 in the example above.
- Compute the difference between the pairs in the group. This is the Difference column above.
- Compute the absolute value of the differences. This is the AbsVal column above.
- Rank the absolute values from smallest to greatest (see Ranking Special Cases).
- Sum up the ranks for the positive differences (S+) and the negative difference (S-). The Wilcoxon Stat (Wstat) is the smaller of the two. In the case above, S- is 16 (gray area above) and S+ is 75

If you look up the Critical Value for a Wilcoxon two tailed test with alpha equal 0.05, you'll see a critical value of 17. Since Wstat of 16 is less than Wcrit of 17, the null hypothesis is rejected.

- Omit ranking anything with a zero value.
- Use an average ranking for repeated values. For example if the 3rd, 4th, 5th, 6th ranks all had the same score, all of their ranks would be 4.5, which is the average rank.

We will walk through another in-depth example of this so you can understand exactly how to perform a Wilcoxon signed rank test, if you need to. For this we will create a hypothetical set of data in vCalc called "Effects of Pain Relievers A and B" located HERE. This example will explain a 10-rank Wilcoxon test, but you can do it with any number of ranks.

The first step to perform a Wilcoxon signed rank test is to convert your data from values into **ranks**. The ranks are based on the **absolute values of the differences **between the two treatments. To do this for the Pain Relievers example, we order the differences (which are -3, 3, 2, -5, -2, 11, -1, -8, 3, -6) in ascending order using the absolute values: 1, 2, 2, 3, 3, 3, 5, 6, 8, 11. And the ranks are assigned in ascending order, with 1 corresponding to 1 and 10 corresponding to 11.

If two or more of your values are the same, they are **tied scores**, and there are special instructions for ranking them. In the Pain Relievers example, we have two scores of 2 and three scores of 3. To get the tied rank, we simply take the average of the position ranks. For the scores of 2, the position ranks are 2 and 3. `2 + 3 = 5`, `5 /2 = 2.5.` For the scores of 3, the position ranks are 4, 5, and 6. `4 + 5 + 6 = 15`, `15 /3 = 5`. **The final ranks used for this dataset are: 1, 2.5, 2.5, 5, 5, 5, 7, 8, 9, 10.**

After the absolute values have been ranked, they have to be separated into the ranks associated with positive differences and those with negative differences. For the Pain Relievers example, the positive differences are 3, 3, 2, and 11. These values correspond to the ranks of 2, 5, 5, and 10. The other values are classified as negative differences, and the ranks are 1, 2, 5, 7, 8, and 9.

Next we have to add up the positive and negative difference ranks separately to get two **sums of ranks**, or `sum R`s. The `sum R` for the positive differences is `2.5 + 5 + 5 + 10 = 22.5`. The `sum R` for the negative differences is `1 + 2.5 + 5 + 7 + 8 + 9 = 32.5`.

The Wilcoxon T value is the smaller of the two sums of ranks. In this case, the Wilcoxon **T = 22.5.**

Now that we have obtained a T value of 22.5, we have to consult a Wilcoxon table of T values**.** On this table, the critical T indicates the maximum value for there to be significance; **obtained T values must be equal to or less than the value in the table in order for results to be considered significant**. For a sample of 10, we see the critical T at alpha = .05 for a two-tailed test is 8, and for a one-tailed test is 10. We have a T value of 22.5, which means we do not have a significant Wilcoxon signed rank test.

Gravetter, F. J., & Wallnau, L. B. (2013). *Statistics for the Behavioral Sciences*. Wadsworth, CA: Cengage Learning.

The **Psychology and Statistics Calculator** contains useful tools for Psychology Students. The psychology statistics functions include the following:

**Wilcoxon Signed Rank Test**: Enter two sets, whether it's a one or two tail test and an alpha value to see the Wilcoxon statistic and the critical value.**Bayes' Theorem for Disease Testing**: Enter a base rate probability, probability of false positives and the probability of correct positives to see a ratio of people with the disease, approximate number of false and true positives and the theorem's percent likelihood of a having the disease if tested positive.**chi-square Test**: Enter a 3x2 matrix to see the expected values matrix with row and column totals, degrees of freedom and the chi-square value.**Rescorla-Wagner Formula (alpha and beta version)**: Enter salience for conditional stimuli, rate of unconditional stimuli, maximum conditioning for unconditioned stimuli and the total associative strength of all stimuli present to see the change in strength between conditional and unconditional stimuli.**Rescorla-Wagner Formula (k version)**: Enter Maximum conditioning possible for the unconditioned stimuli, total associative strength of all stimuli present, combined salience of the conditioned and unconditioned stimuli, and number of trials to see the change in strength associated with the trials.**Ricco's Law**: Enter the area of visually unresolved target and constant of background luminance when eyes are adapted to see Ricco's Law factor.**Ricco's Law (K variable)**: Enter the scotopic vision constant, background luminance and photopic vision constant.**Stevens' Power Law**: Enter proportionality constant, magnitude of stimulation, type of stimulation exponent to see magnitude of sensation.**Weber Fraction**: Enter just-noticeable difference for intensity and stimulus intensity to see the weber fraction.**Weber-Fechner's Law**: Enter just-noticeable difference for intensity, instantaneous stimulus, stimulus intensity and the threshold to see the factor.**Random Integer:**This provides a random number (integer) between a lower and upper bound.**Observational Statistics (aka Simple Stats)**: Observational statistics on a set including: count, min, max, mean, median, mode, mid-point, range, population and sample variance and standard deviation, mean absolute deviation, standard deviation of mean, sum of values, sum of squared values, square of the sum, and the sorted set.**Frequency Distribution**: Frequency distribution of a set of observations in uniformly sized bins between a minimum and maximum.**Least-squares Trend Line (aka Linear Regression)**: Linear regression line on a set of paired numbers and see (r) the correlation coefficient,(n) number of observations, (μX) mean of the X values, (μY) mean of Y values, (ΣX) sum of the X values, (ΣY) sum of the Y values, (Σ(X⋅Y) ) sum of the X*Y product values, (ΣX^{2}) sum of X^{2}values, (ΣY^{2}) sum of Y^{2}values, (a) y intercept of regression line, and (b) slope of regression line.**Single-Sample t-test:**t-Test parameters including alpha level, population mean and whether it's one or two tailed and see the degrees of freedom, critical t-value, t score and the standard error.**Paired Sample t-test**: Test of two sets of values with an alpha level and whether it's one or two tailed and see the number of observations, mean and standard deviation for both sets, the degrees of freedom, critical t-value, t-score and the Standard Error value.**Effect Size (r-squared)**: Enter a t-test result and the degrees of freedom to see r^{2}.**Effect Size (Cohen's d):**Enter the mean from two groups and the estimated standard deviation to see the effective size.**Analysis of Variance (one way)**: ANOVA for numeric observations of three groups. Computes the F Score, Numerator: degrees of freedom Between, Denominator: degrees of freedom Within, mean of each group, grand mean, total sum of squares, sum of square within and between, and variance within and between.

**Observational Stats**: This function accepts a table of numbers separated by commas and calculates observational statistics for any of the columns. This includes count, min, max, sum, sum of squares (Σx²), square of the sum (Σx)², mean, median, mode, range, mid point, rand, sort up, sort down, rand, population variance, population standard deviation, the sample/experimental variance, sample/experimental standard deviation.**Frequency Distribution**: This function lets you enter a string of numbers separated by commas, a low and high range and a number of bins. It then computes how many of the observations are in each of the bins between the high and low values designated.**Paired Sample t-test**: This computes the various parameters associated with the Paired Sample t-test.**ANOVA (one way)**: The is one way analysis of variance**(χ**This computes the Chi-Square value for an nxm array of data and provides the degrees of freedom.^{2}) Chi-Square Test:**Linear Regression**: This computes the regression line (least-squares) through a set of X and Y observations. It also computes the regression coefficient (r).**y = a + bx**: This is linear equation used with Linear Regression to predict values of Y.**Wilcoxon Signed Rank Test**: This provides the Wilcoxon statistics and critical value for two groups of numeric observations based on an alpha value and whether it's a one or two tailed test.- Slope-Intercept form of a Line based on two points.
- Slope between two points
- Range value based on the slope-intercept formula of a line and a value of the domain.
- Compute the Probability between z SCORES
- College Level Statistics Calculator (Stat Calc).
- Count of Observations in a Set - this is the number (n) of values in a set.
- Minimum Value in a Set - this is the minimum observed value
- Maximum Value in a Set- this is the maximum value in the set.
- Numeric Sort (up and down) - this returns a comma separated list of the observations in ascending or descending order.
- Create a random subset of the a list of numeric values
- Random number from a range you specify
- Frequency distribution of data.
- Σx - this is the sum of the values in a set.
- Σx² - this is the sum of the squared values
- (Σx)² - this is the square of the summed values.
- Mean
- Median - the middle ordered value
- Mode - the most recurring observation
- Mid Point in a Set - this is the mid point of the observation range.
- Range in a Set - this is the difference between the max and the min.
- Population Variance of the values
- Population standard deviation of the values
- Sample Variance of the values
- Sample Standard Deviation of the values
- Compute the z SCORE based on the mean and standard deviation
- Compute the z SCORE in a set of observations
- Compute the percentile of a single observation (y) in a set (X)
- SDOM - standard deviation of mean
- Percent Relative Standard Deviation