Uploaded by hesham moahmeed

Assinment2

advertisement
Assinment2
Problem 1: Smoothen the given data using any one of the binning techniques?
2 3 5 9 10 12 16 18 20 21 24 29
Partition into equal-frequency (equi-depth) bins:
- Bin 1: 2,3,5,9
- Bin 2: 10,12,16,18
- Bin 3: 20,21,24,29
Problem 2
Consider the following transaction table and answer the given questions accordingly:
a.
TID
Items Bought
1
Pepsi, Milk, Bread,
2
Pepsi, Coffee, Bread
3
Pepsi, Bread, Eggs
4
Milk, Coffee
5
Milk, Beans, Honey
What is the Absolute support of Pepsi?
3/5=60%
cover(Pepsi) = {1,2,3}
b.
What is the Relative support of Pepsi?
3/5=60%
c.
Let minsup=50%, then state all the Freq. 2-itemsets
Pepsi=3(60);bread=3(60);Milke=3(60);Egges=1(20);Honey=1(20).
d.
Calculate the support and confidence for the Association Rule Pepsi --->Bread.
Pepsi --->Bread.(60%,100%)
Download