Consider the transaction database given below, TID Items
TID Items
10 1,3,4
20 2,3,5
30 1,2,3,5
40 2,5
50 1,3,5
Use Apriori Algorithm with min-support count 2 and min-confidence 60% to find all
frequent itemsets and strong assocation rules.
Frequent itemsets: {1}, {2}, {3}, {5}, {1,3}, {1,5}, {2,3}, {2,5}, {3,5}, {1,3,5}, {2,3,5}. Strong rules (confidence ≥ 60%) are listed in Step 4.
Transactions: T10 {1,3,4}, T20 {2,3,5}, T30 {1,2,3,5}, T40 {2,5}, T50 {1,3,5}. Minimum support count = 2.
Step 1: C1 → L1
{1}: 3, {2}: 3, {3}: 4, {4}: 1, {5}: 4. Remove {4} (1 < 2). L1 = {1}, {2}, {3}, {5}.
Step 2: C2 → L2
| Itemset | {1,2} | {1,3} | {1,5} | {2,3} | {2,5} | {3,5} |
|---|---|---|---|---|---|---|
| Count | 1 | 3 | 2 | 2 | 3 | 3 |
L2 = {1,3}, {1,5}, {2,3}, {2,5}, {3,5} ({1,2} removed).
Step 3: C3 → L3
Joining L2 gives {1,3,5} and {2,3,5} (any candidate containing {1,2} is pruned). Counts: {1,3,5} in T30, T50 = 2; {2,3,5} in T20, T30 = 2. Both frequent. C4 = {1,2,3,5} is pruned because {1,2} is not frequent, so the algorithm stops.
Step 4: Strong rules (confidence = support(A∪B)/support(A))
From 2-itemsets:
From {1,3,5} (support 2):
From {2,3,5} (support 2):
All rules listed without "rejected" have confidence ≥ 60% and are strong. (If your syllabus asks only for rules from the largest itemsets, give the eight rules from {1,3,5} and {2,3,5}.)
Log in or create a free account to answer this question.