- Learn
- Mathematics
- Statistics
- Intermediate Statistics – Regression and ANOVA
- Nonparametric Tests
Nonparametric Tests
IntermediateLesson 7 of 10 in Intermediate Statistics – Regression and ANOVA Course
What you will learn
- 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 doubtExplain 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 valuesAssign 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 approximationsExplain 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.
- Recognize when parametric assumptions are in doubt
- 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 handRank 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 sizesUse 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 dataCompute 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 designsDeal 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.
- Run the Mann–Whitney U test by hand
- 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 testRank 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 resultLocate 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 measuresRank the conditions within each participant, compute the Friedman statistic and Kendall's W, and follow a significant result with corrected pairwise tests.
- Run the Kruskal–Wallis test
- 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 correlationRank each variable, compute r_s, test it and recognize what a monotonic relationship is and is not.
- Compute and interpret Kendall's tauCount concordant and discordant pairs, compute tau-a and tau-b, test tau, and compare it with Spearman's correlation.
- Compute and interpret Spearman's rank correlation
- 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 testExplain 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 bootstrapResample with replacement to approximate a sampling distribution, build a percentile confidence interval, and recognize the limits of the bootstrap.
- Run a permutation test
- 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 dataWork 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 resultsFind 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.
- Choose a test for the design and the data
Nonparametric Tests study guide
1Decide 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 , 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 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 or Kendall's (Pearson's ). 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 . 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 into .
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 , which midranks do not change. For the seven values above, and . 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 .
- 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 ways to choose which ranks go to group 1, so each arrangement has probability .
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 , 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 . 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 when the statistic is less than or equal to the critical value. For two groups of 5 and 6 at two-tailed, the critical U is 3: doubled is about .030, while doubled is about .052.
Approximate a null distribution
For larger samples, the rank statistic is approximately normal under with a known mean and standard deviation, so is compared with the standard normal distribution: gives two-tailed. The Kruskal–Wallis and Friedman statistics are compared with a chi-square distribution with degrees of freedom instead.
A continuity correction moves the statistic 0.5 toward its null mean before computing , 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.
2Compare 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 or the count ), and together they are called the Wilcoxon–Mann–Whitney test.
State the comparison
Hypotheses: : the two populations have the same distribution, so a randomly chosen value from group 1 is as likely to be larger than a value from group 2 as to be smaller: . Without ties this means ; with ties, counting a tie as half, . (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 values and rank them, using midranks for ties; (2) add the ranks in each group to get and ; (3) compute and ; (4) check that ; (5) compare the smaller U with a table, or find its exact p-value.
U has a direct meaning: 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 , and under its mean is .
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 ; text: 5, 7, 8, 9, 10, 11, so . Check: .
and ; check . 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 , at two-tailed is 3, and , so reject . The exact two-sided p-value is . Video learners tended to finish faster (medians 31 s and 45 s).
The same data analyzed with Welch's t test give , , : 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 .
- 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 , U has mean and standard deviation , and is approximately standard normal. Example: , , . Then , , , and two-sided .
With ties, the variance is reduced to , where each is the number of values sharing one tied rank. Software applies this correction automatically.
Describe effect size and direction
Effect size , with the total number of observations. In the large-sample example, , a medium effect by Cohen's guidelines for (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 : 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 , 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, of video–text pairs had the text learner slower.
The rank-biserial correlation is , which equals : 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: in the direction of slower text learners; large-sample example: 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 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: : the distribution of differences is symmetric around 0. When the differences are symmetric, this is a test of whether the median difference is 0. (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 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 and the negative ranks to get ; (6) check that ; (7) the test statistic 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 .
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 and ; check . The critical value for at two-tailed is 3, and , so reject . The exact two-sided p-value is : of the equally likely sign patterns, 3 give and 3 give . 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 , subtract 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 .
- 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 . Pratt's method ranks the zeros with the other absolute differences and then leaves their ranks out of and . 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 and without ties, either signed rank sum ( or ) has mean and standard deviation . Standardize one of them and use both tails of the normal distribution for a two-sided p-value. For the anxiety example (): mean 18, SD , and for , (using gives ); two-sided , close to the exact .023. With this small, report the exact value.
Describe the effect
Effect size : textbooks differ on . Using the number of pairs (8) gives ; using the total number of observations (16), as Field does, gives . State which you used.
The matched-pairs rank-biserial correlation avoids that choice: . For the anxiety data, : 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 , the number of positive differences follows a binomial distribution with trials and probability 0.5. In the anxiety data, 7 of 8 differences are positive, so two-sided . 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 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 , the sum of the positive ranks (34 in the anxiety example), with differences taken as first argument minus second. Other programs report the smaller sum or a 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.
3Compare 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. : all populations have the same distribution. : at least one population tends to give larger or smaller values than another.
Calculate the overall statistic
Method: (1) pool all observations and rank them, with midranks for ties; (2) add the ranks in each group to get ; (3) compute ; (4) compare with a chi-square distribution with degrees of freedom, where is the number of groups. Large values of H are evidence against .
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 , , ; check .
. With , the critical value at .05 is 5.99, so reject ; 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 : . 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 , 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 push the chance of at least one false rejection well above .05 (to 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 from the Mann–Whitney normal approximation without continuity correction. For the shelf example, .
Key Takeaways
- Kruskal–Wallis pools ranks across independent groups.
- Large H gives evidence against a common distribution.
- The chi-square approximation has 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: , 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, , per group): the standard error is . B vs A: , . B vs C: , . A vs C: , .
Adjust the family of tests
Bonferroni correction: multiply each p-value by the number of comparisons (capped at 1), or equivalently compare each p with . With : 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 , the second by , and so on, stopping at the first that is not significant. Using unrounded p-values for decisions: , , . 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: ; for the example . Another index, , gives . For a pairwise effect size, run the Mann–Whitney test on that pair and use its own z: . For B vs C, every B value exceeds every C value, so , and (rank-biserial correlation 1). Dividing Dunn's z by 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: . Name the index you report, because packages use these names differently.
Example report: "The number of errors differed between training methods, , , . Dunn's tests with Bonferroni correction showed more errors with method B (Mdn = 25) than with method C (Mdn = 13), ; 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. : 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 participants, rank their scores from 1 to ; (2) add the ranks for each condition to get ; (3) check that ; (4) compute ; (5) compare with a chi-square distribution with 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 , , ; check .
. With , (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: . Here . 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 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 . 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 ; A vs B and B vs C each give . 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, , , ; 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 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.
4Measure 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 (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 gives the same value, where 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 and .
Test the association
Testing : no monotonic association in the population. For small , use exact tables or software: for the example, the exact two-sided p-value over all orderings is about .001. For larger samples, with 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 = 1 to 8 and = 3, 4, 6, 5, 7, 8, 9, 40, Pearson's because the value 40 distorts the linear fit, while because the order of almost matches the order of .
A claim such as " means the variables are unrelated." misses an important distinction. detects only monotonic patterns. For = −3, −2, −1, 0, 1, 2, 3 and , although is completely determined by . 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, , , exact two-sided ." Degrees of freedom belong to the approximate t test; when that test is used, report them with it, for example .
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 is also higher on , and a discordant pair when it is lower on . With cases there are pairs.
Count concordant and discordant pairs
Without ties, Kendall's tau is , where and 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 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 , and .
Interpretation: is the probability that a randomly chosen pair is concordant minus the probability that it is discordant. Here .
Allow for ties
With ties, use , where , is the number of pairs tied on and the number tied on . Example: = 1, 2, 2, 3, 4 and = 1, 3, 2, 2, 5 give , , , , so (while ). Software usually reports .
For most data sets is smaller than 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 or .
Test and compare tau
Testing: small samples use exact distributions (two-sided for the example). For larger samples without ties, , here . With ties this formula does not apply; software uses a tie-corrected variance of 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.
5Test 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: words.
there are 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 . Four give a difference of at least 8.25 in either direction, so the two-sided p-value is . 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 ), draw a large random sample of reshuffles, such as 10,000. Count the observed arrangement as one of them: , where of 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 each difference is equally likely to be positive or negative, so the null distribution comes from flipping the signs of the differences ( patterns).
A claim such as "Permutation tests need no assumptions." misses an important distinction. they require exchangeability under . 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 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 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 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.
6Choose, 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 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 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 , which is U for the first-named group (the rank sum of x minus ); in the shelf example it gives with the video times first and with the text times first, with the same p-value. With paired = TRUE it reports . kruskal.test and friedman.test report a chi-squared value, df and p-value; cor.test(x, y, method = "spearman") reports and a statistic , which equals 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, , 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 instead of .
- For repeated measures, report the number of pairs or blocks clearly.
Nonparametric Tests examples
1Decide when rank-based tests are the right tool
15 steps
- 1IntroductionStart 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.
- 2ExplanationRead 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.
- 3ExplanationLook 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.
- 4ExplanationSee 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.
- 5ChallengeChoose 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.
- 6ExplanationChoose 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).
- 7ExplanationShare 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.
- 8TipCheck the rank total
Check the ranks with the sum , which midranks do not change. For the seven values above, and . A wrong total reveals a skipped value or a tie handled incorrectly.
- 9ChallengeCheck 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 . Assigning both 6s rank 2 would lower the total and distort a later group rank sum.
- 10ExplanationList 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 ways to choose which ranks go to group 1, so each arrangement has probability .
- 11Key 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 , 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 . Check this before collecting a very small sample.
- 12ExplanationAdjust a continuous approximation
A continuity correction moves the statistic 0.5 toward its null mean before computing , because the statistic moves in steps while the normal curve is continuous. Some software applies it by default (R's
wilcox.testdoes when it uses the normal approximation) and some does not, so two programs can report slightly different p-values for the same data. - 13ChallengeExplain 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 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.
- 14ChallengeConnect 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 .
- 15RecapCarry 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.
2Compare two groups or two conditions with rank tests
21 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the question
- 2ExplanationBuild U from pooled ranks
- 3ExampleRank the assembly times
- 4ExplanationCalculate and interpret U
- 5ChallengeFind both U values
- 6ExampleStandardize the large-sample U
- 7ExamplePut U on a probability scale
- 8ExampleEstimate the shift
- 9Key InsightDecide what the result compares
- 10ChallengeTranslate U into an effect
- 11ExplanationBuild signed ranks
- 12ExampleCalculate the paired changes
- 13ExplanationAdd and test the signed ranks
- 14ChallengeBuild the signed sums
- 15TipDecide how to handle zeros
- 16ExplanationShare ranks across absolute ties
- 17ExplanationExpress signed-rank balance
- 18ExplanationCount directions with a sign test
- 19ChallengeSelect the paired test
- 20ChallengeChoose a statistic and an interpretation
- 21RecapCarry the analysis into a report
3Compare three or more groups or conditions with rank tests
18 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the question
- 2ExplanationBuild an overall rank statistic
- 3ExampleRank the training groups
- 4ExplanationCalculate H and compare methods
- 5ChallengeRead the overall conclusion
- 6ExplanationCompare two pooled mean ranks
- 7ExampleWork out the pairwise z values
- 8ExplanationControl the comparison family
- 9ExplanationApply Holm in order
- 10ChallengeApply two corrections
- 11ExplanationRank within participants
- 12ExampleAdd the layout rank sums
- 13ExplanationCalculate the Friedman statistic
- 14ExplanationDescribe condition agreement
- 15Key InsightSee a follow-up limit
- 16ChallengeKeep the block structure
- 17ChallengeChoose the overall and follow-up tests
- 18RecapCarry the analysis into a report
4Measure monotonic association with rank correlations
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the question
- 2ExplanationRecognize monotonic association
- 3ExplanationCalculate correlation from ranks
- 4ExampleWork through the rank differences
- 5Key InsightInspect the shape before interpreting
- 6ChallengeChoose the tied-data method
- 7ExplanationCompare pairs of cases
- 8ExampleCount agreements and reversals
- 9ExampleCorrect the denominator for ties
- 10ChallengeCompare concordance with correlation
- 11ChallengeExplain why two coefficients differ
- 12RecapCarry the analysis into a report
5Test and estimate by resampling
14 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the question
- 2ExplanationMake the null concrete
- 3ExampleFind the observed mean difference
- 4ExplanationCount extreme assignments
- 5ExplanationSample a large permutation space
- 6ExplanationPreserve a paired design
- 7ChallengeCount a simulation tail
- 8ExplanationDraw repeated bootstrap samples
- 9ExplanationRead variability and percentiles
- 10ExampleBuild the delivery-median interval
- 11ExplanationPreserve pairs and groups
- 12ChallengeKeep a bootstrap sample valid
- 13ChallengeChoose what to resample
- 14RecapCarry the analysis into a report
6Choose, run and report the right test
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionStart with the question
- 2ExplanationStart from the research design
- 3ExplanationMatch design to a rank test
- 4TipChoose a primary analysis
- 5ChallengeMatch the scale and pairing
- 6ExampleDecode R statistics
- 7ExplanationFind the rank options
- 8ExplanationGather the report ingredients
- 9TipReport small p-values
- 10ChallengeRepair a report
- 11ChallengeMake the paired analysis reproducible
- 12RecapCarry the analysis into a report
Nonparametric Tests practice questions
Set 1: Compare groups and interpret effects10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
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
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Absolute difference
Adjusted significance
Asymptotic p-value
Asymptotic significance
B
Binomial null
Block
Bonferroni correction
Bootstrap
Bootstrap standard error
C
Central limit theorem
Concordant pair
Continuity correction
Critical value
D
Degrees of freedom
Discordant pair
Dunn’s test
E
Effect-size convention
Exact null distribution
Exchangeability
F
Familywise error rate
Friedman test
G
Group-specific U
H
H statistic
Hodges–Lehmann shift estimate
Holm’s procedure
I
Independent groups
Interquartile range
J
Jonckheere–Terpstra test
K
Kendall’s tau-a
Kendall’s tau-b
Kendall’s W
Kruskal–Wallis test
L
Location shift
M
Mann–Whitney U test
Matched-pairs rank-biserial correlation
Mean rank
Midrank
Monotonic relationship
Monte Carlo permutation
N
Nonmonotonic relationship
Nonparametric test
O
Omnibus test
Ordinal outcome
P
Paired difference
Pairwise follow-up
Parametric test
Percentile interval
Permutation test
Pooled ranking
Pratt’s method
Primary analysis
Probability of superiority
R
Random seed
Rank
Rank difference
Rank epsilon-squared
Rank sum
Rank-biserial correlation
Related conditions
S
Sampling with replacement
Sign flip
Sign test
Signed rank sum
Spearman’s correlation
Standardized z statistic
Statistical power
T
Tie correction
W
Wilcoxon rank-sum test
Wilcoxon signed-rank test
Z
Zero difference
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.