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
You might also like to view...
The ____ method contains a complex mathematical formula for calculating a periodic payment.
A. Fincl.Pmt B. Financial.Pmt C. Fin.Pmt D. Fin.Payment
Which command is used to allow a protocol other than IPv4 within the multiprotocol BGP?
a. no bgp default ipv4-unicast b. neighbor IPv6_address remote as AS_Number c. address-family d. None of the above
At a rented house that does not have Internet access, two people need to share files. Neither has a flash drive. What type of network would help in this situation?
A) Bluetooth B) Ad hoc C) WiMAX D) USB
A search engine displays a list of webpage names that contain the search text. What is the term for that list?
A. keywords B. icons C. hits D. pulls