1 / 17

Association Rules

Association Rules. Spring 2010. Data Mining: What is it?. Two definitions: The first one, classic and well-known, says that data mining is the nontrivial extraction of implicit, previously unknown, and potentially useful information from data (W. Frawley)

cassady-roy
Télécharger la présentation

Association Rules

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Association Rules Spring 2010

  2. Data Mining: What is it? • Two definitions: • The first one, classic and well-known, says that data mining is the nontrivial extraction of implicit, previously unknown, and potentially useful information from data (W. Frawley) • The second one, spark and rebel, says that data mining is nothing else than torturing the data until it confesses… and if you torture it enough, you can get it to confess to anything (Fred Menger).

  3. Data mining techniques • Association Rules • Classification • Prediction • Clustering

  4. What is Association mining? Finding frequent patterns, associations, or casual structures among sets of items or objects in transaction databases, relational databases, and other information repositories. Searches for relationships between variables. For example a supermarket might gather data on customer purchasing habits. Using association rule learning, the supermarket can determine which products are frequently bought together and use this information for marketing purposes. This is sometimes referred to as market basket analysis. Applications Basket Data Analysis Cross-marketing Catalog design …

  5. Introduction to Association Rules (AR) • Ideas came from the market basket analysis (MBA) • What do customers buy? • Which products are bought together? AIM: • Find association and correlations between the different items that customers place in their shopping basket.

  6. Some definitions in AR Pattern: • A particular data behavior, arrangement or form that might be of a business interest Itemset: • A set of items, a group of elements that represents together a single entity. It is actually a type of pattern.

  7. Some definitions in AR (cntd.) • Transaction database T • A set of transactions T = {T1 ,T2,…, Tn } • Itemset • Each transaction contains a set of items I(Itemset) • An Itemset is a collection of items I = {I1, I2, ..., In}

  8. AR General Aim • Find frequent/interesting patterns, associations, correlations, or casual structures among set of items or elements in databases or other information repositories. • An AR is an implication of two itemsets: • X => y

  9. AR (contd.) Frequent itemsets: items that frequently appear together. Example • Bread => peanut-butter • I = {bread, peanut-butter}

  10. An Interesting Rule • Support count (σ): • Frequency of occurrence of an itemset • σ {bread, peanut-butter} = 3 • Support: • Fraction of transactions that contain an itemset • S {bread, peanut-butter} = 3/5

  11. AR (contd.) The two most used measures of interest: • Support(s): the occurring frequency of the rule, i.e. the number of transactions that contain both X and Y • S = σ (X union Y) / # of transactions • Confidence(s): the strength of the association, i.e. measures of how often items in Y appear in transactions that contain X. • C = σ (X union Y) / σ (X)

  12. AR (contd.)

  13. Types of AR • Binary Association Rules • Quantitative Association Rules • Fuzzy Association Rules Let’s start from the beginning: • Binary Association Rules, A-priori

  14. A-priori algorithm • Priori is the most influential AR miner • It consist of two steps: • Generate all frequent itemsets whose support >= minimum support. • Use frequent itemsets to generate association rules.

  15. A-priori (contd.) • Key Idea: • Downward closure property: • Any subsets of a frequent itemset are also frequent itemsets. • The algorithm iteratively does: • Create itemsets • Only continue exploration of those whose support >= minimum support

  16. Back to our example (minsup = 3)

  17. Example (minsup = 2)

More Related