Hamming Distance A metric used to compare binary data by counting the number of positions at which the corresponding bits are different.