Question Bank- Association Mining

1) If T consist of 500000 transactions, 20000 transaction contain bread, 30000 transaction contain jam, 10000 transaction contain both bread and jam. Calculate the confidence of buying bread with jam

2) Consider the following dataset, use FP method to generate frequent patterns. Let min_support=2.

TIDItems
1I1,I2,I5
2I2, I4
3I2,I3
4I1,I2,I4
5I1,I3
6I2,I3
7I1,I3
8I1,I2,I3,I5
9I1,I2,I3

3) Consider the transaction database given below:

TIDItems
10Cookies,Ice-cream,Jelly
20Fruits, Ice-cream,Butter
30Cookies, Fruits, Ice-cream, Butter
40Fruits, Butter
50Cookies, Ice-cream, Butter

Use Apriori algorithm with min support count =2 and min confidence=60% to find all frequent itemsets and strong association rules

4) GMART has database of transactions, consider the following subset  of the dataset, use FP method to generate frequent patterns. Let min_support=2

TIDItems
1Chocolates,Bread,Cold Drink
2Bread, Yogurt
3Bread,Jam
4Chocolates,Bread,Yogurt
5Chocolates,Jam
6Bread,Jam
7Chocolates,Jam
8Chocolates,Bread,Jam,Cold Drink
9Chocolates,Bread,Jam

5) Consider the following transaction database of all electronics company. Apply the Apriori algorithm with minimum support of 30% and minimum confidence of 75% and find all the association rules in the data set.

TID      Items
01Cookies, Bread, Milk, Juice
02Chips, Bread, Chocolate, Soft Drink
03Cookies, Chips, Bread, Chocolate, Eggs
04Chips, Chocolate, Coffee, Tea
05Cookies, Milk

6) If T –  400000 transactions, 25000 transaction contain Tea, 50000 transaction contain Cookies, 15000 transaction contain both Tea and Cookies. Calculate the confidence of buying cookies given Tea.

7) Given the following data of a supermart, apply Apriori algorithm and find frequent itemset and generate association rules. Given support =50% and confidence = 60%

TransactionItems
T1Milk, Cheese,Yogurt
T2Cheese,Yogurt,Cookies
T3Cookies,Jam
T4Milk,Cheese,Cookies
T5Milk,Cheese,Yogurt,Jam
T6Milk,Cheese,Yogurt,Cookies

8) Given the items of an e-commerce site, apply FP Growth tree mining algorithm to find frequent itemsets. Minimum support=3

TIDItems
1A, B, C, D, E, F
2G, B, C, D, E, F
3A, H, D, E
4A, I, G, D, F
5G, B, D, J, K