StatGardenREF. DESK
Calculators/Statistics/Spearman’s rank correlation
Statistics

Spearman’s rank correlation calculator

Measures a monotonic relationship between two variables using their ranks, ties included.

What this calculator does

Spearman’s rank correlation works out measures a monotonic relationship between two variables using their ranks, ties included. Enter your own figures above and the answer updates as you type: nothing is fixed in the code, so the result reflects exactly the numbers you supply.

The formula this calculator evaluates is printed under the tool and explained below, so you can check the working by hand or reuse it in a spreadsheet.

The formula

Formularₛ = 1 − 6Σd² / (n(n²−1)), using average ranks for tied values

The inputs explained

FieldWhat to enter
X valuesA list of numbers, separated by commas or spaces.
Y valuesA list of numbers, separated by commas or spaces.