The Spearman correlation is a non-parametric alternative to the linear correlation coefficient.

d = different in ranking
n = number of paired data
Assumptions of Spearman Correlation
- Random sampling
- Independent measurements
- Data should be measurements counts or ordinal