Source-linked AI summary

Further Generalizations of the Jaccard Index

Luciano da F. Costa

arXiv:2110.09619v3cs.LG

TL;DR

The paper extends the Jaccard index to account for relative interiority, continuous sets, densities, functions, scalar fields, and relationships between random variables. It also considers multiset representations and chaining across multiple sets, while emphasizing that index choice depends on application requirements.

  • Problem

    The paper addresses limitations in comparing sets, densities, functions, fields, and random variables with the standard Jaccard index, including its inability to directly capture relative interiority or chaining between three sets.

  • Method

    The paper defines a coincidence index from Jaccard and interiority indices, represents multisets as vectors, and extends minimum and maximum operations through integrals over continuous spaces.

  • Results

    The extensions quantify relationships between random variables and provide continuous-set index constructions in which coincidence combines Jaccard and interiority into a bijective characterization.

  • Takeaways & Limitations

    The resulting indices support application-specific similarity analysis across continuous regions, densities, scalar fields, and multi-set chaining relationships.

  • Takeaways & Limitations

    No single index is absolutely better; the suitable choice depends on application requirements, while the chaining approach uses set B as a reference.

Abstract

from arXiv · show

Quantifying the similarity between two mathematical structures or datasets constitutes a particularly interesting and useful operation in several theoretical and applied problems. Aimed at this specific objective, the Jaccard index has been extensively used in the most diverse types of problems, also motivating some respective generalizations. The present work addresses further generalizations of this index, including its modification into a coincidence index capable of accounting also for the level of relative interiority between the two compared entities, as well as respective extensions for sets in continuous vector spaces, the generalization to multiset addition, densities and generic scalar fields, as well as a means to quantify the joint interdependence between two random variables. The also interesting possibility to take into account more than two sets has also been addressed, including the description of an index capable of quantifying the level of chaining between three structures. Several of the described and suggested eneralizations have been illustrated with respect to numeric case examples. It is also posited that these indices can play an important role while analyzing and integrating datasets in modeling approaches and pattern recognition activities, including as a measurement of clusters similarity or separation and as a resource for representing and analyzing complex networks.

1 Introduction

The paper develops further Jaccard-index generalizations for comparing sets, continuous regions, densities, functions, fields, random variables, and multiple sets. It also proposes combining normalized indices and discusses applications in modeling, pattern recognition, and data analysis.

  • Motivation: The Jaccard index is widely used because it is intuitive, bounded between 0 and 1, computationally inexpensive, and applicable across many domains.Prior extensions include comparisons involving discrete multisets with positive multiplicities.
  • Set generalizations: The coincidence index combines Jaccard and interiority indices to account for how much one set is contained within another.It is defined as the square root of their product and provides a stricter similarity characterization.
  • Continuous extensions: For continuous regions in R^N, set cardinalities can be replaced by region areas, enabling graphical comparisons of Jaccard, interiority, and coincidence indices.The same extension supports subsequent treatment of densities and scalar fields.
  • Densities and fields: Multiset-based Jaccard adaptations are extended to compare probability densities, generic functions, and scalar fields through integrals of minimum and maximum operations.The approach is presented first for non-negative densities and then extended to fields with negative multiplicities.
  • Random variables: The multiset Jaccard adaptation can quantify joint relationships between two random variables using discrete observations or standardized probability densities.The paper treats this as a connection between density similarity and joint variation.
  • Multiple sets: For more than two sets, the paper considers set-operation combinations and an index measuring chaining between three sets through an intermediate set.It further motivates combining normalized indices into a possible algebra of indices.
  • Applications: The proposed and generalized indices are presented as potentially useful for model building, pattern recognition, dataset integration, cluster comparison or separation, and complex-network analysis.The article also identifies prospects for future developments.

2 A Brief Historic Note on Paul Jaccard

Paul Jaccard developed the similarity index bearing his name in the context of plant physiology and alpine-flora studies. The historical section situates the index within his botanical career and related quantitative work.

  • Paul Jaccard: Paul Jaccard was a plant-physiology researcher whose work included geobotany, tree histophysiology, and wood microscopy.He studied and worked in Lausanne and Zurich and investigated tree interbreeding.
  • The Jaccard index: The Jaccard similarity index was proposed in 1901 to quantify alpine-flora co-localization, especially for studying species diversity.It is expressed using two sets and their cardinalities.
  • Related index: Jaccard also proposed the coefficient générique to quantify the species-to-genus ratio in a region.The measure uses the numbers of genera and species as its quantities.

3 The Basic Jaccard Index

The basic Jaccard index compares two sets through their intersection and union and can be adapted to other structures and weighting schemes. The section also introduces multiset representations that preserve element multiplicities.

  • Set formulation: The basic Jaccard index compares two sets using their intersection relative to their union.Its distance form follows immediately from the similarity index.
  • Weighted variants: A powered Jaccard variant can weight the effective cardinality of the set intersection more strongly.The squared form is bounded by the intersection cardinality, and higher powers provide larger intersection weights.
  • Multisets: Multisets extend sets by allowing repeated elements, with each multiset represented by a vector of element multiplicities over their shared support.The multiset Jaccard index is bounded between 0 and 1.
  • Structural adaptations: The Jaccard formulation can be adapted to vectors, matrices, graphs, matroids, tensors, and other mathematical structures.Matrix comparisons receive a further equation modification.

4 Interiority and Coincidence Indices

The section introduces the interiority index to distinguish set pairs that share the same Jaccard value but differ in containment, then combines both measures into a coincidence index. The coincidence index can also be extended to broader mathematical structures.

  • Motivation: The Jaccard index assigns 3/7 to both illustrated set pairs, although only one has B completely contained in A.The subset case shares all elements of B with A, unlike the case where both sets contain unshared elements.
  • Interiority Index: The interiority index measures how much one set is contained within the other, ranging from 0 for disjoint sets to 1 when either set contains the other.The index is symmetric in the sense that it does not require specifying which set is interior.
  • Coincidence Index: The coincidence index combines Jaccard similarity and interiority by taking the square root of their product.The square root compensates for the smaller values produced when two indices in [0, 1] are multiplied.
  • Variants: The coincidence index may also be used without the square root or represented together with Jaccard and interiority as a tuple.These alternatives are presented for situations where the product form or separate measurements are preferable.
  • Scope: Like the Jaccard index, the coincidence index can be generalized to virtually any mathematical structure, including functions and fields in R^N.The paper specifically points to later treatment of functions and fields in continuous spaces.

5 Weighted Discrete Elements

This section extends Jaccard and coincidence indices to weighted discrete elements, so element importance contributes to similarity rather than treating every element equally.

  • Weighted Elements: Weighted Jaccard and coincidence indices assign each set element a weight representing its relative importance in the application.Elements are represented as pairs [x_i, w(x_i)].
  • Example: In the example, the weighted Jaccard index is relatively high despite a one-element intersection because the shared element b has a large weight.The shared element b carries weight 5, making its contribution substantial relative to the other elements.
  • Distinction: The weighted Jaccard index differs from the multiset Jaccard index because weighting uses sums of element weights, whereas multisets use multiplicities.The paper also allows weighted multisets as a further combination of the two approaches.

6 Addition-Based Multiset Jaccard Index

The section generalizes multiset Jaccard similarity by replacing multiset union with multiset addition, allowing multiplicities from both sets to contribute fully when they are combined.

  • Definition: The additive multiset Jaccard index uses the sum of multisets A and B instead of their union.This changes the denominator to reflect multiset addition rather than the maximum multiplicity operation of union.
  • Further Operations: Other multiset operations, including subtraction, complement, and intersection, can also be used to define related indices.The section presents these operations as possible further generalizations.
  • Rationale: The additive formulation is intended for cases where multiple instances in both multisets must be fully represented during combination.Its motivation is to preserve the contribution of multiplicities when the multisets are combined.
  • Extension: The additive multiset Jaccard index can be combined with interiority to form an addition-based multiset coincidence index.This extends the coincidence framework to the additive multiset setting.

7 Continuous Sets

The section extends the indices from discrete sets to continuous regions by replacing cardinalities with areas and analyzes their behavior for sliding squares. The resulting measures differ in how they respond to displacement and relative size, so application requirements determine the suitable choice.

  • Continuous Sets: In continuous vector spaces, set cardinalities can be replaced by region areas in the Jaccard and coincidence indices.For regions in R^2, the relevant quantities are the areas of A, B, their intersection, and their union.
  • Set Configurations: The three representative continuous-set cases are disjoint, partially intersecting, and completely intersecting regions.Intersection area is zero in the disjoint case and increases similarity in the partial-intersection case, while complete intersection represents maximum similarity.
  • Geometric Parameterization: The sliding-square construction represents configurations using relative position x and relative size r = b/a, with b ≤ a.As the squares separate, increasing relative position reduces their similarity.
  • Index Behavior: For Figure 4, the coincidence index combines Jaccard and interiority to produce a bijective association with maximum value 1 at the bottom-right configuration.The interiority index alone reaches maximum value across a lower non-null region, whereas the coincidence index changes the level-set shapes.
  • Comparison: Among the compared indices, only additive multiset Jaccard varies linearly with displacement; coincidence indices penalize distant slices, with basic coincidence more selective.Basic Jaccard penalizes these cases more intensely than additive multiset Jaccard, while interiority does not account for relative set size.
  • Selection Principle: No index is universally best, so the application’s requirements should determine the choice among the alternatives.The paper identifies enhanced selectivity and stricter similarity quantification as reasons to consider coincidence indices.

8 Continuous Densities and Scalar Fields

The paper extends Jaccard similarity from finite sets to continuous regions, densities, functions, and scalar fields by replacing set operations with area or integral-based minimum and maximum operations. These constructions support comparisons of densities and fields, including negative-valued functions, and are illustrated through geometric and density examples.

  • Function representation: Real-valued functions are represented as multifunctions whose support elements carry real-valued multiplicities, preserving discretized function structure for multiset operations.The representation uses support points x_i and multiplicities m(x_i), with both functions sharing the discretization support.
  • Densities and fields: Density Jaccard similarity is obtained by integrating minimum and maximum values over the shared support, with the construction extending to discrete densities and higher-dimensional domains.The generalized index is valid directly in real function spaces when the relevant integrals exist.
  • Density example: For the illustrated density pair, the intersection-over-union construction produced a Jaccard index of 0.09257.The intersection and union curves are formed using pointwise minimum and maximum operations.
  • Geometric comparison: In the geometric comparison, only the additive multiset Jaccard index varied linearly with displacement while accounting for relative set size.Interiority ignored relative size, whereas coincidence indices penalized small displacements, with the basic coincidence index more selective.
  • Generic scalar fields: The Jaccard and coincidence indices are extended to generic scalar fields, including fields with negative multiplicities through quadrant-dependent accumulation rules.The negative-valued construction mirrors mixed-sign points and accumulates corrected intersection and union contributions.

9 Joint Variations

The paper introduces joint variation quantification through Jaccard- and coincidence-based analysis of paired random-variable observations. Standardized-variable scatterplots are interpreted as samples of joint probability densities, providing the setting for this comparison.

  • Standardization: Standardization gives each random variable mean 0 and variance 1, with most observations lying within [−2, 2].This normalization supports comparison of joint variation across standardized variables.
  • Joint-density representation: A scatterplot of two jointly standardized variables represents sampled joint-density structure and can be kernel-expanded to estimate the corresponding density.The paper uses this interpretation to connect paired observations with joint-density comparison.
  • Joint variation: Joint variation is framed as a similarity problem for two random variables, extending beyond normalized measures such as Pearson correlation.The paper motivates applying Jaccard and coincidence indices to joint observations or their joint densities.
  • Illustration: The paper illustrates joint-variation analysis with scatterplots drawn from normal densities having increasing correlation.The comparison is presented as an application of Jaccard- and coincidence-based analysis to joint observations.

10 Multiple Sets

The paper generalizes Jaccard-style comparison from two sets to multiple sets, including set-operation combinations, extended indices, and a chaining index for three structures.

  • Multiple-set generalizations: Multiple sets can be handled either by combining sets through operations before applying two-set indices or by extending the indices to accept more than two arguments.These approaches support arbitrary combinations of source sets and direct multi-set comparison.
  • Extended Jaccard and coincidence indices: For three sets, the extended Jaccard index compares their common intersection with their overall union and extends to any number of sets.The index is bounded by 0 and 1.
  • Extended Jaccard and coincidence indices: The three-set interiority construction measures how much the smallest set is contained in the common intersection and then incorporates the second-smallest set.The resulting interiority index is used to define a three-set coincidence index bounded by 0 and 1.
  • Chaining between sets: A chaining index quantifies how an intermediate set B connects sets A and C, while accounting for their direct Jaccard similarity.The construction treats B as a reference and can be generalized through successive pairwise combinations.
  • Chaining between sets: The chaining construction can be biased when one intersection involving B is large, so an additional minimum-overlap index may be incorporated.Other three-or-more-set chaining indices are also possible.

11 The Jaccard and Coincidence Indices in Modeling

The paper presents the indices as tools for quantitatively integrating relationships among diverse mathematical structures and datasets. It connects them to model development, dataset comparison, pattern recognition, and deep learning.

  • Applications in modeling: The indices provide a way to quantitatively address relationships among mathematical structures while accommodating stochasticity.The stated scope includes sets, functions, vectors, densities, and graphs.
  • Applications in modeling: Combining these indices can support model development through the integration of datasets.The paper presents them as resources for combining dataset characteristics in modeling approaches.
  • Applications in modeling: Similarity indices can compare new datasets with modeled datasets and identify set-operation combinations that may account for datasets of interest.The paper links these comparisons to relating or developing models.
  • Applications in modeling: The indices are also presented as useful for characterizing, developing, validating, and applying pattern-recognition and deep-learning approaches.

12 Concluding Remarks

The concluding section summarizes further Jaccard generalizations for sets, multisets, continuous regions, fields, random variables, and multiple sets. It also identifies modeling and pattern-recognition applications while noting that many extensions remain open.

  • Contributions: The work combines Jaccard with interiority to form a coincidence index and considers multiset addition when element multiplicities must be fully represented.The coincidence index is described as a stricter and more selective similarity quantification.
  • Continuous structures: Continuous-set versions replace element counts with region areas and extend to density fields and functions through multiset-based formulations.The paper illustrates this direction with probability density functions.
  • Random variables: Jaccard and coincidence adaptations are proposed for quantifying joint variation between random variables through observations and probability densities.The paper also compares these adaptations with Pearson correlation for density functions.
  • Multiple sets: Multiple-set generalizations include set-operation combinations, extended multi-set arguments, and a suggested chaining index for three sets.The chaining construction is the paper’s explicit extension for relationships among more than two sets.
  • Future work: Further work includes comparing these indices with other similarity indicators and extending them to additional relationships, structures, and indices.The paper identifies this as a broad set of possible future directions.
  • Applications: The indices are presented as resources for developing and evaluating data models and for pattern-recognition and deep-learning tasks.
Loading 2110.09619v3…