Question: The Apriori algorithm uses a generate-and-count strategy for deriving frequent itemsets. Candidate itemsets of size k + 1 are created by joining a pair of
.png)
(a) Draw an itemset lattice representing the data set given in Table 6.3. Label each node in the lattice with the following letter(s):
¢ N: If the itemset is not considered to be a candidate itemset by the Apriori algorithm. There are two reasons for an itemset not to be considered as a candidate itemset: (1) it is not generated at all during the candidate generation step, or (2) it is generated during the candidate generation step but is subsequently removed during the candidate pruning step because one of its subsets is found to be infrequent.
¢ F: If the candidate itemset is found to be frequent by the Apriori algorithm.
¢ I: If the candidate itemset is found to be infrequent after support counting.
(b) What is the percentage of frequent itemsets (with respect to all itemsets in the lattice)?
(c) What is the pruning ratio of the Apriori algorithm on this data set? (Pruning ratio is defined as the percentage of itemsets not considered to be a candidate because (1) they are not generated during candidate generation or (2) they are pruned during the candidate pruning step.)
(d) What is the false alarm rate (i.e, percentage of candidate itemsets that are found to be infrequent after performing support counting)?
Table 6.3. Example of market basket transactions. a, b, d, e) (b, c, d (a, b, d, e) a, c, d,el b. c, d, e 12 ) ( b, d,e c, d) a, b, c a, d, e 6 10 b, d)
Step by Step Solution
3.54 Rating (171 Votes )
There are 3 Steps involved in it
a The lattice structure is shown below b Percentage of frequent itemsets 1632 500 including the ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
908-M-S-D-A (8654).docx
120 KBs Word File
