Jaccard similarity (or jaccard coefficient) is a similarity function for computing the similarity between two sets

Jaccard similarity (or jaccard coefficient) is a similarity function for computing the similarity between two sets

The jaccard coefficient between two sets $A$ and $B$ is defined as

$$\text{jaccard}(A, B) = \cfrac{| \ A \cap B \ | }{| \ A \cup B \ |}$$

I.e. it's the ratio between the number of elements that $A$ and $B$ share to the total number of elements in both $A$ and $B$

See also

history | excerpt history