# What is the significance of the Jaccard similarity score?

I understand how to calculate the jaccard similarity , but never quite understood the logic behind why are we calculating it. How does it show the similarity between two sets? What relation exactly does it show? Can someone throw some light on this?

The Jaccard index is $J(A, B) = \frac{|A \cap B|}{|A\cup B|}$. The numerator $|A \cap B|$ counts the number of times an item occurs in both $A$ and $B$. The denominator $|A\cup B|$ counts the number of distinct items in total in $A$ and $B$.
Hence $J(A, B)$ is the fraction of items that are shared between the two sets.
• @yogeshagrawal I have used it in feature selection studies. When building a model that includes a feature selection step, how stable can you expect the selected feature set to be? By perturbing the data set (bootstrapping) and repeating the feature selection, I calculate $J(set_k, set_{k+1})$ to get an idea of how many/which of my originally selected features are likely to be selected in new data. – einar Feb 1 '19 at 13:04