Axiomatic Characterization of the Hamming and Jaccard Distances
Abstract
Measures of dissimilarity between a pair of objects can play a pivotal role in many machine learning objectives such as clustering, outlier detection, or data visualization. In this paper, we focus on data in the form of binary vectors and analyze several methods of measuring dissimilarity between them. We introduce several properties, *axioms*, that a measure of dissimilarity can satisfy and characterize the *Hamming* and *Jaccard* distances as the only measures satisfying particular subsets of our axioms. Based on our analysis, we identify shortcomings of both distances and propose novel approaches that are better suited for certain applications. We complement our theoretical findings by an extensive empirical study. Our primary motivation is the analysis of election data, in which the votes have the form of binary approval of alternatives, but the applicability of our results reaches far beyond that.
BibTeX
@misc{was2025axiomatic,
author = {Tomasz Wąs and Stanisław Szufa},
title = {{Axiomatic Characterization of the Hamming and Jaccard Distances}},
year = {2025},
url = {https://openreview.net/forum?id=WXAjAelIpJ},
howpublished = {OpenReview},
note = {Submitted to NeurIPS 2025},
}Ask Althea to put this paper to the test.
Loading related content...