Mathwords logoMathwords

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 AA and BB, not both empty, the Dice-Sørensen coefficient is DSC(A,B)=2∣A∩B∣∣A∣+∣B∣\text{DSC}(A,B) = \dfrac{2|A \cap B|}{|A| + |B|}. It satisfies 0≤DSC≤10 \le \text{DSC} \le 1. It equals 0 exactly when A∩B=∅A \cap B = \varnothing and equals 1 exactly when A=BA = B. With binary presence/absence data, let aa count items in both sets, bb items only in AA, and cc items only in BB. Then DSC=2a2a+b+c\text{DSC} = \dfrac{2a}{2a + b + c}.

Key Formula

DSC=2 ∣A∩B∣∣A∣+∣B∣\text{DSC} = \frac{2\,|A \cap B|}{|A| + |B|}
Where:
  • ∣A∣|A| = Number of elements in set A
  • ∣B∣|B| = Number of elements in set B
  • ∣A∩B∣|A \cap 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.
∣A∣=8,∣B∣=12,∣A∩B∣=6|A| = 8, \qquad |B| = 12, \qquad |A \cap B| = 6
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.
DSC=2(6)8+12=1220=0.6\text{DSC} = \frac{2(6)}{8 + 12} = \frac{12}{20} = 0.6
Step 3: For comparison, the Jaccard index divides the overlap by the size of the union, 8+12−6=148 + 12 - 6 = 14. The two measures always satisfy DSC=2J1+J\text{DSC} = \frac{2J}{1+J}, so Dice is never smaller than Jaccard.
J=614=37≈0.43,2(37)1+37=6/710/7=0.6J = \frac{6}{14} = \frac{3}{7} \approx 0.43, \qquad \frac{2\left(\frac{3}{7}\right)}{1 + \frac{3}{7}} = \frac{6/7}{10/7} = 0.6
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, 2 TP2 TP+FP+FN\frac{2\,TP}{2\,TP + FP + FN}, is the same formula.

Common Mistakes

Mistake: Leaving out the factor of 2 and computing ∣A∩B∣∣A∣+∣B∣\frac{|A \cap B|}{|A| + |B|}, which gives 620=0.3\frac{6}{20} = 0.3 for the ponds.
Correction: Without the 2, even two identical sets would score only 0.5, because every shared element is counted once in ∣A∣|A| and again in ∣B∣|B|. Keep the 2 so the scale runs from 0 to 1.

Related Terms