What are the best ways to compare (calculate similarity) between two bar plots? For example:
a = {apple: 2, orange: 10, grape: 1}
b = {apple: 1, cucumber: 2, apricot: 3, avocado: 2}
Similarity (a,b) = ?
I want to compare a
and b
. The things which come to my mind are Jaccard simlarity and Cross Entropy. Are there any better options?