It has three increasing pairs: (3,4), (2,4), and (1,4).
since Kendall's τ is given by: the number of increasing pairs the number of all pairs − 1, In this case, we can obtain spearman's ρ as follows: "John" moved by d 1 = 2 words, "hit" moved by d 2 = 0 words, "Bob" moved by d 3 = 2 words, and "yesterday" moved by τ considers only the direction of the movement, whereas ρ considers the distance of the movement.