Similarity Measures/Metrics/Semi-Metrics/Functions
  • is a real-valued function that quantifies the similarity between two objects

Similarity Measure - Types

Type

Input Type

Description

Metric Dependent

depends on the algorithm used

  • 1 / distance measure/metric formula?

Discrete Similarity Metric

anything

Kernel Functions

vectors

  • measures the similarity between 2 vectors in transformed space

Dot Product
Scalar Product

vectors

  • 𝛴1≤𝑖≤𝑛(𝑣̅𝑖𝑢̅𝑖)

Cosine Similarity

vectors

  • 𝑐𝑜𝑠(𝜃) = [𝑢̅·𝑣̅] / [||𝑢̅||*||𝑣̅||]
  • used for measuring the similarity of vectors when the magnitude of the vectors does not matter

Jaccard Similarity

sets

  • 𝐽(𝐴,𝐵) = |𝐴⋂𝐵| / |𝐴⋃𝐵|

Similarity Measure - Other