Question: Suppose the Apriori algorithm is applied to the data set shown in the following table with minsup = 30%, i.e., any itemset occurring in less
Suppose the Apriori algorithm is applied to the data set shown in the following table with minsup = 30%, i.e., any itemset occurring in less than 3 transactions is considered to be infrequent.
| Transaction ID | Items Bought |
| 1 | {a, b, d, e} |
| 2 | {b, c, d} |
| 3 | {a, b, d, e} |
| 4 | {a, c, d, e} |
| 5 | {b, c, d, e} |
| 6 | {b, d, e} |
| 7 | {c, d} |
| 8 | {a, b, c} |
| 9 | {a, d, e} |
| 10 | {b, d} |
Draw an itemset lattice representing the data set given in the table. 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.
b.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.
Use the arules package in R, generate all frequent itemses when the minimum support is 30%. List them by support in decreasing order.
Use the arules package in R, generate all association rules when the minimum support is 30% and the minimum confidence is 50%. List them by lift in decreasing order.
Need to solve this using R programming
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
