Recall & Review
beginner
What is Jaccard similarity?
Jaccard similarity is a way to measure how similar two sets are. It is the size of the overlap divided by the size of the union of the sets.
Click to reveal answer
beginner
How do you calculate Jaccard similarity between two sets A and B?
Jaccard similarity = (Number of elements in both A and B) / (Number of elements in A or B). In formula: |A ∩ B| / |A ∪ B|.
Click to reveal answer
beginner
Why is Jaccard similarity useful in NLP?
It helps compare texts by looking at shared words or features, showing how much two texts overlap in content.
Click to reveal answer
beginner
What is the Jaccard similarity between the sets {apple, banana} and {banana, cherry}?
The intersection is {banana} (1 element), the union is {apple, banana, cherry} (3 elements). So similarity = 1/3 ≈ 0.33.
Click to reveal answer
beginner
Can Jaccard similarity be used for comparing sentences? How?
Yes. Convert sentences into sets of words, then calculate Jaccard similarity to see how many words they share compared to total unique words.
Click to reveal answer
What does Jaccard similarity measure?
✗ Incorrect
Jaccard similarity measures how much two sets overlap compared to their combined size.
If two sets have no elements in common, what is their Jaccard similarity?
✗ Incorrect
No overlap means intersection size is zero, so similarity is 0.
Which of these is the correct formula for Jaccard similarity?
✗ Incorrect
Jaccard similarity is intersection size divided by union size.
In NLP, what do we usually compare using Jaccard similarity?
✗ Incorrect
We compare sets of words to see how much two texts share.
If set A = {1, 2, 3} and set B = {2, 3, 4, 5}, what is their Jaccard similarity?
✗ Incorrect
Intersection is {2,3} (2 elements), union is {1,2,3,4,5} (5 elements), so 2/5 = 0.4.
Explain in your own words what Jaccard similarity is and how it can be used to compare two texts.
Think about how much two groups share compared to all items they have.
You got /4 concepts.
Describe how to calculate Jaccard similarity step-by-step for two example sets.
Use a simple example with fruits or numbers.
You got /4 concepts.