Kendall tau distance

The wikipedia article explains the editing distance of Kendall tau, but does not say too much about possible applications. When or why do you use tau distance? I am looking for examples in the real world, and have not come up with examples of mathematics.

+3
source share
3 answers

Kendall Tau can be used as a metric to compare similarities between search results. For example, you can compare how close the top 10 results generated by Google and Bing are (for the same query).

+2
source

. " ", , . Netflix.

+1

YouTube. , . , , . , . , , , . .

SciPy ( x1 x2 comment_count rating_average):

>>> x1 = [12, 2, 1, 12, 2]
>>> x2 = [1, 4, 7, 1, 0]
>>> tau, p_value = sp.stats.kendalltau(x1, x2)
>>> tau
-0.47140452079103173
>>> p_value
0.24821309157521476
0

Source: https://habr.com/ru/post/1766303/


All Articles