## DefinitionEdit

Given the sets , let the set of -tuples with with . The **Hamming similarity for tuples** is a function that measures the number of equals components, divided by the length of tuples:

where is the Identity similarity.

## Examples Edit

- HammingSim((1,a,0,b),(0,a,1,b)) = 2/4 = 0.25.
- HammingSim((1,a,0,b),(0,b,1,a))= 0/4 = 0.
- HammingSim(('A.Sanchez','asanchez@gmail.com','913724710'),('A.Sanchez','sanchez@yahoo.com',' ') = 1/3 = 0.33.

## Normalization Edit

It is normalized.

## Variations Edit

When the components of tuples are of the same types, we have the Hamming similarity for vectors.

## Applications Edit

Useful for comparing entities described by a fixed set of attributes of different types.