Nonparametric Tests
Analyze → Nonparametric Tests. Use these when the assumptions behind a t-test or ANOVA (normality, equal variances) do not hold, or when your data are ordinal ranks rather than true scale values. They test distributions and medians using ranks, not means.
The tests at a glance
| Test | Parametric analogue | Use when |
|---|---|---|
| Mann-Whitney U | Independent-samples t | Two independent groups |
| Wilcoxon Signed-Rank | Paired t | Two related measurements |
| Sign test | Paired t | Two related measurements (direction only) |
| Kruskal-Wallis | One-way ANOVA | Three+ independent groups |
| Friedman | Repeated-measures ANOVA | Three+ related measurements |
| Kendall's W | Repeated-measures ANOVA | Agreement among several rankers |
| Runs test | — | Randomness of a sequence |
| Binomial test | — | A proportion vs an expected value |
| Tests of Normality | — | Whether a variable is normally distributed |
How to fill the dialogs
Each test takes the variable(s) it needs and, for the group-comparison tests, a grouping variable:
- Mann-Whitney / Kruskal-Wallis — a test variable and a grouping variable (two groups for Mann-Whitney, three+ for Kruskal-Wallis).
- Wilcoxon / Sign — a pair of related variables.
- Friedman — three or more related variables.
- Kendall's W — two or more related variables (the items each case ranks); reports the coefficient of concordance (0..1 agreement) and its equivalent Friedman chi-square. It is the same statistic as Friedman, rescaled to read as an agreement measure — use it when the question is "how much do the rankers agree?" rather than "do the conditions differ?".
- Runs test — one variable; tests whether values fall in a random order around a cut point, with an optional exact small-sample significance.
- Binomial test — one variable and an expected proportion; reports an exact or asymptotic significance.
- Tests of Normality — one or more variables; reports Shapiro-Wilk and Kolmogorov-Smirnov (Lilliefors) with a reject/retain Decision at your chosen α (set in Options).
Reading the output
The rank-based tests report mean ranks per group, the test statistic (U, W, H, χ²…), and the significance. A small significance means the groups' distributions (or the paired differences) differ more than chance would explain.
Exact small-sample significance
Mann-Whitney, Wilcoxon and Kruskal-Wallis each offer an Exact small-sample significance option (and Runs and Binomial have their own exact paths). The asymptotic (normal / χ²) p-value these tests report is only reliable for reasonably large samples; for small ones, tick Exact to add an Exact Sig. column computed from the statistic's true null distribution by enumeration. An exact value is shown only when it applies — tied data breaks it (the rank arrangements are no longer equally likely) and very large samples are not enumerated — and the output falls back to the asymptotic value with a note when it cannot.
Example
Earlier, Explore suggested FastingGlucose is not normally distributed within groups. Rather than an independent-samples t-test of glucose by Diabetic, run Mann-Whitney U with FastingGlucose as the test variable and Diabetic as the grouping variable — a valid comparison that does not assume normality.
See also
- Compare Means — the parametric counterparts.
- Tests of Normality also appear in Explore.