Concept
Hamming Distance
The Hamming distance is a metric useful for comparing categorical variables. It measures distance by counting the number of positions at which corresponding elements differ. For each position, if the two elements are the same, the difference is 0; if they are different, the difference is 1. Its formula is given by: where if , and if .
0
2
Updated 2026-06-14
Contributors are:
Who are from:
Tags
Data Science