Question: what is the formula of rank correlation?
Answer: The Formula for Spearman Rank Correlation where n is the number of data points of the two variables and di is the difference in the ranks of the ith element of each random variable considered. The Spearman correlation coefficient, ρ, can take values from +1 to -1.