0
$\begingroup$

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?

$\endgroup$
  • $\begingroup$ You mean clustered barcharts, don't you? $\endgroup$ – ttnphns Aug 23 '17 at 15:15
  • 1
    $\begingroup$ See this answer and other answers there. $\endgroup$ – ttnphns Aug 23 '17 at 15:26
  • 1
    $\begingroup$ I meant: you have 2 vectors length 6 with counts (some counts are 0). Consider it as 2x6 frequency cross-table and compute chi-sq distance or phi-sq distance as explained in the answer I linked to. $\endgroup$ – ttnphns Aug 23 '17 at 15:30
  • $\begingroup$ @ttnphns, do you think this is a duplicate? $\endgroup$ – gung Aug 23 '17 at 15:30
  • $\begingroup$ gung, I don't know. That older question is more rich and specific. Maybe a duplicate, maybe not. $\endgroup$ – ttnphns Aug 23 '17 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.