Skip to main content

Jaccard Distance

Jaccard Distance is a measure used to quantify the dissimilarity between two sets. It is derived from the Jaccard index (also known as the Jaccard similarity coefficient), which measures the similarity between finite sample sets. The Jaccard index is calculated as the size of the intersection divided by the size of the union of the sample sets.

The Jaccard Distance, which quantifies how dissimilar two sets are, is calculated as the complement of the Jaccard index. It is defined as:

Jaccard Distance=1Jaccard Index\text{Jaccard Distance} = 1 - \text{Jaccard Index}

Or, in terms of set notation:

Jaccard Distance(A,B)=1ABAB\text{Jaccard Distance} (A, B) = 1 - \frac{|A \cap B|}{|A \cup B|}


  • AA and BB are two sets,
  • AB|A \cap B| is the size of the intersection of the sets AA and BB, and
  • AB|A \cup B| is the size of the union of the sets AA and BB.

The Jaccard Distance ranges from 0 to 1, where 0 indicates that the sets are identical, and 1 indicates that the sets have no elements in common. This measure is widely used in various fields such as computational biology, information retrieval, and machine learning, particularly in clustering and similarity measurement tasks.