Back to the 2022 paper

Module 2: Data Mining and Association Rule Mining

20222m

The total number of possible rule extracted from a data set that contains dd item is

(i) R=3d+12d+1R = 3^{d+1} - 2^d + 1
(ii) R=3d+12d+1+1R = 3^{d+1} - 2^{d+1} + 1
(iii) R=3d2d+1+1R = 3^d - 2^{d+1} + 1
(iv) R=3d2d+1R = 3^d - 2^d + 1

Worked SolutionAI Assisted

Answer: (iii) R=3d2d+1+1R = 3^d - 2^{d+1} + 1

Derivation

For a dataset with dd distinct items, every possible association rule is formed by:

  1. Choosing a non-empty itemset YY from the dd items to be the "antecedent ∪ consequent" (the full rule itemset).
  2. Splitting YY into a non-empty antecedent (X) and non-empty consequent (Y − X).

For each item, it can go into: antecedent, consequent, or neither (not part of the rule) → giving 3d3^d total combinations.

From this 3d3^d, we must subtract:

  • The cases where no item is in the consequent (i.e., only antecedent+neither combos): 2d2^d
  • The cases where no item is in the antecedent (only consequent+neither combos): 2d2^d
  • Add back the case counted twice (no item in either — the empty rule): +1+1

R=3d22d+1=3d2d+1+1R = 3^d - 2 \cdot 2^d + 1 = 3^d - 2^{d+1} + 1

This is the standard result from Tan/Steinbach/Kumar's Introduction to Data Mining — confirming option (iii).

Similar questions