Tutorial 7 Part 2 - Answer
Tutorial 7 Part 2 - Answer
Question 1 (2019-06)
a) Determine the conditional pattern base, conditional tree and frequent pattern tree
for item T only. Let minimum count = 2 and item N occurs in all transactions.
b) Identify the largest k-itemsets and count the support for that itemset.
k=4
support = 2/5 = 40%
ITS665 || Data Mining
Question 2 (2016-12)
The following table shows a database D = {111, 112, …, 151} at one grocery store
purchased by customers on five different products: P, Q, R, S and T. Let minimum support
= 33.33% and minimum confidence = 80%. The tick () symbol represents the product
bought by the customer.
TID P Q R S T
111
112
121
122
131
132
141
142
151
a) Generate a Frequent Pattern (FP) Tree. Clearly show the steps involved.
TID P Q R S T
111
112
121
122
131
132
141
142
151
Total 7 7 5 4 2
ITS665 || Data Mining
L = {{P:7},{Q:7},{R:5},{S:4},{T:2}}
Remove T
Therefore L = {{P:7},{Q:7},{R:5},{S:4}}
b) Generate TWO (2) rules for item R and calculate its confidence value.
Question 3 (2014-12)
Given the following frequent-pattern (FP) tree with minimum support and threshold=3.
a) For each frequent item, construct its conditional pattern base and conditional FP-
tree.
k=4