Spearman's Rank-Order Correlation (monotonic / nonparametric)

Verified

Advanced & specialized

Independently verified. Every statistic this test reports has been re-derived against an independent reference — never the library the pipeline itself calls — the rendered output was read back in a browser, and the result is locked with a committed regression suite.

Run this test straight away on a free built-in teaching dataset — no data of your own needed — or bring your own. Either opens the guided workspace: variable setup, assumption diagnostics, results with effect sizes and confidence intervals, figures, and APA-ready reporting.

Loading teaching datasets…

Or use your own dataset

Loading your datasets…

Measures the strength and direction of the MONOTONIC relationship between two rankable (ordinal, interval, or ratio) variables on the same cases.

Captures linear and non-linear-monotone associations alike. Operates on ranks rather than raw values, so it is robust to outliers and to non-normal distributions. Reports ρ on a [-1, +1] scale, Fisher-z 95% CI, t-approximation, p-value, and ρ².

Worked example

Does job rank relate to satisfaction, when both are ordinal?

For 60 employees, job rank (1–5) and satisfaction (1–7) were recorded. Both are ordinal, so Spearman's rho measures the monotonic association.

Result

Rank and satisfaction were positively associated, rs(58) = .58, p < .001 — higher-ranked staff reported more satisfaction.

How you'd report it (APA)

A Spearman correlation showed a significant positive association between job rank and satisfaction, rs(58) = .58, p < .001.

Try it yourself: Load this ready-made sample and follow the run above.

When to use it

  • Two ordinal variables (Likert × Likert, ranking × ranking)
    A market researcher measures customer satisfaction (1–7 Likert) and recommendation intent (1–10 Likert) for 200 customers.
  • Two continuous variables with non-normal distributions or outliers
    An economist measures household income and annual savings in 500 households.
  • Monotone but non-linear relationships (exponential, logarithmic, growth curves)
    A pharmacologist measures drug dose (mg) and plasma concentration (ng/mL) over a wide dose range.

When NOT to — use instead

Hypotheses

H₀: ρ_s = 0 — no monotonic relationship between x and y in the population.
Hₐ: ρ_s ≠ 0 — there is a non-zero monotonic association (two-sided default).

Parameter tested: population Spearman rank correlation ρ_s

Assumptions (and what to do if they fail)

Scatter shows a monotonic trend (no U-shape or reversal).high

Check: Inspect the scatterplot; look for a consistently up or consistently down pattern.

If violated: Non-monotonic relationships are under-represented by ρ; the test loses power and can point in the wrong direction.

Ties in x or y are not so dominant that the rank-based p-value becomes unstable.low

Check: Report the largest tie block.

If violated: Heavy ties reduce power and can bias the large-sample approximation; exact p-values are preferable.

Ready to run a Spearman's Rank-Order Correlation (monotonic / nonparametric) on your own data?

Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.

Run this test →