Statistics & probability

Spearman rank correlation

Measure the association between two paired lists using ranks.

Spearman rank correlation
Esc to restore

Your inputs

Up to 50,000 values. No thousands separators. Absolute values up to 1 trillion; non-zero values must be at least 1e-100 in magnitude.

Up to 50,000 values. No thousands separators. Absolute values up to 1 trillion; non-zero values must be at least 1e-100 in magnitude.

Results update as you type. Larger files run when you press Update result.

Your result

LOCAL & PRIVATE

Your result will appear here.

Your inputs stay in this browser. Nothing is uploaded or saved.

A clear answer. Here’s how.

Assigns ascending average ranks to tied values, then calculates Pearson correlation of those ranks. Requires equal list lengths, at least two observations and non-constant ranks in both lists. Reports the coefficient only; no p-value, causal conclusion or assumption of a linear relationship in the original units is supplied.

See a worked example

Worked example

A fixed demonstration, separate from the values you enter above.

First sample
10, 12, 9, 11, 13
Second sample
8, 9, 11, 7, 10

Example result

Spearman rank correlation
-0.1
Paired observations
5

Average ranks are used for ties. No p-value is inferred.