**How to calculate the similarity of an asymmetric binary variable using Jaccard coefficient****?**

# There are many methods to calculate the similarity of data.Â Jaccard coefficient is one of them.

# Jaccard coefficient is used to calculate the similarity among asymmetric binary attributes.Â

**Contingency table for binary data:**

Object 2 |
||||

Object 1 |
Â | 1 / True / Positive | 0 / False / Negative | Sum |

1 /Â True / Positive | A | B | A + B | |

0 / False / Negative | C | D | C + D | |

Sum | A + C | B + D | Â |

In table 1 we can consider the following facts.

A represents that object 1 is True and object 2 is also True.

B represents that object 1 is True and object 2 isÂ False.

C represents that object 1 is False and object 2 isÂ True.

D represents that object 1 is False and object 2 is also False.

Name |
Fever |
Cough |
Test 1 |
Test 2 |
Test 3 |
Test 4 |

Asad | Negative | Yes | Â Negative | Â Positive | Â Negative | Â Negative |

Bilal | Negative | Â Yes | Â Negative | Positive | Â Positive | Â Negative |

Tahir | Positive | Yes | Â Negative | Â Negative | Â Negative | Â Negative |

In table 2, Asad, Bilal and Tahir are objects. Negative values represents False and Positive represents Negative.

**Consider 1 for positive/True Â and 0 for negative/False.**

Similarly, we can calculate the similarity of one object with each other object.

## Video Lecture

## Next Similar Tutorials

- Proximity Measure for Nominal Attributes – Click Here
- Distance measure for asymmetric binary attributes – Click Here
- Distance measure for symmetric binary variables – Click Here
- Euclidean distance in data mining – Click Here Euclidean distance Excel file – Click Here
- Jaccard coefficient similarity measure for asymmetric binary variables – Click Here