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
| Field | What to enter |
|---|---|
| X values | A list of numbers, separated by commas or spaces. |
| Y values | A list of numbers, separated by commas or spaces. |