Statistics 2nd ed

non-parametric-tests

Lesson 11 — Non-parametric Tests

mann whitney
wilcoxon test
kruskal wallis test
friedman test

Most tests so far (t-tests, ANOVA, regression) are parametric.
They assume:

  • Interval/ratio data
  • Approximately normal distribution
  • Homogeneity of variance

But what if these assumptions are not met?
Or if data are ranks or categories?

Then we use non-parametric tests.
They make fewer assumptions and are based on ranks, not raw scores.


Mann–Whitney U Test

When to Use:

  • Compare two independent groups, ordinal or non-normal data.
  • Non-parametric alternative to independent t-test.

Formula:
$$U = n_1 n_2 + \frac{n_1(n_1 + 1)}{2} - R_1$$

Where $$R_1$$ = sum of ranks for group 1.

Example:
Two groups (n = 5 each) ranked by performance. Compute rank sums, plug into U formula.


Wilcoxon Signed-Rank Test

When to Use:

  • Compare the same group measured twice.
  • Ordinal or non-normal data.
  • Non-parametric alternative to paired t-test.

Procedure:

  1. Compute differences (After – Before).
  2. Rank absolute differences.
  3. Add signs.
  4. Test statistic = smaller signed sum.

Example:
5 students tested before/after training → positive ranks dominate → training helps.


Kruskal–Wallis Test

When to Use:

  • Compare 3+ independent groups.
  • Ordinal or non-normal data.
  • Non-parametric alternative to one-way ANOVA.

Formula:
$$H = \frac{12}{N(N+1)} \sum \frac{R_j^2}{n_j} - 3(N+1)$$

Where:

  • $$R_j$$ = sum of ranks in group j
  • $$n_j$$ = group size
  • $$N$$ = total number of cases

Example:
Three therapy groups (n = 6 each). Rank improvement scores → compare H to χ² distribution.


Friedman Test

When to Use:

  • Compare 3+ related groups (repeated measures).
  • Ordinal or non-normal data.
  • Non-parametric alternative to repeated-measures ANOVA.

Formula:
$$Q = \frac{12}{nk(k+1)} \sum R_j^2 - 3n(k+1)$$

Where:

  • $$R_j$$ = rank sum for each condition
  • $$n$$ = number of subjects
  • $$k$$ = number of conditions

Example:
10 participants ranked across 3 learning tasks. Compare Q to χ² distribution.


Definition

  • Non-parametric tests: statistical tests based on ranks, not raw scores
  • Used when parametric assumptions fail or data are ordinal

Visuals

Figure 11.1 — Mann–Whitney U test: two groups compared by rank distributions.

Figure 11.2 — Wilcoxon signed-rank: before/after ranks with arrows.

Figure 11.3 — Kruskal–Wallis layout: three groups compared by median ranks.

Figure 11.4 — Friedman layout: subjects compared across repeated conditions.


Why This Matters

Non-parametric tests give us flexibility.
They extend statistical reasoning to real-world data that are messy, skewed, or categorical.
They are essential tools for psychology, education, and biology.

Practice self-test quiz

In the space below, please find practice problems and self-test quizzes. For full access, please signup free.

Lecture 1 — Scales of Measurement

scales of measurement

Before we can analyze data, we must know how it was measured.
The type of measurement determines which statistical test is appropriate.

Scientists and psychologists classify data into four scales of measurement: nominal, ordinal, interval, and ratio.


The Four Scales

  1. Nominal Scale
    • Numbers are just labels or categories.
    • Example: 1 = Male, 2 = Female.
    • No arithmetic can be done.
  2. Ordinal Scale
    • Numbers show order or rank, but not equal intervals.
    • Example: 1st place, 2nd place, 3rd place.
    • We know who is higher, but not by how much.
  3. Interval Scale
    • Numbers have equal intervals, but no true zero.
    • Example: Temperature in °C.
    • 20°C is warmer than 10°C, but not “twice as hot.”
  4. Ratio Scale
    • Numbers have equal intervals and a true zero.
    • Example: Height, weight, reaction time.
    • Ratios are meaningful: 20 kg is twice 10 kg.

Definition

  • Nominal: categories only
  • Ordinal: rank order
  • Interval: equal intervals, no true zero
  • Ratio: equal intervals, true zero

Drama Box — “My Kids, My Fingers”

A professor once explained measurement scales by holding up his hand.

  • “I have five fingers. That’s a ratio scale — it’s a real count, and zero means none.”
  • “If I say this finger is first, that’s an ordinal scale.”
  • “If I call them One, Two, Three, that’s just labels — a nominal scale.”
  • “If I measure temperature in Celsius on my skin, that’s interval — the numbers are spaced evenly, but zero doesn’t mean no heat.”

The story helps students remember: labels, ranks, intervals, ratios — the four levels of measurement.


Visuals

Figure L1 — The Ladder of Measurement Scales. Four rungs labeled: Nominal → Ordinal → Interval → Ratio, each with examples.


Why This Matters

  • Nominal/Ordinal data → non-parametric tests
  • Interval/Ratio data → parametric tests

This decision is the first step in statistics.
Before calculating a mean, a t-test, or an ANOVA, we must ask: How were the data measured?

Practice self-test quiz

In the space below, please find practice problems and self-test quizzes. For full access, please signup free.