



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




9/17/08 EECS 584, Fall 2008 1
Rakesh Agarwal , Ramakrishnan Srikant IBM Almaden Research Center
People buy these items together!
What is data mining? Process of extracting hidden interesting patterns representing knowledge from large volumes of data. Why is it important?
Example : computer => antivirus_software [ support = 2%, confidence = 60%] 2% of all transactions show that computer and antivirus_ software are purchased together. 60% of customers who purchased a computer also purchased antivirus_ software. 9/17/08 EECS 584, Fall 2008^5
Definition: I - {i1, i2, i3 ,…, im} D - set of transactions T - transaction with a set of items X, Y - Itemset
Support(X=>Y) = P(X U Y) i.e., Probability that a transaction contains both X and Y Confidence(X=>Y) = P(Y | X) i.e., Probability that a transaction containing X also contains Y
9/17/08 EECS 584, Fall 2008^10
9/17/08 EECS 584, Fall 2008^11
Assumption : Items are sorted in lexicographic order Ck : set of candidate itemsets of size k Lk : set of large itemsets of size k L 1 = {large 1-itemsets}; for ( k = 2; Lk !=∅; k ++) do begin Ck= apriori-gen(Lk-1); for all transactions t ϵ D do begin Ct=subset( Ck,t); forall candidates c ϵ Ct do c.count++; End Lk={c ϵ Ck|c.count ≥ minsup} End Answer = ∪ k Lk ; 9/17/08 EECS 584, Fall 2008^13
Join step insert into Ck select p.item 1 , p.item 2 ,…,p.itemk- from Lk-1 p, Lk-1 q where p.item 1 =q.item 1 ,…,p.itemk-2=q.itemk-2, p.itemk-1<q.itemk- Prune step forall itemsets c ϵ Ck do for all(k-1)subsets s of c do if(s is not in L k-1) then delete c from Ck; 9/17/08 EECS 584, Fall 2008^14
Uses Apriori in initial passes. Switches to AprioriTid when size of ̅Ck gradually decreases. Performs better than Apriori in most cases. When size of ̅Ck is large for many passes and suddenly drops there is no much gain. 9/17/08 EECS 584, Fall 2008^19
We can use Apriori and AprioriTid algorithms for faster generation of association rules. Extending the algorithm further