Let I = { I1, I2, I3, …, I10 } be a set of items, where Ij denotes an item ID. C
ID: 3604199 • Letter: L
Question
Let I = { I1, I2, I3, …, I10 } be a set of items, where Ij denotes an item ID. Consider the transaction database D, defined in the table below:
Transaction ID List of Items in the Transaction
T1 I1, I3, I4
T2 I1, I2
T3 I5, I6, I7,I9
T4 I1, I2, I6,I10
T5 I1, I6, I8,I9
(1) Determine the support and the confidence of the association rule A B, where
A = { I1 }, B = { I2 }
(2) Is the rule A B given above strong if
(a) min_sup = 30%
(b) min_sup = 50%
(3) What is the occurrence frequency of itemsets
(a) { I1, I3, I4 }
(b) { I6, I9 }
(4) Suppose that the minimum support count threshold is set to 30%,
(a) is { I1, I3, I4 } a frequent itemset?
(b) is { I6, I9 } a frequent itemset?
(5) The Apriori algorithm is an approach for mining frequent itemsets and association rules.
(a) Use Apriori algorithm to find the frequent itemsets in the transaction database D. Assume min_sup = 2.
(b) Generate all strong association rules from one of the itemsets obtained in the step (a). Use minimum confidence threshold = 80%.
Explanation / Answer
(1)Determine the support and the confidence of the association rule A B, where
Ans: support( A) = 4/5=0.8
support( B)= 2/5=0.4
(2) Is the rule A B given above strong if
(a) min_sup = 30%
Ans: confidence(A->B)= support( A,B)/support( A) = 0.4/0.8= 0.5= 50%.
so answer is yes.
(b) min_sup = 50%
Ans: Yes.
(4) Suppose that the minimum support count threshold is set to 30%,
(a) is { I1, I3, I4 } a frequent itemset?
(b) is { I6, I9 } a frequent itemset?
Ans: (b)
support(I1, I3, I4)=1/5= 0.2= 20%.
support(I6, I9)= 2/5= 0.4= 40%
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.