Table 6.2. Market basket transactions.
Transaction ID Items Bought
1{Milk, Beer, Diapers}
2{Bread, Butter, Milk}
3{Milk, Diapers, Cookies}
4{Bread, Butter, Cookies}
5{Beer, Cookies, Diapers}
6{Milk, Diapers, Bread, Butter}
7{Bread, Butter, Diapers}
8{Beer, Diapers}
9{Milk, Diapers, Bread, Butter}
10 {Beer, Cookies}
6. Consider the market basket transactions shown in Table 6.2.
(a) What is the maximum number of association rules that can be extracted
from this data (including rules that have zero support)?
(b) What is the maximum size of frequent itemsets that can be extracted
(assuming minsup > 0)?
(c) Write an expression for the maximum number of size-3 itemsets that
can be derived from this data set.
(d) Find an itemset (of size 2 or larger) that has the largest support.
(e) Find a pair of items, aand b, such that the rules {a}−→{b}and
{b}−→{a}have the same confidence.
7. Consider the following set of frequent 3-itemsets:
{1,2,3},{1,2,4},{1,2,5},{1,3,4},{1,3,5},{2,3,4},{2,3,5},{3,4,5}.
Assume that there are only five items in the data set.
(a) List all candidate 4-itemsets obtained by a candidate generation proce-
dure using the Fk−1×F1merging strategy.