Question: how to calculate kendall's rank correlation coefficient?
Answer: Step 2: Count the number of concordant pairs, using the second column. ... 
Step 3: Count the number of discordant pairs and insert them into the next column. ... 
Step 4: Sum the values in the two columns: