4 ms·
This is one of my favorite distance metrics* to show people! For example, perhaps one person likes Reddit and HN, while someone else likes HN and SO. Then the
by psyklic 4y ago
This is one of my favorite distance metrics* to show people!
For example, perhaps one person likes Reddit and HN, while someone else likes HN and SO.
Then their Jaccard Index would be 1/3, since they have one thing in common out of three.
* Technically it computes "similarity" (larger number == more similar), but `1 - Jaccard Index` is a distance (smaller number == more similar).
- aquafox 4y agoVery useful indeed. I used it to compute the similarity of patients with different diseases, e.g. if patient1 has 3 diseases and patient2 has 2 of those three, they should be treated more similar than if patient1 has only 1 disease and patient2 has another one. Euclidean distance would assign the same value in both cases.