Docsity

Fast Algorithms for Mining Association Rules - Lecture Slides | EECS 584, Study notes of Database Management Systems (DBMS)

Toggle sidebar
bg1
9/17/08 EECS 584, Fall 2008 1
Fast Algorithms for mining
Association Rules
Rakesh Agarwal , Ramakrishnan Srikant IBM Almaden Research Center
Presenter : Vindhya Baddela
Instructor : Kristen Lefevre
Context
People buy these items togethe r!
- Diapers and beer
- Tuna(fish) and Toothpaste
Is there a way to discover these kinds o f
relations which are generally not ob vious?
The answer is DATA MINING.
9/17/08 EECS 584, Fall 2008 2
9/17/08 EECS 584, Fall 2008 3
Data Mining - Introduction
What is data mining?
Process of extracting hidden interesting
patterns representing know ledge from large
volumes of data.
Why is it important?
- Explosive growth of data(www, barco de
readers, etc.)
- Need for fast and efficient techniques to
convert data tombs to golden nugge ts
of knowledge.
pf3
pf4
pf5

Partial preview of the text

Download Fast Algorithms for Mining Association Rules - Lecture Slides | EECS 584 and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

9/17/08 EECS 584, Fall 2008 1

Fast Algorithms for mining

Association Rules

Rakesh Agarwal , Ramakrishnan Srikant IBM Almaden Research Center

Presenter : Vindhya Baddela

Instructor : Kristen Lefevre

Context

 People buy these items together!

  • Diapers and beer
  • Tuna(fish) and Toothpaste  Is there a way to discover these kinds of relations which are generally not obvious?  The answer is DATA MINING. 9/17/08 EECS 584, Fall 2008^2

Data Mining - Introduction

 What is data mining? Process of extracting hidden interesting patterns representing knowledge from large volumes of data.  Why is it important?

  • Explosive growth of data(www, barcode readers, etc.)
  • Need for fast and efficient techniques to convert data tombs to golden nuggets of knowledge.

What kind of patterns can be

mined?

  1. Associations
  2. Correlations
  3. Models (describing classes/concepts)
  4. Anomalies
  5. Clusters 9/17/08 EECS 584, Fall 2008^4

Association Rule

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

Association Rule

 Definition: I - {i1, i2, i3 ,…, im} D - set of transactions T - transaction with a set of items X, Y - Itemset

X => Y X ⊂ I, Y ⊂ I, X ∩ Y = Φ

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

Apriori Algorithm - Example

Pass 1

9/17/08 EECS 584, Fall 2008^10

Apriori Algorithm - Example

Pass 2

9/17/08 EECS 584, Fall 2008^11

Apriori Algorithm - Example

Pass 3

Apriori algorithm

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

Apriori Candidate Generation

 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

AprioriTid Algorithm

 Variation of Apriori algorithm

 TIDs of transactions are associated with

the corresponding candidate itemsets.

 Support is calculated using the set of

candidate itemsets with TIDs - ̅Ck.

AprioriHybrid Algorithm

 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

Conclusion

 We can use Apriori and AprioriTid algorithms for faster generation of association rules.  Extending the algorithm further

  • hierarchy of items
  • quantities of items
  • quantifying interestingness