I have a dataset containing information about movies and their genres.

From the dataset I have generated association rules from the frequent itemsets that I have mined using the Apriori algorithm.

From that I have found some interesting association rules and now I want to evaluate how useful they are.

As an example, I have found the following rules:

  • Rule A: Romance, War -> Drama (support: 0.006, confidence: 0.863)
  • Rule B: Drama -> Romance, War (support: 0.006, confidence: 0.012)

From this I calculate the Kulczynski measure to be 0.4375.

Furthermore, using the following itemsets I can calculate the IR:

  • Itemset A: Romance, War (support: 0.007)
  • Itemset B: Drama (support 0.489)
  • Itemset A⋃B = Drama, Romance, War (support: 0.006)

IR(A,B) = 0.9836

All in all this shows that the data is heavily skewed (which is to be expected, since Drama is a very common genre compared to Romance and War) and that the itemsets are neutral or maybe slightly negatively associated.

The question then comes down to: What does this tell me about the "value" of the rules? How does the two measures go hand in hand to evaluate the rules?


1 Answer 1


The two are combined to help find "interesting" rules. As you know,

$$ \newcommand{\Kulczynski}{{\rm Kulczynski}} \newcommand{\support}{{\rm support}} \Kulczynski = \frac{1}{2}\big(P(A|B) + P(B|A)\big) $$

If Kulczynski is near 0 or 1, then we have an interesting rule that is negatively or positively associated respectively. If Kulczynski is near 0.5, then we may or may not have an interesting rule. We can have

$$ \Kulczynski = \frac{1}{2}\big(0.5 + 0.5\big) = 0.5 $$

Also, as in your case, we might also have

$$ \Kulczynski = \frac{1}{2}\big(0.863 + 0.012) = 0.4375 $$

While some people might consider these both uninteresting, others might want to know about this. To differentiate between the two situations, we can look at Imbalance Ratio where 0 is perfectly balanced and 1 is very skewed.

$$ IR = \frac{\big|\support(A) - \support(B)\big|}{\support(A) + \support(B) - \support(A \cup B)} $$

So completely uninteresting rules would have both $\Kulczynski=0.5$ and $IR=0$.

  • 2
    $\begingroup$ I don't have an answer, but a comment. I think IR should have + support(B) in the denominator. $\endgroup$ Sep 18, 2015 at 14:00
  • $\begingroup$ To second @MichaelHahsler 's comment: please fix the denominator of your IR equaton. $\endgroup$ Jan 4, 2017 at 23:13
  • $\begingroup$ @javadba the -support(B) is a typo. it needs to be +support(B) (see "Re-examination of interestingness measures in pattern mining: a unified framework" by Tianyi Wu, Yuguo Chen and Jiawei Han) and the code in arules is correct. I have edited the answer to reflect this. $\endgroup$ Jan 6, 2017 at 15:35
  • $\begingroup$ @MichaelHahsler, commenting is the right way to deal w/ this situation. Please do not 'correct' someone else's answer. If they don't address what you see as an error, you can downvote, but the answer should remain their work. Edits should be for cosmetic things that don't change the substance of the post. $\endgroup$ Jan 6, 2017 at 17:33
  • $\begingroup$ Thank you @MichaelHahsler and javadba and gung. My apologies. Formula should be fixed now. $\endgroup$
    – Eric Farng
    Jan 7, 2017 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.