Dice-Sørensen Coefficient — Definition, Formula & Example
The Dice-Sørensen coefficient is a number from 0 to 1 that measures how much two groups overlap. It takes twice the number of items the groups share and divides by the total number of items in both groups. A value of 0 means the groups share nothing. A value of 1 means they are identical.
For finite sets and , not both empty, the Dice-Sørensen coefficient is . It satisfies . It equals 0 exactly when and equals 1 exactly when . With binary presence/absence data, let count items in both sets, items only in , and items only in . Then .
Key Formula
Where:
- = Number of elements in set A
- = Number of elements in set B
- = Number of elements that belong to both A and B
Worked Example
Problem: A biologist surveys birds at two ponds. She records 8 species at Pond A and 12 species at Pond B. Six species appear at both ponds. Find the Dice-Sørensen coefficient for the two ponds, and compare it with the Jaccard index.
Step 1: Identify the set sizes and the overlap.
Step 2: Double the shared count and divide by the sum of the two set sizes. Each shared species appears once in each list, so it is counted twice in the denominator. The factor of 2 in the numerator balances that.
Step 3: For comparison, the Jaccard index divides the overlap by the size of the union, . The two measures always satisfy , so Dice is never smaller than Jaccard.
Answer: The Dice-Sørensen coefficient is 0.6. The Jaccard index for the same ponds is about 0.43. Dice gives a higher value because it weights the shared species more heavily.
Why It Matters
Thorvald Sørensen used this coefficient in 1948 to compare plant communities, and ecologists still use it to compare species lists between sites. In medical imaging, the Dice score measures how well a computer-drawn outline of a tumor overlaps a doctor's outline. In machine learning, the F1 score for a binary classifier, , is the same formula.
Common Mistakes
Mistake: Leaving out the factor of 2 and computing , which gives for the ponds.
Correction: Without the 2, even two identical sets would score only 0.5, because every shared element is counted once in and again in . Keep the 2 so the scale runs from 0 to 1.
