CalcWorldHub
Free online calculator · no signup

Set overlap similarity comparison calculator

Compare Jaccard, Dice, overlap coefficient, and asymmetric Tversky similarity on the same two sets.

4,000 tools
Set overlap similarity comparison calculator — First integer set, Second integer set, Tversky first-only penalty and calculation method
Set overlap similarity comparison calculator: inputs and calculation method.

How to use this calculator

Compare Jaccard, Dice, overlap coefficient, and asymmetric Tversky similarity on the same two sets.

  1. Enter First integer set, Second integer set, Tversky first-only penalty, Tversky second-only penalty. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Set overlap similarity comparison explained

Jaccard, Dice, and overlap scores emphasize set agreement differently; the Tversky score also lets you weight first-only and second-only elements separately.

Inputs, symbols, and units

a — First integer set
First integer set. Use comma-separated values in the stated order.
b — Second integer set
Second integer set. Use comma-separated values in the stated order.
al — Tversky first-only penalty
Tversky first-only penalty.
be — Tversky second-only penalty
Tversky second-only penalty.

Formula and method

Intersection divided by union

Symbols use the input definitions below. Repeated values are deduplicated; both sets must be nonempty.

A worked scenario

First integer set = 1, 2, 3, 4; Second integer set = 3, 4, 5; Tversky first-only penalty = 1; Tversky second-only penalty = 1.

  • Jaccard similarity: 0.4
  • Dice similarity: 0.571429
  • Overlap coefficient: 0.666667
  • Tversky similarity: 0.4

This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.

Assumptions and edge cases

Repeated values are deduplicated; both sets must be nonempty. These are set measures, not sequence measures.

Frequently asked questions

Do duplicates count?

No.

Why can Tversky be asymmetric?

The two exclusive parts have separate penalties.

Is order relevant?

No, only membership.

How do I use the Set overlap similarity comparison calculator?

Enter First integer set, Second integer set, Tversky first-only penalty, Tversky second-only penalty. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Set overlap similarity comparison?

First integer set = 1, 2, 3, 4; Second integer set = 3, 4, 5; Tversky first-only penalty = 1; Tversky second-only penalty = 1. Jaccard similarity: 0.4 Dice similarity: 0.571429 Overlap coefficient: 0.666667 Tversky similarity: 0.4 This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.