Jaccard
The Jaccard index, also known as the Jaccard similarity coefficient, is a statistic used to measure the similarity between two finite sets. For sets A and B, it is defined as J(A,B) = |A ∩ B| / |A ∪ B|. The value lies between 0 and 1, with J(A,B) = 1 when the sets are identical and J(A,B) = 0 when they have no elements in common. When both sets are empty, the index is conventionally defined as 1. The Jaccard distance, D(A,B) = 1 − J(A,B), serves as a dissimilarity metric.
Named after the Swiss botanist Paul Jaccard, the measure was introduced in the early 20th century to
Extensions of the Jaccard index include the weighted or generalized Jaccard, which accommodates nonnegative real-valued data.