Nonparametric Tests

Learn what to do when the data do not fit the assumptions of t tests, ANOVA or Pearson correlation. Rank data correctly and run the Mann–Whitney U, Wilcoxon signed-rank, Kruskal–Wallis and Friedman tests by hand and in software, with follow-up comparisons and effect sizes. Measure monotonic relationships with Spearman's and Kendall's correlations, meet permutation tests and the bootstrap, and choose and report the right test for a study design.

IntermediateLesson 7 of 10 in Intermediate Statistics – Regression and ANOVA Course

What you will learn

  1. Recognize when the assumptions of t tests, ANOVA and Pearson correlation are in doubt, turn data into ranks correctly, and understand how rank tests produce exact and approximate p-values.
    • Recognize when parametric assumptions are in doubt
      Explain what parametric and nonparametric tests assume, when a rank-based test is worth using, and what it gives up and gains.
    • Rank data correctly, including tied values
      Assign ranks to the right set of observations, give tied values their average rank, and check the ranks before using them.
    • Find p-values from ranks: exact distributions and normal approximations
      Explain how the null distribution of a rank statistic comes from equally likely rank arrangements, when small samples limit what can be detected, and how large-sample approximations, continuity corrections and tie corrections work.
  2. Run, interpret and report the Mann–Whitney U test for two independent groups and the Wilcoxon signed-rank test for paired data, with effect sizes and the conditions under which each answers your question.
    • Run the Mann–Whitney U test by hand
      Rank two independent samples together, compute the rank sums and U, and make a decision with an exact table or p-value.
    • Interpret the Mann–Whitney test with large samples and effect sizes
      Use the normal approximation, compute and interpret effect sizes, estimate the size of the shift, and state correctly what the test compares.
    • Run the Wilcoxon signed-rank test for paired data
      Compute the differences for paired observations, rank their absolute values, add the signed ranks and decide, including the one-sample version.
    • Handle zeros, ties, large samples and effect sizes in paired designs
      Deal with zero and tied differences, use the normal approximation, compute effect sizes for the signed-rank test, and use the sign test when only the direction of change is reliable.
  3. Use the Kruskal–Wallis test for independent groups and the Friedman test for repeated measures, follow a significant result with corrected pairwise comparisons, and report effect sizes.
    • Run the Kruskal–Wallis test
      Rank all observations together, compute H from the group rank sums, compare it with a chi-square distribution and interpret the result.
    • Follow up a significant Kruskal–Wallis result
      Locate the differences with Dunn's test or corrected pairwise Mann–Whitney tests, control the familywise error rate and report effect sizes.
    • Run and follow up the Friedman test for repeated measures
      Rank the conditions within each participant, compute the Friedman statistic and Kendall's W, and follow a significant result with corrected pairwise tests.
  4. Compute, test and interpret Spearman's rank correlation and Kendall's tau, and know when each is preferred to Pearson's correlation.
    • Compute and interpret Spearman's rank correlation
      Rank each variable, compute r_s, test it and recognize what a monotonic relationship is and is not.
    • Compute and interpret Kendall's tau
      Count concordant and discordant pairs, compute tau-a and tau-b, test tau, and compare it with Spearman's correlation.
  5. Use permutation tests to build a null distribution by reshuffling group labels, and use the bootstrap to estimate sampling variability and confidence intervals, knowing what each method assumes.
    • Run a permutation test
      Explain the logic of reshuffling labels under the null hypothesis, compute an exact permutation p-value for a small example and use random reshuffles for larger data.
    • Estimate with the bootstrap
      Resample with replacement to approximate a sampling distribution, build a percentile confidence interval, and recognize the limits of the bootstrap.
  6. Match a study design and data type to the right rank or resampling method, read the output of common statistics programs, and report the results clearly in APA style.
    • Choose a test for the design and the data
      Work through the outcome type, the design and the number of groups to pick a test, weigh the alternatives, and avoid choosing tests after seeing the results.
    • Read software output and report results
      Find the statistic, p-value and effect size in SPSS, jamovi, JASP and R output, recognize when programs label the same test differently, and write an APA-style report.

Nonparametric Tests study guide

6 chapters

1

Decide when rank-based tests are the right tool

Rank tests keep the order of observations while reducing the influence of extreme distances between them. Choosing one starts with the research question and the study design. This chapter explains when ranking helps, how to assign ranks without losing track of ties, and how a rank statistic becomes a p-value. Small samples get special attention because an exact test can have too few possible outcomes to detect an effect at the chosen significance level.

1.1 Recognize when parametric assumptions are in doubt

A parametric test assumes the data come from a population with a particular form, described by a few parameters. The independent-samples t test and one-way ANOVA assume independent observations, roughly normal data within each group (or normally distributed residuals) and, in their classic forms, equal variances. The paired t test assumes that the pairs are independent of one another and that the within-pair differences are roughly normal; the two measurements in a pair may be related and need not have equal variances. A nonparametric or distribution-free test does not assume a specific population shape such as the normal distribution. The tests in this unit work with the order of the observations (their ranks) or with resampling.

When ranks help

Consider a rank-based test when: the outcome is ordinal, so the distances between scores are not known to be equal (ranks, a single 1–5 rating item, ordered categories such as "mild, moderate, severe"); samples are small and clearly skewed or heavy-tailed; or genuine extreme values would dominate a mean. A clear signal is a histogram or Q–Q plot of each group that shows strong skew or outliers in a sample of, say, 5 to 15 observations.

With moderately large samples, the central limit theorem makes the sampling distribution of a mean close to normal even when the data are not normal, so t tests and ANOVA often remain trustworthy. A skewed histogram alone does not force a rank test. When the main problem is unequal variances in roughly normal data, Welch's t test or Welch's ANOVA addresses it directly.

A claim such as "Run a Shapiro–Wilk test; if p<.05, switch to a nonparametric test." misses an important distinction. with large samples, a normality test flags tiny departures that do not matter, and with small samples it misses large ones. Base the choice on the measurement level, the design, plots of the data and the question you want to answer, and decide before looking at the test results.

What the test still assumes

A claim such as "Nonparametric tests have no assumptions." misses an important distinction. they still require random sampling or random assignment, observations that are independent except for any planned pairing or blocking, and an outcome that can be put in order. Some interpretations need more: reading a Mann–Whitney result as a difference in medians requires distributions of the same shape, and reading a Wilcoxon signed-rank result as a test of the median difference requires roughly symmetric differences.

Ranking keeps the order of the values and discards the distances between them. In the times 26, 29, 31, 34 and 118 seconds, the value 118 receives rank 5, exactly as 35 would. This is why rank tests resist outliers, and also why they use less of the information in interval data.

Information and power

Rank tests are not always weaker. When the data really are normal, the Wilcoxon and Mann–Whitney tests have an asymptotic relative efficiency of 3/π≈0.955 compared with the t test: in large samples they need about 5% more observations for the same power. When one distribution is a shifted copy of the other and the data are continuous with finite variance (for the signed-rank test, with differences symmetric around their center), this efficiency never falls below about 0.864, and for heavy-tailed data with outliers it can be well above 1, so the rank test is then the more powerful choice.

Each rank test has a parametric counterpart: two independent groups — Mann–Whitney U test (independent-samples t test); two related measurements — Wilcoxon signed-rank test (paired t test); three or more independent groups — Kruskal–Wallis test (one-way ANOVA); three or more related conditions — Friedman test (repeated-measures ANOVA); association between two variables — Spearman's rs or Kendall's τ (Pearson's r). Permutation tests and the bootstrap use resampling instead of a formula for the null distribution.

Rank tests answer a slightly different question from their parametric partners. A t test compares means; a rank test asks whether values in one group or condition tend to be larger than in another. These coincide only under extra conditions, so state the hypothesis the chosen test actually tests.

Key Takeaways

  • Choose from the outcome scale, design, plots and research question.
  • Rank tests retain order and discard distances.
  • Independence still matters; planned pairs and blocks must be preserved.
  • Welch’s methods address unequal variances when means are the target.
  • Normality-test significance alone is a poor switching rule.
  • Under normality, large-sample rank-test efficiency is about .955 relative to the t test.

1.2 Rank data correctly, including tied values

To rank a set of observations, order them from smallest to largest and give the smallest rank 1, the next rank 2, and so on up to the number of observations N. For the Mann–Whitney, Kruskal–Wallis and Friedman tests, ranking from largest to smallest gives the same two-sided result but reverses the meaning of high and low ranks, so state the direction when you interpret mean ranks. The Wilcoxon signed-rank test is different: rank 1 always goes to the smallest nonzero absolute difference, because the test gives larger differences more weight. Reversing those ranks changes the result; in the anxiety example (scores before and after a breathing course) it would turn p≈.023 into p≈.148.

Choose the ranking pool

Which values are ranked together depends on the test: all groups pooled into one list (Mann–Whitney, Kruskal–Wallis); the absolute values of the paired differences (Wilcoxon signed-rank); the values within each participant or block separately (Friedman); each variable on its own (Spearman and Kendall).

Give ties their average rank

Tied values receive the mean of the ranks they would occupy, called the midrank or average rank. For the values 3, 5, 5, 7, 7, 7, 9: the two 5s would take ranks 2 and 3, so each gets 2.5; the three 7s would take ranks 4, 5 and 6, so each gets 5; the 9 gets rank 7. The ranks are 1, 2.5, 2.5, 5, 5, 5, 7.

Check the ranks with the sum 1+2+⋯+N=N(N+1)2, which midranks do not change. For the seven values above, 7×82=28 and 1+2.5+2.5+5+5+5+7=28. A wrong total reveals a skipped value or a tie handled incorrectly.

giving tied values the lowest shared rank (both 5s get rank 2) or numbering them consecutively (2 and 3). Both change the rank sums and the test statistic; use midranks.

Read ranks in context

Ordinal outcomes produce many ties. If 20 people answer a 1–5 satisfaction item, each answer value is shared by several people, and software then applies a tie correction to the test. Recording data more coarsely than they were measured, for example rounding reaction times to whole seconds, creates ties that need not exist.

Ranks are ordinal: a mean rank describes a group's average position in the combined ordering, not an amount in the original units. A mean rank of 6.4 does not mean 6.4 errors or 6.4 seconds; report medians in the original units alongside mean ranks.

Key Takeaways

  • Use midranks for ties.
  • Check that pooled ranks sum to N(N+1)/2.
  • The ranking pool depends on the test.
  • A mean rank has no original measurement unit.

1.3 Find p-values from ranks: exact distributions and normal approximations

If the null hypothesis is true and the data are continuous, every way of sharing the ranks among the groups is equally likely. Listing all arrangements gives the exact null distribution of the test statistic. With two groups of 3, there are (63)=20 ways to choose which ranks go to group 1, so each arrangement has probability 120.

Small samples have discrete limits

Small samples limit the smallest p-value a rank test can give. With two groups of 3, the most extreme outcome (group 1 holding ranks 1, 2, 3, or 4, 5, 6) has two-sided p=220=.10, so the test cannot reach significance at the .05 level whatever the data. With two groups of 4, the smallest two-sided p-value is 270≈.029. Check this before collecting a very small sample.

Exact tables list critical values. For the Mann–Whitney U and Wilcoxon signed-rank statistics, small values are extreme, so you reject H0 when the statistic is less than or equal to the critical value. For two groups of 5 and 6 at α=.05 two-tailed, the critical U is 3: P(U≤3) doubled is about .030, while P(U≤4) doubled is about .052.

Approximate a null distribution

For larger samples, the rank statistic is approximately normal under H0 with a known mean and standard deviation, so z=statistic−meanSD is compared with the standard normal distribution: ∣z∣≥1.96 gives p≤.05 two-tailed. The Kruskal–Wallis and Friedman statistics are compared with a chi-square distribution with k−1 degrees of freedom instead.

A continuity correction moves the statistic 0.5 toward its null mean before computing z, because the statistic moves in steps while the normal curve is continuous. Some software applies it by default (R's wilcox.test does when it uses the normal approximation) and some does not, so two programs can report slightly different p-values for the same data.

Ties make the rank statistics vary less than the no-ties formulas assume. The tie correction reduces the standard deviation (or, for Kruskal–Wallis and Friedman, divides the statistic by a factor smaller than 1), which makes the result slightly more significant. Software applies it automatically; by hand it matters most when many values are tied.

Choose and report the p-value method

Exact p-values come in steps, so the actual chance of a false rejection at the .05 level is usually somewhat below .05. This is a property of discrete statistics, not an error in the exact p-value.

Report how the p-value was obtained. For small samples prefer an exact p-value when the software offers one: R's wilcox.test selects exact inference for small samples; check the output and the installed version’s handling of ties and zeros, and SPSS labels the large-sample p-value "Asymp. Sig." and an exact one "Exact Sig." For larger samples, the normal or chi-square approximation is standard.

Key Takeaways

  • Exact p-values count equally likely null arrangements.
  • Two groups of 3 cannot reach a two-sided exact p-value below .05.
  • Continuity correction moves a discrete statistic toward its null mean.
  • Tie corrections account for reduced rank variability.
  • Report exact, Monte Carlo or asymptotic inference explicitly.
2

Compare two groups or two conditions with rank tests

Two independent samples and two measurements from the same people call for different analyses. You will work through the Mann–Whitney test and the Wilcoxon signed-rank test, then connect their statistics to effect sizes and estimates in the original measurement units. Along the way, keep track of group order, the direction of subtraction, zero changes and tied ranks: each affects what a reported number means.

2.1 Run the Mann–Whitney U test by hand

The Mann–Whitney U test compares two independent groups on an outcome that is at least ordinal. It is the same test as the Wilcoxon rank-sum test; the two names report different but equivalent statistics (the rank sum W or the count U), and together they are called the Wilcoxon–Mann–Whitney test.

State the comparison

Hypotheses: H0: the two populations have the same distribution, so a randomly chosen value X from group 1 is as likely to be larger than a value Y from group 2 as to be smaller: P(X>Y)=P(X<Y). Without ties this means P(X>Y)=0.5; with ties, counting a tie as half, P(X>Y)+12P(X=Y)=0.5. H1 (two-sided): values in one population tend to be larger, so this tie-adjusted probability differs from 0.5. A tie-adjusted probability of exactly 0.5 does not by itself show that the distributions are identical.

From pooled ranks to U

Method: (1) pool the N=n1+n2 values and rank them, using midranks for ties; (2) add the ranks in each group to get R1 and R2; (3) compute U1=R1−n1(n1+1)2 and U2=R2−n2(n2+1)2; (4) check that U1+U2=n1n2; (5) compare the smaller U with a table, or find its exact p-value.

U has a direct meaning: U1 is the number of (group 1, group 2) pairs in which the group 1 value is larger, counting ties as half. So U ranges from 0 to n1n2, and under H0 its mean is n1n22.

Work through assembly times

Worked example: 11 volunteers learn to assemble a small shelf, 5 from a video and 6 from written instructions. Times in seconds — video: 26, 29, 31, 34, 37; text: 36, 40, 43, 47, 50, 118. Ranks — video: 1, 2, 3, 4, 6, so Rvideo=16; text: 5, 7, 8, 9, 10, 11, so Rtext=50. Check: 16+50=66=11×122.

Uvideo=16−5×62=1 and Utext=50−6×72=29; check 1+29=30=5×6. Uvideo=1 says that in only 1 of the 30 video–text pairs was the video learner slower (37 s against 36 s). The critical value for n1=5, n2=6 at α=.05 two-tailed is 3, and U=1≤3, so reject H0. The exact two-sided p-value is 4462≈.009. Video learners tended to finish faster (medians 31 s and 45 s).

The same data analyzed with Welch's t test give t≈−1.90, df≈5.2, p≈.11: the single value of 118 s raises the text group's standard deviation to about 30.9 s, so the t test does not detect the difference. In the rank test, 118 s is simply rank 11.

Keep group size and pairing straight

comparing the raw rank sums when the groups differ in size. A larger group collects a larger rank sum just by having more values. Compare U values or mean ranks instead: here 16 ÷ 5 = 3.2 for video and 50 ÷ 6 ≈ 8.33 for text.

Each participant must appear in one group only. If the same people were measured under both conditions, the observations are paired, and the Wilcoxon signed-rank test is the right rank test.

Key Takeaways

  • Pool independent groups before ranking.
  • Subtract each group’s minimum possible rank sum to obtain its U.
  • Check U1+U2=n1n2.
  • Use the smaller U with a matching two-sided critical-value table.
  • Mean ranks help describe direction when group sizes differ.

2.2 Interpret the Mann–Whitney test with large samples and effect sizes

Large-sample approximation: under H0, U has mean μU=n1n22 and standard deviation σU=n1n2(n1+n2+1)12, and z=U−μUσU is approximately standard normal. Example: n1=20, n2=25, U1=160. Then μU=250, σU=500×4612≈43.78, z≈160−25043.78≈−2.06, and two-sided p≈.040.

With ties, the variance is reduced to σU2=n1n212[(N+1)−∑(t3−t)N(N−1)], where each t is the number of values sharing one tied rank. Software applies this correction automatically.

Describe effect size and direction

Effect size r=zN, with N the total number of observations. In the large-sample example, r≈−2.0645≈−0.31, a medium effect by Cohen's guidelines for r (about .1 small, .3 medium, .5 large). The sign depends on which group's U you used, so describe the direction in words.

The probability of superiority (common-language effect size) is U1n1n2: the proportion of all cross-group pairs in which the group 1 value is larger, with ties counted as half. In the large-sample example it is 160500=.32, so the tie-adjusted proportions favor group 1 in .32 of comparisons and group 2 in .68; with no ties, these are the proportions strictly larger. In the shelf example, 2930≈.97 of video–text pairs had the text learner slower.

The rank-biserial correlation is rrb=U2−U1n1n2, which equals 2[P(Y>X)+12P(X=Y)]−1: twice the probability that the group 2 value is larger (ties counted as half), minus 1. It runs from −1 to 1, with 0 meaning neither group tends to be larger. Shelf example: rrb=29−130≈.93 in the direction of slower text learners; large-sample example: 340−160500=.36 in favor of group 2. jamovi and JASP report this effect size with the test.

Estimate a shift in seconds

The Hodges–Lehmann estimate of the shift between groups is the median of all n1n2 differences between a group 2 value and a group 1 value. For the shelf data, the median of the 30 text-minus-video differences is 13.5 s. Software can give it with a confidence interval (for example wilcox.test(..., conf.int = TRUE) in R).

Interpret the population comparison

A claim such as "The Mann–Whitney test compares medians." misses an important distinction. it tests whether one distribution tends to give larger values. When the two distributions have the same shape and spread and differ only by a shift, this is the same as comparing medians. When shapes or spreads differ, the test can be significant even though the medians are equal, so describe the result as one group tending to have higher (or lower) values unless the same-shape condition is plausible.

The Mann–Whitney test does not solve unequal spreads. If the groups have similar shapes but clearly different variances and the question concerns means, Welch's t test is the more suitable tool; if the question is whether a value from one group tends to exceed one from the other, the probability of superiority answers it directly.

Key Takeaways

  • Use tie-corrected variance when ties occur.
  • State the direction and denominator of each effect size.
  • The Hodges–Lehmann estimate uses all cross-group differences.
  • A median-shift interpretation needs comparable distribution shapes and spreads.

2.3 Run the Wilcoxon signed-rank test for paired data

The Wilcoxon signed-rank test is used for two related measurements: the same people measured twice, or matched pairs such as twins or patients matched on age. It works on the paired differences. It is the rank counterpart of the paired t test.

State the paired null

Hypotheses: H0: the distribution of differences is symmetric around 0. When the differences are symmetric, this is a test of whether the median difference is 0. H1 (two-sided): the differences tend to be positive or tend to be negative.

Calculate signed ranks

Method: (1) compute every difference in one fixed direction, such as before minus after; (2) drop zero differences and let n be the number left; (3) rank the absolute differences, using midranks for ties; (4) attach each difference's sign to its rank; (5) add the positive ranks to get T+ and the negative ranks to get T−; (6) check that T++T−=n(n+1)2; (7) the test statistic T is the smaller of the two, compared with a critical value.

Work through changes in anxiety

Worked example: 9 adults complete an anxiety questionnaire (scores 0–40) before and after a four-week breathing course. Before: 24, 30, 18, 27, 22, 35, 29, 26, 20. After: 19, 26, 18, 21, 25, 27, 22, 24, 11. Differences (before minus after): 5, 4, 0, 6, −3, 8, 7, 2, 9. Dropping the zero leaves n=8.

ranking the absolute differences 2, 3, 4, 5, 6, 7, 8, 9 gives ranks 1 to 8. The only negative difference, −3, has rank 2, so T−=2 and T+=36−2=34; check 8×92=36. The critical value for n=8 at α=.05 two-tailed is 3, and T=2≤3, so reject H0. The exact two-sided p-value is 6256≈.023: of the 28=256 equally likely sign patterns, 3 give T−≤2 and 3 give T+≤2. The median difference is a decrease of 5 points.

ranking the before scores and after scores separately, or analyzing the two columns as independent groups with a Mann–Whitney test. Both ignore the pairing; the signed-rank test ranks the differences within pairs.

Check the measurement scale

Ranking differences by size assumes that a difference of 6 points is larger than one of 4 in a meaningful way, so the outcome should be at least roughly interval. If only the direction of each change can be trusted, as with an ordinal single-item rating, the sign test is more defensible.

One-sample version: to test whether a population median equals a value m0, subtract m0 from every observation and apply the same steps to these differences. For example, to test whether the median daily commute of a group of workers is 30 minutes, use the differences "commute − 30".

Key Takeaways

  • Take paired differences in one fixed direction.
  • Drop zero differences under the original Wilcoxon method.
  • Rank absolute differences from smallest to largest, then restore signs.
  • Check T++T−=n(n+1)/2.
  • Symmetry of differences supports a median interpretation.

2.4 Handle zeros, ties, large samples and effect sizes in paired designs

Zero differences carry no sign. Wilcoxon's original method, the default in most software, drops them and reduces n. Pratt's method ranks the zeros with the other absolute differences and then leaves their ranks out of T+ and T−. Report which method you used; many zeros are a sign that the scale is coarse.

Handle tied changes

Tied absolute differences receive midranks. If the absolute differences 7, 7 and 7 would occupy ranks 6, 7 and 8, each receives rank 7, whether the differences are positive or negative.

Approximate a signed-rank p-value

Large-sample approximation: under H0 and without ties, either signed rank sum (T+ or T−) has mean n(n+1)4 and standard deviation n(n+1)(2n+1)24. Standardize one of them and use both tails of the normal distribution for a two-sided p-value. For the anxiety example (n=8): mean 18, SD 8×9×1724≈7.14, and for T−=2, z=2−187.14≈−2.24 (using T+=34 gives z≈+2.24); two-sided p≈.025, close to the exact .023. With n this small, report the exact value.

Describe the effect

Effect size r=zN: textbooks differ on N. Using the number of pairs (8) gives r≈−0.79; using the total number of observations (16), as Field does, gives r≈−0.56. State which N you used.

The matched-pairs rank-biserial correlation avoids that choice: rrb=T+−T−T++T−. For the anxiety data, rrb=34−236≈.89: the ranked evidence is strongly in the direction of lower anxiety after the course. It runs from −1 to 1.

Use signs when magnitudes are unsuitable

The sign test uses only the direction of each nonzero difference. Under H0, the number of positive differences follows a binomial distribution with n trials and probability 0.5. In the anxiety data, 7 of 8 differences are positive, so two-sided p=2×(80)+(81)28=18256≈.070. Here the two tests give different p-values (.070 against .023). Because the sign test ignores how large the changes are, it usually has less power than the signed-rank test for roughly normal or moderately heavy-tailed differences, though neither test is more powerful in every situation; the sign test needs only that you can tell which member of each pair is larger.

Choosing among paired tests: use the paired t test when the differences are roughly normal or n is large; the signed-rank test when the differences are roughly symmetric but heavy-tailed or contain outliers; the sign test when the differences are strongly skewed or only their direction is meaningful.

R's wilcox.test(before, after, paired = TRUE) reports the statistic as V, the sum of the positive ranks T+ (34 in the anxiety example), with differences taken as first argument minus second. Other programs report the smaller sum or a z value; all lead to the same p-value for the same method.

Key Takeaways

  • Pratt’s method and the original zero-dropping method differ.
  • Use midranks for tied absolute differences regardless of sign.
  • State whether r uses pairs or individual observations in its denominator.
  • Matched-pairs rank-biserial correlation uses the two signed rank sums.
  • The sign test uses directions and needs no symmetric difference distribution.
3

Compare three or more groups or conditions with rank tests

With three or more groups, an overall test asks whether the groups share the same distribution or within-person rank pattern. It does not identify the pairs responsible for a difference. Here you will build the Kruskal–Wallis and Friedman statistics, choose follow-up comparisons that respect the study design, and control the risk of false positives across those comparisons. Effect sizes describe how strong the rank pattern is.

3.1 Run the Kruskal–Wallis test

The Kruskal–Wallis test compares three or more independent groups on an outcome that is at least ordinal; it is the rank counterpart of one-way ANOVA. H0: all populations have the same distribution. H1: at least one population tends to give larger or smaller values than another.

Calculate the overall statistic

Method: (1) pool all N observations and rank them, with midranks for ties; (2) add the ranks in each group to get Ri; (3) compute H=12N(N+1)∑Ri2ni−3(N+1); (4) compare H with a chi-square distribution with k−1 degrees of freedom, where k is the number of groups. Large values of H are evidence against H0.

Work through training methods

Worked example: 15 trainees learn a data-entry task with one of three methods, 5 per method, and their errors are counted. Method A: 12, 15, 9, 20, 17. Method B: 22, 25, 18, 30, 27. Method C: 14, 11, 16, 10, 13. Ranking all 15 values gives RA=32, RB=64, RC=24; check 32+64+24=120=15×162.

H=1215×16(3225+6425+2425)−3×16=0.05×1139.2−48=8.96. With df=2, the critical value at .05 is 5.99, so reject H0; the chi-square p-value is about .011. The exact p-value, from all 756,756 equally likely ways to divide the ranks into three groups of 5, is about .004: with groups this small the chi-square approximation is conservative here, though the decision is the same.

H measures how far the group mean ranks are from the overall mean rank N+12: H=12N(N+1)∑ni(Rˉi−N+12)2. In the example the mean ranks are 6.4 (A), 12.8 (B) and 4.8 (C) against an overall 8, and B is far above it. Medians: A 15, B 25, C 13 errors.

Choose the reference distribution

The chi-square approximation is commonly used once every group has at least 5 observations; for smaller groups, use exact tables or an exact or Monte Carlo p-value from software. With ties, H is divided by 1−∑(t3−t)N3−N, which raises H slightly.

Interpret an overall difference

running a Mann–Whitney test for every pair of groups instead of one Kruskal–Wallis test. Three tests at α=.05 push the chance of at least one false rejection well above .05 (to 1−0.953≈.14 if the three tests were independent). Run the omnibus test first and then corrected follow-up comparisons.

A significant H says that the groups do not all have the same distribution; it does not say which groups differ. Pairwise follow-up tests answer that. As with Mann–Whitney, H can be read as comparing medians when the group distributions have the same shape and spread.

With exactly two groups, the Kruskal–Wallis H equals z2 from the Mann–Whitney normal approximation without continuity correction. For the shelf example, H≈6.53=(−2.56)2.

Key Takeaways

  • Kruskal–Wallis pools ranks across independent groups.
  • Large H gives evidence against a common distribution.
  • The chi-square approximation has k−1 degrees of freedom.
  • A significant overall test does not locate the differing pairs.

3.2 Follow up a significant Kruskal–Wallis result

Dunn's test compares two groups' mean ranks from the original joint ranking: z=Rˉi−RˉjN(N+1)12(1ni+1nj), with a tie adjustment in software. SPSS uses Dunn's method for the pairwise comparisons after a Kruskal–Wallis test.

Compare the training methods

Worked example (errors data, N=15, n=5 per group): the standard error is 20×0.4=8≈2.83. B vs A: z=12.8−6.42.83≈2.26, p≈.024. B vs C: z=12.8−4.82.83≈2.83, p≈.0047. A vs C: z=6.4−4.82.83≈0.57, p≈.57.

Adjust the family of tests

Bonferroni correction: multiply each p-value by the number of comparisons m (capped at 1), or equivalently compare each p with αm. With m=3: B vs A .071, B vs C .014, A vs C 1.00, so only B vs C is significant at .05. SPSS shows the corrected value as "Adj. Sig."

Holm's method controls the same familywise error rate with more power: order the p-values from smallest to largest and multiply the first by m, the second by m−1, and so on, stopping at the first that is not significant. Using unrounded p-values for decisions: .0047×3≈.014, .02365×2≈.0473, .57×1=.57. Under Holm, B differs from both C and A.

Choose and name the follow-up method

An alternative follow-up is a separate Mann–Whitney test for each pair with a Bonferroni or Holm correction. Each pair is then re-ranked on its own, so its p-values differ from Dunn's test. Both approaches are accepted; state which one you used.

If specific comparisons were planned before the data were collected, such as each new method against a standard method, test only those. Fewer comparisons mean a smaller correction and more power.

Report the size of the effect

Effect size for the whole test: εR2=HN−1; for the example 8.9614=0.64. Another index, ηH2=H−k+1N−k, gives 8.96−212=0.58. For a pairwise effect size, run the Mann–Whitney test on that pair and use its own z: r=∣z∣ni+nj. For B vs C, every B value exceeds every C value, so U=0, z≈−2.61 and r≈2.6110≈0.83 (rank-biserial correlation 1). Dividing Dunn's z by ni+nj mixes the pooled ranking with a two-group sample size and can exceed 1; if you standardize Dunn's z, divide by the square root of the total sample size: 2.8315≈0.73. Name the index you report, because packages use these names differently.

Example report: "The number of errors differed between training methods, H(2)=8.96, p=.011, ε2=.64. Dunn's tests with Bonferroni correction showed more errors with method B (Mdn = 25) than with method C (Mdn = 13), p=.014; the other comparisons were not significant."

When the groups have a natural order and the hypothesis predicts a trend, such as errors falling as training time rises from 1 to 2 to 3 hours, the Jonckheere–Terpstra test tests that ordered alternative directly and has more power for it than Kruskal–Wallis.

Key Takeaways

  • Dunn’s test retains the original pooled ranks.
  • Pairwise Mann–Whitney tests re-rank each pair.
  • Bonferroni and Holm control familywise error.
  • Name the effect-size index and its formula.
  • An ordered trend can call for Jonckheere–Terpstra.

3.3 Run and follow up the Friedman test for repeated measures

The Friedman test compares three or more related conditions: the same participants measured under every condition, or matched blocks. It is the rank counterpart of one-way repeated-measures ANOVA. H0: within participants, every ordering of the conditions is equally likely, so no condition tends to rank higher or lower than another.

Rank within participants

Method: (1) for each of the n participants, rank their k scores from 1 to k; (2) add the ranks for each condition to get Rj; (3) check that ∑Rj=nk(k+1)2; (4) compute χF2=12nk(k+1)∑Rj2−3n(k+1); (5) compare with a chi-square distribution with k−1 degrees of freedom.

Work through layout times

Worked example: 6 participants search for an item on three website layouts, and the time in seconds is recorded. Layout A, B, C — P1: 41, 48, 55; P2: 38, 52, 47; P3: 45, 50, 61; P4: 50, 44, 58; P5: 36, 42, 49; P6: 40, 57, 51. Within-person ranks give RA=7, RB=13, RC=16; check 6×3×42=36.

χF2=126×3×4(72+132+162)−3×6×4=4746−72=7.00. With df=2, p≈.030 (the exact p-value is about .029), so the layouts differ. Median times: A 40.5 s, B 49 s, C 53 s.

Measure agreement

Kendall's W (coefficient of concordance) is the usual effect size: W=χF2n(k−1). Here W=76×2≈.58. W runs from 0 (no agreement among participants about the order of the conditions) to 1 (every participant ranks the conditions in the same order).

ranking all 18 values together, as in Kruskal–Wallis. That ignores that each participant contributes one score per condition, and differences between fast and slow participants then hide the differences between layouts. Friedman ranks within each participant, which removes those person-to-person differences.

Follow up without losing the pairing

Ties within a participant receive midranks, and software corrects the statistic for them. With k=2 conditions, the Friedman test reduces to the sign test.

Follow-up: Wilcoxon signed-rank tests for each pair of conditions with a Bonferroni or Holm correction. With three pairs, Bonferroni compares each p with .053≈.0167. Other options are the Nemenyi and Conover tests on the Friedman rank sums.

In the layout example, all 6 participants were faster on A than on C, giving exact p=264≈.031; A vs B and B vs C each give p=.125. None is below .0167. With 6 pairs, the smallest possible two-sided exact signed-rank p-value is .031, so no pair could reach significance after correction. A small repeated-measures study can detect an overall effect without being able to locate it; plan the sample size for the follow-up tests too.

Example report: "Search time differed between layouts, χF2(2)=7.00, p=.030, W=.58; A was the fastest (Mdn = 40.5 s). No pairwise comparison was significant after Bonferroni correction."

Key Takeaways

  • Friedman ranks conditions within each participant or block.
  • Compare the statistic with k−1 chi-square degrees of freedom.
  • Kendall’s W measures agreement in condition ordering.
  • Pairwise follow-ups retain pairing and adjust for multiple tests.
  • A significant overall test can coexist with no significant adjusted pair.
4

Measure monotonic association with rank correlations

A relationship can be consistent without following a straight line. Rank correlations measure that consistency through the ordering of observations. You will calculate Spearman’s correlation from ranks and Kendall’s correlation from pairs of cases, then see why ties change the calculations. Plotting the data stays essential: a strong curved pattern can turn upward and downward and therefore have a rank correlation near zero.

4.1 Compute and interpret Spearman's rank correlation

Spearman's rank correlation rs (also written ρ) measures the strength and direction of a monotonic relationship: as one variable increases, the other tends to increase (or tends to decrease) consistently, though not necessarily along a straight line. It runs from −1 to 1.

Turn both variables into ranks

Method: rank each variable separately (midranks for ties) and compute Pearson's correlation between the two sets of ranks. When there are no ties, the shortcut rs=1−6∑d2n(n2−1) gives the same value, where d is the difference between a case's two ranks.

Work through practice and scores

Worked example: 8 learners record weekly practice hours and a test score. Hours: 2, 4, 5, 7, 8, 10, 12, 15 (ranks 1 to 8). Scores: 52, 50, 61, 64, 70, 69, 85, 90 (ranks 2, 1, 3, 4, 6, 5, 7, 8). The rank differences are −1, 1, 0, 0, −1, 1, 0, 0, so ∑d2=4 and rs=1−6×48×63=1−24504≈.952.

Test the association

Testing H0: no monotonic association in the population. For small n, use exact tables or software: for the example, the exact two-sided p-value over all 8!=40,320 orderings is about .001. For larger samples, t=rsn−21−rs2 with n−2 degrees of freedom is a common approximation.

The shortcut formula is exact only without ties. With ties, compute Pearson's correlation on the midranks, which is what software does.

Check what the pattern can show

Rank correlation resists outliers. For x = 1 to 8 and y = 3, 4, 6, 5, 7, 8, 9, 40, Pearson's r≈.70 because the value 40 distorts the linear fit, while rs≈.98 because the order of y almost matches the order of x.

A claim such as "rs=0 means the variables are unrelated." misses an important distinction. rs detects only monotonic patterns. For x = −3, −2, −1, 0, 1, 2, 3 and y=x2, rs=0 although y is completely determined by x. Always plot the data first.

Spearman's correlation suits ordinal data, such as two judges ranking the same 10 contestants, and continuous data whose relationship is curved but monotonic. Like any correlation, it does not show that one variable causes the other.

Report the sample size and how the p-value was found: "Practice hours and test scores were strongly positively related, rs=.95, n=8, exact two-sided p=.001." Degrees of freedom n−2 belong to the approximate t test; when that test is used, report them with it, for example t(6).

Key Takeaways

  • Spearman is Pearson correlation applied to the two rank columns.
  • The squared-rank-difference shortcut requires no ties.
  • A monotonic curve need not be a straight line.
  • Zero rank correlation can coexist with a U-shaped relationship.
  • Correlation alone does not establish causation.

4.2 Compute and interpret Kendall's tau

Two cases form a concordant pair when the case that is higher on X is also higher on Y, and a discordant pair when it is lower on Y. With n cases there are n(n−1)2 pairs.

Count concordant and discordant pairs

Without ties, Kendall's tau is τa=C−Dn(n−1)/2, where C and D count concordant and discordant pairs. It runs from −1 (all pairs discordant) to 1 (all pairs concordant).

Work through the pair counts

Worked example (practice hours and scores from Spearman's example): there are 8×72=28 pairs. Two are discordant: the learners with 2 and 4 hours (scores 52 and 50) and those with 8 and 10 hours (70 and 69). So C=26, D=2 and τ=26−228≈.857.

Interpretation: τ is the probability that a randomly chosen pair is concordant minus the probability that it is discordant. Here 2628−228≈.929−.071=.857.

Allow for ties

With ties, use τb=C−D(n0−n1)(n0−n2), where n0=n(n−1)2, n1 is the number of pairs tied on X and n2 the number tied on Y. Example: x = 1, 2, 2, 3, 4 and y = 1, 3, 2, 2, 5 give C=7, D=1, n1=1, n2=1, so τb=69×9≈.67 (while τa=610=.60). Software usually reports τb.

For most data sets ∣τ∣ is smaller than ∣rs∣ for the same data (.857 against .952 here), because the two measure association on different scales. Compare a τ only with other τ values, not with benchmarks for r or rs.

Test and compare tau

Testing: small samples use exact distributions (two-sided p≈.002 for the example). For larger samples without ties, z=3τn(n−1)2(2n+5), here z≈2.97. With ties this formula does not apply; software uses a tie-corrected variance of C−D or a permutation calculation. Kendall's tau is often preferred for small samples and for data with many ties, and its pair-counting meaning is easy to explain.

Key Takeaways

  • Concordant pairs have matching order on both variables.
  • Without ties, tau is the excess of concordant over discordant pair proportions.
  • Tau-b adjusts its denominator for ties.
  • Interpret tau on its own scale.
5

Test and estimate by resampling

Resampling uses the observed data to build reference distributions on a computer. Permutation tests ask how unusual a result is under a null hypothesis; the bootstrap estimates how variable a statistic is across samples. You will follow both procedures with small datasets, distinguish their outputs, and preserve the original study design when reshuffling or resampling. Neither procedure supplies information that was missing from the sample.

5.1 Run a permutation test

Logic: if the treatment has no effect, each participant would have produced the same value whichever group they were in. The group labels are then interchangeable (exchangeable), and every way of assigning the labels is equally likely. Random assignment in an experiment justifies this.

Build the null distribution

Method: (1) choose a test statistic before seeing the results, such as the difference in means or medians; (2) compute it for the observed data; (3) recompute it for every possible reassignment of the labels, or for many random ones; (4) the p-value is the proportion of reassignments giving a statistic at least as extreme as the observed one.

Work through a randomized study

Worked example: 8 volunteers are randomly assigned, 4 to learn a memory technique and 4 to a control condition, and then recall words from a list of 40. Technique: 18, 23, 25, 30 (mean 24). Control: 12, 15, 20, 16 (mean 15.75). Observed difference: 24−15.75=8.25 words.

there are (84)=70 ways to choose which 4 values carry the technique label. Two of them give a difference of at least 8.25 (the observed split and one giving 9.25), so the one-sided p-value is 270≈.029. Four give a difference of at least 8.25 in either direction, so the two-sided p-value is 470≈.057. The one-sided value may be used only if that direction was stated before the data were collected.

Use random reshuffles

When there are too many arrangements to list (two groups of 20 have (4020)≈1.4×1011), draw a large random sample of reshuffles, such as 10,000. Count the observed arrangement as one of them: p=b+1m+1, where b of m random reshuffles are at least as extreme. A permutation p-value is never exactly 0.

Preserve the design

The rank tests in this unit are permutation tests applied to ranks: the exact Mann–Whitney distribution is the permutation distribution of the rank sum. Without ties, using ranks has the advantage that the exact distribution depends only on the group sizes, so it can be printed in tables. With ties, the exact permutation distribution also depends on the pattern of ties in the data, so the ordinary tables do not apply directly and software computes the distribution from the observed midranks.

For paired data, reshuffle within pairs: under H0 each difference is equally likely to be positive or negative, so the null distribution comes from flipping the signs of the differences (2n patterns).

A claim such as "Permutation tests need no assumptions." misses an important distinction. they require exchangeability under H0. When groups were not randomly assigned and have different spreads, a permutation test of means can give misleading p-values, rejecting too often or too rarely, even when the means are equal. A permutation test also does not make an unrepresentative sample representative of a population.

Key Takeaways

  • Permutation inference requires exchangeability under the null.
  • Hold observed values fixed and reshuffle labels according to the design.
  • Count results at least as extreme as the observed statistic.
  • Use (b+1)/(m+1) for random reshuffles with the observed arrangement included.
  • Choose a one-sided alternative before seeing the outcomes.

5.2 Estimate with the bootstrap

The bootstrap treats the sample as a stand-in for the population. It draws many resamples of the same size n from the data with replacement, computes the statistic for each, and uses the spread of these bootstrap statistics to estimate how much the statistic would vary from sample to sample.

Read the bootstrap distribution

The percentile confidence interval takes the 2.5th and 97.5th percentiles of the bootstrap statistics as a 95% interval. The bootstrap standard error is the standard deviation of the bootstrap statistics. Use at least 1,000 resamples for a standard error and around 10,000 for interval endpoints.

Estimate a median interval

Worked example: delivery times in days for 9 orders are 2, 3, 3, 4, 5, 6, 8, 12, 21 (median 5, mean about 7.1). A bootstrap median is always one of the data values. Across all possible resamples, its distribution is: 3 days with probability about .14, 4 about .22, 5 about .27, 6 about .22, 8 about .11, 12 about .03, and 2 or 21 about .001 each. The 2.5th percentile is 3 and the 97.5th is 12, so the 95% percentile interval for the median is 3 to 12 days.

The interval in the example is wide and lopsided around the median of 5, reflecting the skewed data and the small sample. With 9 observations, the bootstrap median can take only a few values, so the interval is coarse; bootstrap intervals for medians in small samples can cover the true value less often than the stated 95%.

Resample the right observational unit

Resample the way the data were collected: for two independent groups, resample within each group separately; for paired data, resample whole pairs. Then compute the statistic, such as the difference in medians, for each resample.

Bootstrap and permutation differ in purpose. A permutation test builds the null distribution by reshuffling labels as if H0 were true and gives a p-value; the bootstrap estimates the sampling variability of a statistic and gives a standard error or confidence interval. If a 95% bootstrap interval for a difference excludes 0, that is evidence of a difference at roughly the .05 level.

Record the simulation choices

A claim such as "Bootstrapping creates more data" or "fixes a biased sample." misses an important distinction. resampling adds no new information; it shows how variable the statistic is given the data you have. It does not correct for nonrandom sampling or for dependence between observations.

Bootstrap results vary slightly from run to run because the resamples are random. Set and report a random seed, the number of resamples and the interval method (percentile, or the bias-corrected and accelerated BCa interval that SPSS, JASP and R packages offer).

Key Takeaways

  • Bootstrap samples have the original sample size and use replacement.
  • The standard deviation of bootstrap statistics estimates standard error.
  • Percentile endpoints give a percentile confidence interval.
  • Resample whole pairs when observations are paired.
  • Record seed, resample count and interval method.
  • A small or biased sample remains limited after resampling.
6

Choose, run and report the right test

A useful analysis connects a research question to a design, a test, and a report that another reader can interpret. This chapter brings those decisions together. You will distinguish ordered scores from category counts, independent observations from repeated measurements, and differences from associations. Then you will translate software labels into statistical meaning and report direction, uncertainty, descriptive results and effect size.

6.1 Choose a test for the design and the data

Ask in order: (1) What is the outcome: counts in categories, an ordinal score, or a continuous measurement? (2) Are the observations independent groups, or related (the same people or matched sets)? (3) How many groups or conditions: two, or three or more? (4) Is the question about a difference or an association? Then check plots of the data for shape and outliers.

Match question and design

Decision summary: two independent groups — Mann–Whitney U; two related measurements — Wilcoxon signed-rank (or the sign test); three or more independent groups — Kruskal–Wallis; three or more related conditions — Friedman; association between two ordinal or non-normal variables — Spearman or Kendall. Outcomes that are counts in categories call for chi-square tests instead of these.

Consider the alternatives

Worked choices: customers of two branches rate service on a 1–5 scale — Mann–Whitney. The same 15 patients rate pain from 0 to 10 before and after treatment — Wilcoxon signed-rank, or the sign test if only the direction of change is trusted. Reaction times for four age groups of 8 people each, strongly skewed — Kruskal–Wallis. Twelve tasters each rate four coffees — Friedman. Two interviewers rank the same 10 candidates — Spearman or Kendall.

Check the measurement scale

Alternatives that keep a parametric analysis: Welch's t test or Welch's ANOVA for unequal variances; a log transformation for positive, right-skewed outcomes such as incomes or reaction times, after which the test concerns the transformed scale; a bootstrap confidence interval for a mean or a median. With large samples and mild skew, the t test or ANOVA is often adequate.

A single rating item is ordinal. A scale score that adds many items is often treated as approximately interval and analyzed with t tests or ANOVA; the choice should match how the scale was designed and validated.

Plan before looking at p-values

The tests in this unit handle one grouping factor or one pair of variables. Designs with two or more factors, interactions or covariates need other models.

Choose the test before seeing the results. Running a t test, then a Mann–Whitney test, and reporting whichever gives p<.05 inflates the false-positive rate. If you have reason to check both, decide which is primary in advance, report both and explain any difference.

Plan the sample size with the test in mind: under normal data, rank tests need roughly 5% more observations than t tests in large samples, and very small samples cannot reach significance at all (two groups of 3 cannot reach p<.05 in an exact Mann–Whitney test).

Key Takeaways

  • Separate outcome type, dependence, group count and research question.
  • Use paired methods when the same cases contribute multiple scores.
  • Check whether change magnitudes are meaningful before signed-rank inference.
  • Plan the primary analysis and sample size in advance.

6.2 Read software output and report results

SPSS (Mann–Whitney): the Ranks table shows N, Mean Rank and Sum of Ranks for each group; the Test Statistics table shows Mann–Whitney U, Wilcoxon W (a rank sum, not U), Z, "Asymp. Sig. (2-tailed)" and, where computed, an exact significance. Kruskal–Wallis and Friedman output gives the chi-square-type statistic, df and significance, and the pairwise tables show both "Sig." and the corrected "Adj. Sig."

Translate software statistics

R: wilcox.test(x, y) reports W, which is U for the first-named group (the rank sum of x minus nx(nx+1)2); in the shelf example it gives W=1 with the video times first and W=29 with the text times first, with the same p-value. With paired = TRUE it reports V=T+. kruskal.test and friedman.test report a chi-squared value, df and p-value; cor.test(x, y, method = "spearman") reports ρ and a statistic S, which equals ∑d2 when there are no ties (4 in the practice example).

jamovi and JASP place the Mann–Whitney and Wilcoxon options inside the independent-samples and paired-samples t-test analyses, and report the rank-biserial correlation as the effect size; rank correlations are options in the correlation analysis.

Reconcile different labels

concluding that two programs disagree because one shows U = 1 and another W = 16 or W = 29. These are different statistics or different group orders for the same test; compare the p-values and the direction of the effect instead.

Write a complete report

A complete report states: the test and why it was used; the statistic (U, T, H, χF2, rs or τ), with df where relevant; z for large samples; the p-value and whether it is exact or approximate; an effect size; medians (with interquartile ranges) for each group or condition; and the direction of the effect in words.

Use readable statistical notation

APA style: italicize statistical symbols, give p-values to two or three decimals without a leading zero (p = .009), write p < .001 for smaller values instead of p = .000, and give effect sizes that cannot exceed 1 without a leading zero (r = .31).

Example report: "Participants who learned from the video finished faster (Mdn = 31 s) than those who learned from written instructions (Mdn = 45 s), U = 1, exact p = .009, rank-biserial r = .93. In 29 of the 30 video–text pairs, the text learner was slower."

Common reporting mistakes: giving means and standard deviations only, which hides the skew that motivated the test; writing "the medians differed significantly" without the same-shape condition; leaving out the effect size; and not saying which group or condition was higher.

Key Takeaways

  • Identify the statistic behind a software label before comparing numbers.
  • Record p-value method and any correction.
  • Report descriptive results, direction and an effect size.
  • Write p<.001 instead of p=.000.
  • For repeated measures, report the number of pairs or blocks clearly.

Nonparametric Tests examples

6 Walkthroughs

1

Decide when rank-based tests are the right tool

15 steps
Recognize when the assumptions of t tests, ANOVA and Pearson correlation are in doubt, turn data into ranks correctly, and understand how rank tests produce exact and approximate p-values.
  1. 1
    IntroductionStart with the question

    Rank tests keep the order of observations while reducing the influence of extreme distances between them. Choosing one starts with the research question and the study design. This chapter explains when ranking helps, how to assign ranks without losing track of ties, and how a rank statistic becomes a p-value. Small samples get special attention because an exact test can have too few possible outcomes to detect an effect at the chosen significance level.

  2. 2
    ExplanationRead the assumptions

    A parametric test assumes the data come from a population with a particular form, described by a few parameters. The independent-samples t test and one-way ANOVA assume independent observations, roughly normal data within each group (or normally distributed residuals) and, in their classic forms, equal variances. The paired t test assumes that the pairs are independent of one another and that the within-pair differences are roughly normal; the two measurements in a pair may be related and need not have equal variances. A nonparametric or distribution-free test does not assume a specific population shape such as the normal distribution. The tests in this unit work with the order of the observations (their ranks) or with resampling.

  3. 3
    ExplanationLook for a reason to use ranks

    Consider a rank-based test when: the outcome is ordinal, so the distances between scores are not known to be equal (ranks, a single 1–5 rating item, ordered categories such as "mild, moderate, severe"); samples are small and clearly skewed or heavy-tailed; or genuine extreme values would dominate a mean. A clear signal is a histogram or Q–Q plot of each group that shows strong skew or outliers in a sample of, say, 5 to 15 observations.

  4. 4
    ExplanationSee what ranking removes

    Ranking keeps the order of the values and discards the distances between them. In the times 26, 29, 31, 34 and 118 seconds, the value 118 receives rank 5, exactly as 35 would. This is why rank tests resist outliers, and also why they use less of the information in interval data.

  5. 5
    ChallengeChoose from the measurement scale

    A researcher measures an ordered five-category response in two independent samples. Why do ranks fit the measurement scale?

    ---reveal---

    The categories have an order, but their numerical gaps need not be equal. A pooled-rank comparison uses that order without treating a jump from 1 to 2 as the same measured change as 4 to 5. Independence must still hold between sampling units.

  6. 6
    ExplanationChoose the observations to rank

    Which values are ranked together depends on the test: all groups pooled into one list (Mann–Whitney, Kruskal–Wallis); the absolute values of the paired differences (Wilcoxon signed-rank); the values within each participant or block separately (Friedman); each variable on its own (Spearman and Kendall).

  7. 7
    ExplanationShare ranks across a tie

    Tied values receive the mean of the ranks they would occupy, called the midrank or average rank. For the values 3, 5, 5, 7, 7, 7, 9: the two 5s would take ranks 2 and 3, so each gets 2.5; the three 7s would take ranks 4, 5 and 6, so each gets 5; the 9 gets rank 7. The ranks are 1, 2.5, 2.5, 5, 5, 5, 7.

  8. 8
    TipCheck the rank total

    Check the ranks with the sum 1+2+⋯+N=N(N+1)2, which midranks do not change. For the seven values above, 7×82=28 and 1+2.5+2.5+5+5+5+7=28. A wrong total reveals a skipped value or a tie handled incorrectly.

  9. 9
    ChallengeCheck a tied ranking

    Assign ranks to 4, 6, 6, 10, 12 and check the total.

    ---reveal---

    The ranks are 1, 2.5, 2.5, 4 and 5. The tied 6s share positions 2 and 3, so each receives 2.5. Their total is 15, matching 5(6)/2. Assigning both 6s rank 2 would lower the total and distort a later group rank sum.

  10. 10
    ExplanationList the null arrangements

    If the null hypothesis is true and the data are continuous, every way of sharing the ranks among the groups is equally likely. Listing all arrangements gives the exact null distribution of the test statistic. With two groups of 3, there are (63)=20 ways to choose which ranks go to group 1, so each arrangement has probability 120.

  11. 11
    Key InsightSee the small-sample limit

    Small samples limit the smallest p-value a rank test can give. With two groups of 3, the most extreme outcome (group 1 holding ranks 1, 2, 3, or 4, 5, 6) has two-sided p=220=.10, so the test cannot reach significance at the .05 level whatever the data. With two groups of 4, the smallest two-sided p-value is 270≈.029. Check this before collecting a very small sample.

  12. 12
    ExplanationAdjust a continuous approximation

    A continuity correction moves the statistic 0.5 toward its null mean before computing z, because the statistic moves in steps while the normal curve is continuous. Some software applies it by default (R's wilcox.test does when it uses the normal approximation) and some does not, so two programs can report slightly different p-values for the same data.

  13. 13
    ChallengeExplain an impossible cutoff

    With two untied groups of 3, a researcher plans a two-sided exact Mann–Whitney test at .05. Would making the group measurements much farther apart enable significance?

    ---reveal---

    No. Even complete separation has two-sided p=2/20=.10 because only 20 allocations exist. Larger distances do not change ranks after complete separation. The design needs more observations if it is to allow rejection at .05.

  14. 14
    ChallengeConnect the design to the exact test

    Two independent groups of 3 provide ordered ratings with no ties. Explain how to rank them and why a two-sided exact .05 test still cannot reject, even if their values are fully separated.

    ---reveal---

    Pool all six values and rank them from 1 to 6. The test uses their ordering, so increasing the distances between fully separated groups adds no evidence. Only 20 allocations exist; the two complete separations give minimum two-sided p=.10.

  15. 15
    RecapCarry the analysis into a report

    Before calculating, write down the sampling unit and the ranking pool. Check tied ranks and their sum. When planning a small study, check the attainable exact p-values before committing to a significance threshold.

2

Compare two groups or two conditions with rank tests

21 steps
Run, interpret and report the Mann–Whitney U test for two independent groups and the Wilcoxon signed-rank test for paired data, with effect sizes and the conditions under which each answers your question.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the question
  2. 2
    ExplanationBuild U from pooled ranks
  3. 3
    ExampleRank the assembly times
  4. 4
    ExplanationCalculate and interpret U
  5. 5
    ChallengeFind both U values
  6. 6
    ExampleStandardize the large-sample U
  7. 7
    ExamplePut U on a probability scale
  8. 8
    ExampleEstimate the shift
  9. 9
    Key InsightDecide what the result compares
  10. 10
    ChallengeTranslate U into an effect
  11. 11
    ExplanationBuild signed ranks
  12. 12
    ExampleCalculate the paired changes
  13. 13
    ExplanationAdd and test the signed ranks
  14. 14
    ChallengeBuild the signed sums
  15. 15
    TipDecide how to handle zeros
  16. 16
    ExplanationShare ranks across absolute ties
  17. 17
    ExplanationExpress signed-rank balance
  18. 18
    ExplanationCount directions with a sign test
  19. 19
    ChallengeSelect the paired test
  20. 20
    ChallengeChoose a statistic and an interpretation
  21. 21
    RecapCarry the analysis into a report
3

Compare three or more groups or conditions with rank tests

18 steps
Use the Kruskal–Wallis test for independent groups and the Friedman test for repeated measures, follow a significant result with corrected pairwise comparisons, and report effect sizes.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the question
  2. 2
    ExplanationBuild an overall rank statistic
  3. 3
    ExampleRank the training groups
  4. 4
    ExplanationCalculate H and compare methods
  5. 5
    ChallengeRead the overall conclusion
  6. 6
    ExplanationCompare two pooled mean ranks
  7. 7
    ExampleWork out the pairwise z values
  8. 8
    ExplanationControl the comparison family
  9. 9
    ExplanationApply Holm in order
  10. 10
    ChallengeApply two corrections
  11. 11
    ExplanationRank within participants
  12. 12
    ExampleAdd the layout rank sums
  13. 13
    ExplanationCalculate the Friedman statistic
  14. 14
    ExplanationDescribe condition agreement
  15. 15
    Key InsightSee a follow-up limit
  16. 16
    ChallengeKeep the block structure
  17. 17
    ChallengeChoose the overall and follow-up tests
  18. 18
    RecapCarry the analysis into a report
4

Measure monotonic association with rank correlations

12 steps
Compute, test and interpret Spearman's rank correlation and Kendall's tau, and know when each is preferred to Pearson's correlation.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the question
  2. 2
    ExplanationRecognize monotonic association
  3. 3
    ExplanationCalculate correlation from ranks
  4. 4
    ExampleWork through the rank differences
  5. 5
    Key InsightInspect the shape before interpreting
  6. 6
    ChallengeChoose the tied-data method
  7. 7
    ExplanationCompare pairs of cases
  8. 8
    ExampleCount agreements and reversals
  9. 9
    ExampleCorrect the denominator for ties
  10. 10
    ChallengeCompare concordance with correlation
  11. 11
    ChallengeExplain why two coefficients differ
  12. 12
    RecapCarry the analysis into a report
5

Test and estimate by resampling

14 steps
Use permutation tests to build a null distribution by reshuffling group labels, and use the bootstrap to estimate sampling variability and confidence intervals, knowing what each method assumes.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the question
  2. 2
    ExplanationMake the null concrete
  3. 3
    ExampleFind the observed mean difference
  4. 4
    ExplanationCount extreme assignments
  5. 5
    ExplanationSample a large permutation space
  6. 6
    ExplanationPreserve a paired design
  7. 7
    ChallengeCount a simulation tail
  8. 8
    ExplanationDraw repeated bootstrap samples
  9. 9
    ExplanationRead variability and percentiles
  10. 10
    ExampleBuild the delivery-median interval
  11. 11
    ExplanationPreserve pairs and groups
  12. 12
    ChallengeKeep a bootstrap sample valid
  13. 13
    ChallengeChoose what to resample
  14. 14
    RecapCarry the analysis into a report
6

Choose, run and report the right test

12 steps
Match a study design and data type to the right rank or resampling method, read the output of common statistics programs, and report the results clearly in APA style.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the question
  2. 2
    ExplanationStart from the research design
  3. 3
    ExplanationMatch design to a rank test
  4. 4
    TipChoose a primary analysis
  5. 5
    ChallengeMatch the scale and pairing
  6. 6
    ExampleDecode R statistics
  7. 7
    ExplanationFind the rank options
  8. 8
    ExplanationGather the report ingredients
  9. 9
    TipReport small p-values
  10. 10
    ChallengeRepair a report
  11. 11
    ChallengeMake the paired analysis reproducible
  12. 12
    RecapCarry the analysis into a report

Nonparametric Tests practice questions

40 Practice Questions in 4 sets

Set 1: Compare groups and interpret effects10 Practice Questions

Question 1 of 10

A Friedman analysis with 10 participants and 4 conditions gives χ²F = 18. What is Kendall’s W?
  1. .45
  2. .30
  3. .60
  4. .90
Show answerHide answer
Answer: C
Kendall’s W divides the Friedman statistic by n(k − 1), giving 18/(10 × 3) = .60. Dividing by all 40 measurements gives .45, but that denominator does not represent the maximum Friedman statistic for ten blocks of four conditions.

Question 2 of 10

A Mann–Whitney analysis gives U₁ = 42 with 7 observations in group 1 and 10 in group 2. What is the tie-adjusted probability favoring a larger group 1 value?
  1. .40
  2. .60
  3. .42
  4. .70
Show answerHide answer
Answer: B
Divide the group-specific U by the number of cross-group pairs: 42/(7 × 10) = .60. The value .40 describes the complementary direction toward group 2; using the smaller U without tracking its group would reverse the interpretation.

Question 3 of 10

Two groups have different shapes, equal sample medians and Mann–Whitney p = .018. Which conclusion is best supported?
  1. The population means differ
  2. The population medians differ
  3. Equal medians invalidate the test
  4. There is evidence of different rank tendencies
Show answerHide answer
Answer: D
The result supplies evidence against the common-distribution null and is described through rank tendencies. Equal sample medians can coexist with such a result when shapes differ; a population median-shift claim would need the comparable-shape interpretation that is unavailable here.

Question 4 of 10

A Kruskal–Wallis analysis compares four independent groups. What degrees of freedom belong to its chi-square approximation?
  1. 3
  2. 4
  3. 5
  4. 6
Show answerHide answer
Answer: A
The approximation uses the number of groups minus one, so four groups give 3 degrees of freedom. Using 4 mistakes the group count for the degrees of freedom; the number of individual observations does not replace the group count in this calculation.

Question 5 of 10

Three independent groups of four have pooled rank sums 10, 26 and 42, with no ties. What is H?
  1. 7.50
  2. 6.00
  3. 9.85
  4. 8.00
Show answerHide answer
Answer: C
The squared-rank-sum terms add to 635. Multiplying by 12/(12 × 13) and subtracting 3 × 13 gives H ≈ 9.85; a smaller result can come from forgetting to square a rank sum before dividing by its group size.

Question 6 of 10

Three follow-up raw p-values are .009, .028 and .20. Which comparisons are significant at familywise .05 using Bonferroni?
  1. The first two
  2. Only the first
  3. All three
  4. None of them
Show answerHide answer
Answer: B
Bonferroni compares each raw p-value with .05/3 ≈ .0167, so only .009 passes. Treating .028 as significant uses the unadjusted .05 cutoff and fails to control the family of three comparisons; the adjusted first p-value is .027.

Question 7 of 10

The same family has raw p-values .009, .028 and .20. Which result follows from Holm’s procedure at .05?
  1. Only .009 passes; the procedure stops at .028
  2. All pass because the largest cutoff is .05
  3. The first two pass because both are below .05
  4. None pass because the first cutoff is .005
Show answerHide answer
Answer: A
Order the values and compare .009 with .05/3, then .028 with .05/2 = .025. The first passes and the second fails, so Holm stops there; applying .05 to both small values ignores the stepwise cutoffs that control familywise error.

Question 8 of 10

The differences are 0, −4, 4, 8 and −12. Under the original zero-dropping method, what is the matched-pairs rank-biserial correlation, with positive changes in the numerator direction?
  1. .20
  2. −.50
  3. 0
  4. −.10
Show answerHide answer
Answer: D
After removing zero, the two absolute 4s each rank 1.5, followed by ranks 3 and 4. Positive ranks sum to 4.5 and negative ranks to 5.5, so the effect is (4.5 − 5.5)/10 = −.10; counting positive and negative cases alone would miss their ranked magnitudes.

Question 9 of 10

Five participants complete three conditions. An exact two-sided signed-rank follow-up has five nonzero, untied differences for every pair. What can be concluded about Bonferroni-adjusted pairwise significance at .05?
  1. No pair can pass, even with all changes in one direction
  2. Every pair passes if the overall Friedman test passes
  3. A pair passes whenever all five changes agree
  4. At least one pair passes if Kendall’s W exceeds .5
Show answerHide answer
Answer: A
Five differences allow 32 equally likely sign patterns, giving a minimum two-sided exact p-value of 2/32 = .0625. That already exceeds .05 and is also above the three-comparison cutoff .0167; an overall significant Friedman result would not remove this pairwise sample-size limit.

Question 10 of 10

A paired analysis reports z = −2.4 for 16 nonzero pairs and effect size r = −.60. Which report makes that value reproducible?
  1. State N = 32 scores
  2. State N = 16 pairs
  3. State N = df = 15
  4. State N = 8 per group
Show answerHide answer
Answer: B
The reported value follows from −2.4/√16 = −.60, so N must count pairs. Counting the 32 individual measurements gives about −.42 instead; both denominator conventions occur, which is why the report must identify the convention used.
Set 2: Choose a method and build ranks10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Paired differences are 0, −2, 5, −7 and 9. Using the original signed-rank method, what is T₋?
  1. 5
  2. 2
  3. 4
  4. 6
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Two independent groups contain A: 4, 9 and B: 6, 9, 12. What is the rank sum for A in a Mann–Whitney analysis?
  1. 3.0
  2. 4.0
  3. 5.0
  4. 4.5
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Different volunteers each give one ordered satisfaction rating from 1 to 5 in one of two groups. Which rank test fits?
  1. Friedman
  2. Wilcoxon signed-rank
  3. Mann–Whitney U
  4. Kruskal–Wallis
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What ranks belong to the two 8s in the ordered data 2, 8, 8, 11, 14?
  1. 2.5 and 2.5
  2. 2 and 2
  3. 2 and 3
  4. 3 and 3
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

An exact two-sided Mann–Whitney test compares untied groups of 2 and 3. There are 10 equally likely rank allocations. What is its smallest attainable p-value?
  1. .05
  2. .20
  3. .10
  4. .025
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

In two independent samples, n₁ = 4, n₂ = 5 and R₁ = 17. What are U₁ and U₂?
  1. 7 and 13
  2. 13 and 7
  3. 17 and 3
  4. 7 and 20
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Paired changes are strongly skewed, and the research question concerns whether positive changes are more common than negative changes. Which test fits best?
  1. Paired t test
  2. Mann–Whitney U
  3. Wilcoxon signed-rank
  4. Sign test
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Nine volunteers each complete the same three tasks. Which ranking is appropriate for a Friedman test?
  1. Rank all 27 times together
  2. Rank the three times within each volunteer
  3. Rank nine times within each task
  4. Rank the nine participant means
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A researcher compares two independent groups with similar-shaped, roughly normal outcomes but very unequal spreads. The question concerns population means. Which plan best matches that question?
  1. Use Mann–Whitney and report a mean difference
  2. Use signed ranks and report a median change
  3. Use Welch’s t test and report a mean difference
  4. Use Friedman and report a mean-rank difference
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

R prints W = 11 and SPSS prints U = 11 plus a different W for the same independent samples. Both give the same p-value. What should the analyst check first?
  1. How each program defines W
  2. Whether the data are paired
  3. Whether rank sums match
  4. Whether to halve the p-value
Show answerHide answer

Save this lesson to see this answer.

Set 3: Read rank relationships and resampling results10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A two-sided random-permutation analysis uses 999 reshuffles; 14 statistics are at least as extreme as observed. What p-value includes the observed arrangement?
  1. .015
  2. .014
  3. .016
  4. .028
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Which pattern is monotonic but not linear?
  1. Scores rise steadily along an upward curve
  2. Scores fall and then rise in a U shape
  3. Scores alternate between high and low
  4. Scores rise and then fall in an arch
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two cases have (X, Y) values (3, 9) and (7, 5). How is their pair classified?
  1. Concordant
  2. Tied on X
  3. Discordant
  4. Tied on Y
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

For five untied cases, the X ranks are 1, 2, 3, 4, 5 and the Y ranks are 1, 3, 2, 5, 4. What is Spearman’s correlation?
  1. .60
  2. .70
  3. .90
  4. .80
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Six untied cases produce 12 concordant pairs. What is Kendall’s tau-a?
  1. .80
  2. .60
  3. .40
  4. .20
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

What remains fixed in an independent-groups label-permutation test?
  1. Each group’s observed mean
  2. Each case’s group membership
  3. The pooled observed measurements
  4. The observed difference in means
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A paired study records response time before and after training for 24 people. What should one bootstrap resample contain?
  1. 24 whole before–after pairs drawn with replacement
  2. 48 individual times drawn without replacement
  3. 24 before times and 24 after times drawn independently
  4. 24 whole before–after pairs drawn without replacement
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two observational groups have equal population means but markedly different spreads. An analyst shuffles raw group labels to test only equality of means. Which concern is decisive?
  1. The statistic must instead be a rank sum
  2. Permutation tests require normally distributed values
  3. The bootstrap would make the groups exchangeable
  4. Equal means alone do not establish exchangeability
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Five cases give C = 6 and D = 2. Of all case pairs, one is tied on X and one is tied on Y, with no joint ties. What is tau-b?
  1. .40
  2. .44
  3. .50
  4. .60
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Six matched pairs record a continuous change. The differences are strongly skewed: 2, 3, 4, 5, 6 and −20. The question is whether positive changes are more common. Which analysis and conclusion fit at two-sided .05?
  1. Signed ranks; reject because five changes are positive
  2. Sign test; do not reject, with exact p ≈ .219
  3. Mann–Whitney; reject because the groups differ
  4. Sign test; reject, with exact p ≈ .016
Show answerHide answer

Save this lesson to see this answer.

Set 4: Plan, diagnose and report an analysis10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Software displays a p-value rounded to .000. How should it appear in a report?
  1. p = .001
  2. p = .000
  3. p = .0000
  4. p < .001
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

The standard deviation of 2,000 bootstrap sample means is 1.8 seconds. What does 1.8 seconds estimate?
  1. The population SD of individual times
  2. The standard error of the sample mean
  3. The observed group mean difference
  4. The upper endpoint of a 95% interval
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

Two independent samples are measured. Group A contains 1 and 5 seconds; group B contains 4 and 8 seconds. What is the Hodges–Lehmann estimate for B minus A?
  1. 2 seconds
  2. 4 seconds
  3. 3 seconds
  4. 5 seconds
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A study has 300 independent observations per group, mild skew, no influential outliers and a question about means. Shapiro–Wilk gives p = .002. What is the best next decision?
  1. Assess a mean-based test using design and robustness
  2. Switch to ranks solely because p is below .05
  3. Remove observations until the normality test passes
  4. Use signed ranks because each group is large
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Three independent groups each contain four observations. A: 2, 4, 6, 8; B: 10, 12, 14, 16; C: 18, 20, 22, 24. Using a no-ties normal approximation without continuity correction, what is |r| = |z|/√N for the pairwise Mann–Whitney effect of A versus C?
  1. About .67
  2. About .94
  3. About .82
  4. About .58
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

The same 18 people rate two textures on a single ordered scale. Only the direction of each change is meaningful. Which primary analysis and description fit?
  1. Mann–Whitney; compare independent mean ranks
  2. Sign test; count nonzero changes in each direction
  3. Signed ranks; weight the numerical change sizes
  4. Kruskal–Wallis; compare pooled rank sums
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Five cases have X ranks 1, 2, 3, 4, 5 and Y ranks 1, 3, 2, 4, 5, with no ties. Which pair of coefficients is correct?
  1. Spearman .80; Kendall .90
  2. Spearman .90; Kendall .90
  3. Spearman .90; Kendall .80
  4. Spearman .80; Kendall .80
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A researcher tests a proposed center of 50 seconds using values 45, 48, 51, 54 and 57 seconds. What are the positive and negative signed rank sums?
  1. T₊ = 8 and T₋ = 7
  2. T₊ = 10 and T₋ = 5
  3. T₊ = 7 and T₋ = 8
  4. T₊ = 9 and T₋ = 6
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A Friedman test across four conditions is significant. Six planned pairwise signed-rank tests have smallest raw p = .012. What happens under Holm at familywise .05?
  1. Only the smallest p-value passes
  2. The first four ordered p-values pass
  3. The overall test removes the need to adjust
  4. No pairwise hypothesis is rejected
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

For two independent groups, an analyst reports U = 8 and p = .03 as “different population medians.” Their plots show clearly different shapes. Which revision is best?
  1. Describe rank tendency and report direction and effect size
  2. Keep the median claim but remove the plots
  3. Replace the p-value with a bootstrap standard error
  4. Describe paired change and report the signed rank sum
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

70 Key Terms, each with its definition

A

Absolute difference
An absolute difference is the magnitude of a difference with its sign removed, used to order change sizes in signed-rank analysis.
Changes of −6 and +6 have equal absolute size and therefore receive the same midrank.
Adjusted significance
Adjusted significance is a p-value modified for a defined multiple-comparison procedure, interpreted at the family significance level.
A pairwise table’s “Adj. Sig.” column can show a Bonferroni-adjusted result instead of raw p.
Asymptotic p-value
An asymptotic p-value uses a large-sample approximation to the null distribution instead of enumerating all allowed arrangements.
The reported significance may come from a normal or chi-square approximation to a rank statistic.
Asymptotic significance
Asymptotic significance is a software label for a p-value computed from a large-sample reference distribution, such as normal or chi-square.
An “Asymp. Sig.” entry should be distinguished from a separately reported exact significance.

B

Binomial null
A binomial null describes the number of positive changes among independent nonzero pairs with equal positive and negative probability.
Eight nonzero pairs give a binomial sign-test model with eight trials and probability .5.
Block
A block is a matched set of observations across conditions, such as the repeated measurements contributed by one participant.
Ranking within each block removes differences in overall speed between participants from the comparison.
Bonferroni correction
The Bonferroni correction controls familywise error by dividing the significance level by the number of comparisons in the family.
Four follow-ups at familywise .05 each use a raw-p cutoff of .0125 under Bonferroni.
Bootstrap
The bootstrap estimates a statistic’s sampling variability by repeatedly drawing same-sized samples with replacement from the observed sample.
For a sample of delivery times, repeated bootstrap medians show how much the estimated median varies under resampling.
Bootstrap standard error
A bootstrap standard error is the standard deviation of a statistic across resamples, estimating its sampling variability.
The SD of bootstrap means estimates uncertainty in the mean, not variability among the individual observations in the sample.

C

Central limit theorem
The central limit theorem explains why sample means approach a normal sampling distribution under suitable large-sample conditions.
Mildly skewed data can still support mean inference when the independent samples are large.
Concordant pair
A concordant pair consists of two cases ordered in the same direction on both variables, with the same case higher on each.
If the taller of two plants also has greater mass, that pair is concordant for height and mass.
Continuity correction
A continuity correction adjusts a discrete test statistic toward its null mean before comparison with a continuous approximation.
Moving U by 0.5 can slightly change the p-value reported by a normal approximation.
Critical value
A critical value marks the boundary of the rejection region for a specified statistic, significance level and alternative.
A smaller-U table can reject when the observed U is equal to or below the listed boundary.

D

Degrees of freedom
Degrees of freedom specify a reference distribution’s independent variation; these omnibus rank approximations use group count minus one.
Comparing four independent groups gives three degrees of freedom for the chi-square approximation.
Discordant pair
A discordant pair consists of two cases with opposite orderings on the variables, with the higher case on one lower on the other.
If one case has higher X but lower Y than the other, the pair contributes to the discordant count.
Dunn’s test
Dunn’s test compares two group mean ranks using the original all-group ranking and a standard error with a tie adjustment when needed.
Dunn’s p-values can differ from pairwise Mann–Whitney results because the ranking pools differ.

E

Effect-size convention
An effect-size convention fixes a formula, denominator and sign direction so that a reported magnitude can be interpreted consistently.
A paired r report states whether its denominator counts matched pairs or individual measurements.
Exact null distribution
An exact null distribution lists every allowable statistic value and its probability under the null hypothesis and sampling design.
Twenty equally likely rank allocations determine the exact test for two untied groups of three.
Exchangeability
Exchangeability means that the allowed reassignments have the same probability under the tested null and the study design.
Equal means alone do not make groups with different distributions exchangeable for raw-label shuffling.

F

Familywise error rate
The familywise error rate is the probability of at least one false rejection among the hypotheses in a defined comparison family.
Reporting several unadjusted pairwise tests can increase the chance of at least one false positive.
Friedman test
The Friedman test compares related conditions using ranks assigned within participants or matched blocks, preserving that dependence.
The same people trying several layouts provide one within-person ranking of those layouts each.

G

Group-specific U
A group-specific U counts cross-group pairs where the named group’s value is larger, counting each tie as half a win.
U = 12 out of 40 pairs gives a tie-adjusted larger-value proportion of .30 for that group.

H

H statistic
The H statistic measures separation among group mean ranks relative to the overall pooled mean rank in Kruskal–Wallis analysis.
A large H is compared with a chi-square reference distribution or a permutation distribution.
Hodges–Lehmann shift estimate
The two-group Hodges–Lehmann shift estimate is the median of all cross-group differences taken in a fixed direction.
For time measurements, the estimate describes the shift in seconds instead of rank units.
Holm’s procedure
Holm’s procedure tests ordered p-values against progressively less strict cutoffs, stopping at the first failed comparison.
The smallest of four p-values is tested at .05/4 before the second is tested at .05/3.

I

Independent groups
Independent groups contain separate sampling units, with one unit’s observations unrelated to those of units in the other groups.
Different participants assigned to different training methods supply independent group measurements.
Interquartile range
The interquartile range is the difference between the upper and lower quartiles, describing the spread of the middle half of the data.
A group median and interquartile range describe center and spread in the original measurement units.

J

Jonckheere–Terpstra test
The Jonckheere–Terpstra test evaluates a prespecified ordered alternative across independent groups using their rank ordering.
An expected decrease in errors across increasing training durations supplies an ordered alternative.

K

Kendall’s tau-a
Kendall’s tau-a is the number of concordant pairs minus discordant pairs divided by all case pairs, used without ties.
Nine concordant pairs and one discordant pair among five untied cases give tau-a of .80.
Kendall’s tau-b
Kendall’s tau-b adjusts the concordant-minus-discordant comparison for pairs tied on either variable through its denominator.
Ordered rating data with repeated values need a tie-aware coefficient such as tau-b.
Kendall’s W
Kendall’s W measures agreement among blocks about condition order, ranging from 0 to 1 and serving as a Friedman effect size.
W = 1 means every participant places the conditions in the same order in an untied comparison.
Kruskal–Wallis test
The Kruskal–Wallis test compares independent groups using a pooled ranking and an overall statistic based on group rank sums.
Three training groups can be tested together before deciding which pairs need follow-up comparisons.

L

Location shift
A location shift moves an entire distribution by a constant while preserving its shape and spread, changing its center.
A shared-shape shift allows a rank comparison to be described as a difference in population medians.

M

Mann–Whitney U test
The Mann–Whitney U test compares two independent groups through their pooled ranks and tests against a common-distribution null.
Separate groups rate two services, and the analysis asks whether one tends to receive higher ratings.
Matched-pairs rank-biserial correlation
The matched-pairs rank-biserial correlation is the positive-minus-negative rank sum divided by their combined rank sum.
An effect near +1 indicates that almost all signed rank weight points in the positive direction.
Mean rank
A mean rank is the average rank of a group’s observations within the specified ranking pool, without original measurement units.
A group mean rank of 9.2 describes ordering, so its completion-time median is reported in seconds.
Midrank
A midrank is the average of the positions occupied by tied observations, assigned equally to every observation in the tied set.
Two equal measurements occupying positions 6 and 7 each receive the average rank of 6.5.
Monotonic relationship
A monotonic relationship moves consistently upward or downward as the other variable rises, without needing a constant slope.
A steadily rising curved pattern can be monotonic even when a straight line fits it poorly.
Monte Carlo permutation
A Monte Carlo permutation procedure samples random allowed rearrangements instead of enumerating the entire permutation distribution.
With very many possible assignments, random reshuffles estimate the tail probability of the observed result.

N

Nonmonotonic relationship
A nonmonotonic relationship changes direction over its range, so its increasing and decreasing parts can cancel in a rank correlation.
A U-shaped scatterplot can show a clear relationship despite a Spearman coefficient near zero.
Nonparametric test
A nonparametric test avoids specifying a population shape such as normality, while still requiring assumptions about the design.
An ordinal satisfaction outcome can be compared across independent groups with a rank test.

O

Omnibus test
An omnibus test assesses an overall null hypothesis across several groups without identifying the particular pairwise differences.
A significant overall H leaves open whether one or several training-method pairs differ.
Ordinal outcome
An ordinal outcome has values with a meaningful order, but the distances between successive values are not known to be equal.
Ratings of “low,” “moderate” and “high” show order without giving equal numerical gaps.

P

Paired difference
A paired difference subtracts one matched measurement from the other in a fixed direction, retaining the link within a pair.
Defining change as “before minus after” makes a positive value represent a decrease afterward.
Pairwise follow-up
A pairwise follow-up tests a selected pair of groups or conditions after a broader analysis, using the appropriate dependence structure.
After Friedman, paired comparisons retain each participant’s two measurements for that condition pair.
Parametric test
A parametric test uses a population model described by parameters, such as the mean and variance of a normal distribution.
The classic independent t test models the group data and compares the two population means.
Percentile interval
A percentile interval uses specified quantiles of bootstrap statistics as its endpoints, without requiring symmetry around the estimate.
The 2.5th and 97.5th percentiles produce the endpoints of a 95% percentile interval.
Permutation test
A permutation test compares an observed statistic with statistics from label rearrangements allowed under the null and study design.
A randomized two-group study can shuffle treatment labels while holding measured outcomes fixed.
Pooled ranking
A pooled ranking orders observations from all comparison groups together, while retaining the original group membership.
Mann–Whitney uses a shared ranking so observations in either group can be compared in order.
Pratt’s method
Pratt’s method ranks zero differences with other absolute differences, then leaves the zero ranks out of positive and negative totals.
With many unchanged pairs, the choice between Pratt and zero-dropping methods belongs in the report.
Primary analysis
A primary analysis is the main test chosen in advance to answer the research question, before comparing observed p-values.
An analyst records Mann–Whitney as primary and explains why any sensitivity analysis is also reported.
Probability of superiority
The probability of superiority is the chance that a value from the named group exceeds one from the other, with ties given half weight.
A value of .70 favors the named group in 70% of tie-adjusted cross-group comparisons.

R

Random seed
A random seed initializes a pseudorandom number sequence so a resampling analysis can be repeated with the same simulation settings.
Recording the seed and resample count helps another analyst reproduce the bootstrap calculation.
Rank
A rank is an observation’s position in an ordered set, with the smallest value assigned rank 1 under ascending ranking.
The longest completion time receives the largest rank even if it greatly exceeds the others.
Rank difference
A rank difference subtracts a case’s rank on one variable from its rank on the other, using a fixed subtraction direction.
Squared rank differences enter Spearman’s shortcut when neither variable contains tied values.
Rank epsilon-squared
Rank epsilon-squared is an overall Kruskal–Wallis effect index calculated as H divided by N − 1, with the formula named explicitly.
The report gives both the effect-size name and formula because software naming conventions differ.
Rank sum
A rank sum is the total of the ranks assigned to observations in a group or condition, within the relevant ranking pool.
Subtracting the group’s minimum possible rank sum converts its observed rank sum to U.
Rank-biserial correlation
A rank-biserial correlation expresses directional imbalance in rank comparisons on a scale from −1 to 1, using a stated convention.
Reversing the group order can reverse the sign of the effect while preserving its magnitude.
Related conditions
Related conditions use measurements connected through the same participants or matched sets, requiring an analysis that preserves the links.
Each taster rating every sample produces related condition scores instead of separate independent groups.

S

Sampling with replacement
Sampling with replacement allows a selected observation to be drawn again, so a resample can repeat some values and omit others.
A nine-observation bootstrap resample still has nine draws even when several repeat the same order.
Sign flip
A sign flip reverses a paired difference, corresponding to swapping the two condition labels within that pair under the null.
A paired permutation test preserves matching by flipping differences instead of pooling all measurements.
Sign test
The sign test tests directional balance using positive and negative nonzero changes, without weighting the sizes of those changes.
A coarse ordered scale can support a sign test even when numerical rating gaps lack equal meaning.
Signed rank sum
A signed rank sum adds ranks belonging to differences with one sign, giving separate positive and negative rank totals.
The smaller of the positive and negative sums can be compared with a two-sided exact table.
Spearman’s correlation
Spearman’s correlation is Pearson correlation of the two variables’ ranks, measuring the direction and strength of monotonic association.
Practice time can rise with performance along a curve while retaining a strong positive rank correlation.
Standardized z statistic
A standardized z statistic expresses a test statistic’s distance from its null mean in units of its null standard deviation.
A large negative U-based z places the named group’s rank sum far below its null expectation.
Statistical power
Statistical power is the probability that a test rejects its null hypothesis when a specified alternative is true.
A larger sample can help a rank test detect a smaller shift between independent populations.

T

Tie correction
A tie correction adjusts a rank statistic or its null variance to account for the reduced rank variability caused by equal values.
A five-category rating scale can produce many ties that software includes in its variance calculation.

W

Wilcoxon rank-sum test
The Wilcoxon rank-sum test is the two-independent-sample rank procedure equivalent to Mann–Whitney, with a related statistic.
A software output headed “Wilcoxon rank sum” can represent the same comparison as a U test.
Wilcoxon signed-rank test
The Wilcoxon signed-rank test analyzes paired or one-sample differences using the signs and ranks of their absolute magnitudes.
Before and after scores are converted into one fixed-direction difference for each participant.

Z

Zero difference
A zero difference occurs when both measurements in a pair are equal and therefore provide no direction of change.
The original Wilcoxon procedure removes unchanged pairs before assigning the absolute ranks.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started