Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Selects and applies nonparametric tests such as Mann-Whitney U, Kruskal-Wallis, Wilcoxon, and Spearman when parametric assumptions fail.
83% 96%+13 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 19 of 23 without it.
Write a standard APA-style reporting sentence for a Wilcoxon signed-rank test where the median difference was 4.5, the test statistic W was 12.0, p was .003, and effect size r was .58.
The median difference is formatted as Mdn_diff = 4.5.
3 of 3 safety checks passed
A skill for selecting and applying nonparametric statistical tests when data violate parametric assumptions. Covers rank-based tests for group comparisons, correlation, and paired data, with implementation examples and guidance on reporting.
Use nonparametric tests when:
- Data are ordinal (Likert scales, rankings)
- Distribution is clearly non-normal (heavy skew, outliers)
- Sample size is very small (n < 15-20 per group)
- Homogeneity of variance is violated
- You are analyzing ranks or medians rather than means
Use parametric tests when:
- Data are approximately normal (or n > 30 by CLT)
- Variance is homogeneous across groups
- You need greater statistical power
- The parametric assumptions are reasonably met
| Parametric Test | Nonparametric Alternative | Use Case |
|---|---|---|
| Independent t-test | Mann-Whitney U | Compare 2 independent groups |
| Paired t-test | Wilcoxon signed-rank | Compare 2 related samples |
| One-way ANOVA | Kruskal-Wallis H | Compare 3+ independent groups |
| Repeated measures ANOVA | Friedman test | Compare 3+ related samples |
| Pearson correlation | Spearman rank correlation | Measure association |
| Chi-square test | Fisher's exact test | Compare proportions (small n) |
from scipy import stats
Next to this one in the catalogue, plus more from the same author.