For binary data, the L1 distance corresponds to the Hamming distance; that is, the number of bits that are different between two binary vec- tors. The Jaccard similarity is a measure of the similarity between two binary vectors. Compute the Hamming distance and the Jaccard simi- larity between the following two binary vectors.

This exercise compares and contrasts some similarity and distance measures.

x = 0101010001
y = 0100011000
Hamming distance = number of different bits = 3
Jaccard Similarity = number of 1-1 matches /( number of bits - number
0-0 matches) = 2 / 5 = 0.4

Computer Science & Information Technology

You might also like to view...

A user interface that displays an alternative appearance and customized functionality for software is called a(n):

A) cover B) skin C) texture D) theme

Computer Science & Information Technology

STDEV.S calculates the standard deviation of a sample

Indicate whether the statement is true or false

Computer Science & Information Technology