Similarity Measure¶
Core Idea¶
A similarity measure maps a pair of represented objects to a comparable degree of likeness under a declared relevance rule. The output can be binary, ordinal, or numerical; it need not satisfy metric axioms and need not be symmetric. What makes it one abstraction is the stable pair-to-degree mapping, not any particular formula.
Similarity is therefore not simply “out there” waiting to be read. A representation decides which features are available, a relevance rule decides which differences matter, and the mapping compresses those choices into an ordering or score. Change the frame and the same two objects can become nearer, farther apart, or incomparable.
How would you explain it like I'm…
The How-Alike Score
Pick a Rule, Score the Match
Framed Pairwise Likeness Score
Broad Use¶
- Information retrieval: cosine similarity ranks documents or embeddings by orientation in a feature space.
- Ecology: Jaccard-style measures compare communities by shared and unshared species.
- Medicine: case-based reasoning compares a patient with prior cases under clinically weighted features.
- Machine learning: kernels, learned similarities, and neighborhood rules support retrieval, classification, and clustering.
- Cognitive science: feature-weighted similarity models explain typicality and generalization while permitting context-sensitive or asymmetric judgments.
Clarity¶
The abstraction separates a vague likeness claim from an auditable measurement rule. It forces three questions into view: how the objects are represented, which respects count, and how evidence of likeness is mapped to a comparable output.
Manages Complexity¶
A high-dimensional pair can differ in thousands of ways. A similarity measure compresses those differences to a degree that can be ranked, thresholded, searched, or used inside another construction, while making the information loss contestable.
Abstract Reasoning¶
The core move is represent, select relevant respects, then map the pair to degree. The result supports nearest-neighbor reasoning and prototype membership, but the score travels only with its frame. Symmetry, transitivity, triangle inequality, and universal comparability must be established rather than assumed.
Knowledge Transfer¶
The same structural questions transfer from ecological overlap to document retrieval and diagnostic cases: what is represented, what is ignored, whether absence counts, whether direction matters, and whether a local ranking can be treated as global geometry.
Example¶
Cosine similarity can rate two long documents as close because their term-frequency vectors point in nearly the same direction even when their lengths differ greatly. A clinical comparison can reverse the ranking by assigning much greater relevance to one rare symptom. Neither result is frame-free; each is a stable answer to a specified comparison problem.
Relationships to Other Abstractions¶
Current abstraction Similarity Measure Prime
Parents (2) — outgoing typed relations
-
Similarity Measure is a kind of Function (Mapping) Prime
A similarity measure is a function mapping specialized to pairs of represented objects and a comparable degree of likeness.
-
Similarity Measure presupposes Comparison Prime
A similarity measure presupposes a comparison frame that makes the two objects commensurable under selected respects.
Children (13) — abstractions linked here by typed relations
-
Bhattacharyya distance Domain-specific is a kind of Similarity Measure
What makes it its own entry: the domain-specific identity determined by both distributions use a common dominating measure or discrete support, the coefficient is computed from normalized nonnegative probabilities, and zero overlap is handled as infinite distance.
-
Concept search Domain-specific is a kind of Similarity Measure
What makes it its own entry: the domain-specific identity determined by retrieval relevance is computed from an explicit semantic representation beyond literal token matching and evaluated on the intended corpus.
-
Energy distance Domain-specific is a kind of Similarity Measure
It remains its own entry because its identity is fixed by the probability laws and Euclidean or negative-type metric space, independent copies, finite-moment conditions, population formula and square-root convention, sample estimator, zero-equivalence and inference use.
-
Fidelity of quantum states Domain-specific is a kind of Similarity Measure
Fidelity quantifies similarity between state representations.
-
Gestalt pattern matching Domain-specific is a kind of Similarity Measure
It remains its own entry because its identity is fixed by the two strings and character normalization, longest-common-substring rule and tie breaking, recursive left-right partition, matching blocks and total characters, similarity formula and bounds, complexity and behavior on reordered or repetitive text.
- Gower's Distance Domain-specific is a kind of Similarity Measure
**Similarity Measure** is the broader abstraction this entry instantiates.
- Kling–Gupta Efficiency Domain-specific is a kind of Similarity Measure
Original unweighted KGE is a hydrology-specific Similarity Measure mapping aligned observed and simulated flow series to a comparable degree of match through a fixed three-component rule.
- Maximal information coefficient Domain-specific is a kind of Similarity Measure
It remains its own entry because its identity is fixed by the paired sample and missingness, grid family and resolution bound, binning algorithm, mutual-information estimator and normalization, maximum search, null calibration and uncertainty and comparison metrics.
- Radial basis function Domain-specific is a kind of Similarity Measure
It remains its own entry because its identity is fixed by the metric, centers, radial kernel, scale parameter, polynomial augmentation, interpolation or loss condition, and solvability assumptions.
- Rand index Domain-specific is a kind of Similarity Measure
It remains its own entry because its identity is fixed by the common item set, two complete partitions, pair contingency counts, same-same and different-different agreements, total pairs, Rand formula and range and adjusted-chance qualification.
- Extended Boolean model Domain-specific presupposes Similarity Measure
**Similarity Measure** (`prime:similarity_measure`).
- Clustering Prime presupposes, typical Similarity Measure
Most clustering operationalizes within-group likeness through a similarity, dissimilarity, kernel, or distance-derived measure, while generative mixture methods can group by likelihood or latent fit without an explicit pairwise similarity.
- Prototype Theory Prime includes Similarity Measure
Prototype membership is constituted by measuring a candidate's likeness to a privileged exemplar under weighted relevant features.
Hierarchy paths (2) — routes to 2 parentless roots
- Similarity Measure → is a kind of Function (Mapping)
- Similarity Measure → presupposes Comparison
Not to Be Confused With¶
- Comparison: the broader act of aligning comparands under selected dimensions; a comparison need not emit a reusable degree of likeness.
- Metric: a distance function satisfying stronger axioms, including symmetry and triangle inequality; a similarity measure need satisfy neither.
- Equivalence: a crisp relation with reflexive, symmetric, and transitive structure; high similarity need not be transitive.
- Analogy: alignment of relational structure; two things can be analogous while sharing few surface features.
- Classification: assignment to categories; a classifier can consume similarity scores, but the score itself does not assign a class.