Professor Turing

Study guides

Parametric and nonparametric tests

Last updated: 2026-11-26

A parametric test assumes the data come from a particular family of distributions and works with its parameters, as a t test does with means and a standard deviation under a normal model. A nonparametric test asks for fewer assumptions about that shape, often by working with ranks or signs. Fewer assumptions is different from none.

Start learning No account needed

1. What changes between them

The familiar pairs are a two-sample t test beside the Mann-Whitney test (also called the Wilcoxon rank sum test), a paired t test beside the Wilcoxon signed rank test, and one-way ANOVA beside the Kruskal-Wallis test. The rank sum and Kruskal-Wallis tests replace each value with its position in the combined sorted list, so how far away the largest value lies stops mattering.

2. A worked example: one long time

Two groups of five people finish a task, timed in seconds. One time in group B is 95. Predict whether each test will find a difference at alpha 0.05, then look. The numbers are computed by scripts/parametric-vs-nonparametric-tests-worked-example.py in the Professor Turing repository.

A: 12, 14, 15, 16, 18
B with one long time: 17, 19, 20, 21, 95
  means 15 and 34.4, standard deviations 2.24 and 33.91
  t test: t = 1.28, df = 8, p = 0.2376
  rank sum: ranks of A = 1, 2, 3, 4, 6; U = 1, p = 4/252 = 0.0159
B with 95 replaced by 22: 17, 19, 20, 21, 22
  means 15 and 19.8, standard deviations 2.24 and 1.92
  t test: t = 3.64, df = 8, p = 0.0066
  rank sum: ranks of A = 1, 2, 3, 4, 6; U = 1, p = 4/252 = 0.0159
3 values per group, no overlap: smallest p = 2/20 = 0.1000

With the 95 in place, the gap between the means is large, but so is the spread in B, and the pooled t test gives p = 0.2376. The rank sum test gives p = 0.0159, because 95 is just the highest rank. Replace 95 with 22 and the t test gives p = 0.0066 while the rank result stays the same.

The first t test is on weak ground. The pooled version assumes equal variances in the two populations, and 2.24 beside 33.91 is far from that. A normal model also fits group B poorly. A version of the t test that allows unequal spreads, called Welch's t test or the Aspin-Welch test, drops the first assumption. It still assumes normality.

3. Which problem should move you to ranks

What you seeWhat to consider
Small samples with strong skew or an outlierA rank test, or a transformation chosen for a reason you can state
Ordered categories, such as rarely, monthly, weeklyA rank method, which avoids assigning scores to the categories
Unequal spreads, shape otherwise reasonableWelch's t test
Values that depend on one anotherA method for that design; switching to ranks does not repair it

The table is our starting point. Nonparametric tests are often used when the assumptions of parametric tests are clearly violated, and nonparametric methods are common for ranked data. Transforming the data is another route, used to bring data closer to the assumptions of a method. Decide on the test before you look at the p-values.

4. A common misconception: the nonparametric test is the safe default

Fewer assumptions have a cost. When the parametric assumptions are met, nonparametric tests have less statistical power, so you can need a larger sample to reach the same confidence. Tied values also need special handling in a rank test. With three values in each group, the output shows that even complete separation gives a two-sided p of 0.1000, so this rank test cannot reach 0.05 there.

The two tests also answer different questions. The t test is about a difference in means. The rank sum statistic U is built from ranks. With no ties, it counts the pairs, one value from each group, in which a chosen group has the larger value. NIST's handbook describes it as a comparison of central tendency without assuming normality. If your question concerns a total or an average cost, a result about ranks does not answer it on its own.

5. Test yourself

Case 1. In the first data set, 95 becomes 950. What happens to the rank sum p-value?

Answer to case 1

It stays 0.0159, since 950 has the same rank as 95.

Case 2. Group A is 3, 5, 7 and group B is 8, 9, 10. What is the smaller U, and the two-sided p?

Answer to case 2

No A value exceeds a B value, so U = 0. Of the 20 ways to assign ranks, 2 are that extreme, so p = 0.1.

Case 3. The same ten students are measured before and after a course, and the differences are strongly skewed. Is the rank sum test the one to use?

Answer to case 3

No. The data are paired, so look at the differences. A sign test is one option. The signed rank test is another if the distribution of the differences is symmetric.

For the parametric side, see what is a t test, and for study help, how to study for a statistics exam. For counts in categories, see what is a chi-square test.

What the sources found, and their limits

Wikipedia, "Nonparametric statistics," "Parametric statistics" and "Data transformation (statistics)." The assumptions behind each family of methods, when nonparametric tests are used, their loss of power, ranked data, and why data are transformed. Limits: reference articles under CC BY-SA 4.0. Sources: Nonparametric statistics, Parametric statistics and Data transformation, read on 2026-11-25.

NIST/SEMATECH e-Handbook of Statistical Methods, sections 7.3.5 and 7.4.1. Gives the Mann-Whitney procedure and the Kruskal-Wallis test, the latter assuming continuous distributions. Sources: section 7.3.5 and section 7.4.1, read on 2026-11-25.

Wikipedia, "Welch's t-test," "Mann-Whitney U test" and "Sign test." The unequal variances t test and its normality assumption, the meaning of U, the handling of ties, and a test based on the signs of paired differences. Limits: reference articles under CC BY-SA 4.0. Sources: Welch's t-test, Mann-Whitney U test and Sign test, read on 2026-11-25.

NIST/SEMATECH e-Handbook, section 1.3.5.3, and NIST Dataplot reference pages. The handbook gives the pooled form of the two-sample t test for equal variances. The Dataplot pages list symmetry of the differences among the signed rank test's assumptions and describe Kruskal-Wallis as a nonparametric test for the one-factor ANOVA case. Sources: two-sample t test, signed rank test and Kruskal-Wallis test, read on 2026-11-25.

The task times, the table and the self-test cases are ours.

How Professor Turing helps

Professor Turing is a tutor for adults learning any subject, in college or on their own. It asks you questions instead of giving the final answer, does not grade a bare guess, and remembers what you got wrong. No account is needed to start. It's an AI tutor, free to try.

Bring a data set and the test you were about to run. Its first reply asks about your attempt, such as which assumption you checked, before it teaches anything. You must be 18 or older, and guest conversations are deleted 7 days after the last activity.

FAQ

Why use a parametric test at all? When its assumptions are met, it has more statistical power than a rank test, and it works with a quantity such as a difference in means.

Does a nonparametric test have no assumptions? It has fewer assumptions about the shape of the distribution. The design still matters, for example whether values are paired or independent, and particular tests add conditions of their own.

Start with what you're working on

Tell the tutor about your data and let it ask you the questions.

Start learning No account needed

See also: how to study for a statistics exam · all study guides