1. Data summary and visualization
|
|
- Kellie West
- 6 years ago
- Views:
Transcription
1 1. Data summary and visualization 1
2 Summary statistics 1 # The UScereal data frame has 65 rows and 11 columns. 2 # The data come from the 1993 ASA Statistical Graphics Exposition, 3 # and are taken from the mandatory F&DA food label. 4 # The data have been normalized here to a portion of one American cup. 5 >library(mass) 6 >data(uscereal) 7 >summary(uscereal) 1 mfr calories protein fat sodium 2 G:22 Min. : 50.0 Min. : Min. :0.000 Min. : K:21 1st Qu.: st Qu.: st Qu.: st Qu.: N: 3 Median :134.3 Median : Median :1.000 Median : P: 9 Mean :149.4 Mean : Mean :1.423 Mean : Q: 5 3rd Qu.: rd Qu.: rd Qu.: rd Qu.: R: 5 Max. :440.0 Max. : Max. :9.091 Max. : fibre carbo sugars shelf 9 Min. : Min. :10.53 Min. : 0.00 Min. : st Qu.: st Qu.: st Qu.: st Qu.: Median : Median :18.67 Median :12.00 Median : Mean : Mean :19.97 Mean :10.05 Mean : rd Qu.: rd Qu.: rd Qu.: rd Qu.: Max. : Max. :68.00 Max. :20.90 Max. : potassium vitamins 17 Min. : % : 5 2
3 18 1st Qu.: 45.0 enriched:57 19 Median : 96.6 none : 3 20 Mean : rd Qu.: Max. : ># correlation matrix between some variables 2 >cor(uscereal[c("calories","protein","fat","fibre","sugars")]) 1 calories protein fat fibre sugars 2 calories protein fat fibre sugars >library(mass) >data(uscereal) >summary(uscereal) # summary statiscs for each variable mfr calories protein fat sodium G:22 Min. : 50.0 Min. : Min. :0.000 Min. : 50.0 K:21 1st Qu.: st Qu.: st Qu.: st Qu.:180.0 N: 3 Median :134.3 Median : Median :1.000 Median :232.0 P: 9 Mean :149.4 Mean : Mean :1.423 Mean :237.8 Q: 5 3rd Qu.: rd Qu.: rd Qu.: rd Qu.:290.0 R: 5 Max. :440.0 Max. : Max. :9.091 Max. :
4 fibre carbo sugars shelf Min. : Min. :10.53 Min. : 0.00 Min. : st Qu.: st Qu.: st Qu.: st Qu.:1.000 Median : Median :18.67 Median :12.00 Median :2.000 Mean : Mean :19.97 Mean :10.05 Mean : rd Qu.: rd Qu.: rd Qu.: rd Qu.:3.000 Max. : Max. :68.00 Max. :20.90 Max. :3.000 potassium vitamins Min. : % : 5 1st Qu.: 45.0 enriched:57 Median : 96.6 none : 3 Mean : rd Qu.:220.0 Max. :969.7 ># correlation matrix between some variables >cor(uscereal[c("calories","protein","fat","fibre","sugars")]) calories protein fat fibre sugars calories protein fat fibre sugars
5 1. Density visualization Histogram >hist(uscereal[,"protein"], main="uscereal data", xlab="protein") UScereal data Frequency protein 5
6 2. Density visualization Kernel smoothing >plot(density(uscereal[,"protein"],kernel="gaussian"), main="uscereal data", + xlab="protein") UScereal data Density protein 6
7 Boxplot >mfr=uscereal["mfr"] >boxplot(uscereal[mfr=="k","protein"], UScereal[mfr=="G", "protein"], + names=c("kellogs", "General Mills"), xlab="manufacturer", ylab="protein")) protein Kellogs General Mills Manufacturer 7
8 Quantile plot QQ plot displays (z k/(n+1),x (k) ), z q is qth quantile of N(0,1) Φ(z q ) = q, 0 < q < 1. >qqnorm(uscereal$calories) Normal Q Q Plot Sample Quantiles Theoretical Quantiles 8
9 Relations between two variables Scatterplot >plot(uscereal$fat, UScereal$calories, xlab="fat", ylab="calories") Calories Fat 9
10 Relations between more than two variables Scatterplot matrix >plot(uscereal[c("calories", "fat", "protein", "sugars","fibre", "sodium")]) calories fat protein sugars fibre sodium
11 Parallel plot >parallel( UScereal[, c("calories","protein", "fat", "fibre")]) fibre fat protein calories Min Max 11
12 2. Association rules (Market basket analysis) 12
13 Market basket analysis Association rules show the relationships between data items. Typical example A grocery store keeps a record of weekly transactions. Each represents the items bought during one cash register transaction. The objective of the market basket analysis is to determine the items likely to be purchased together by a customer. 13
14 Example Items: {Beer, Bread, Jelly, Milk, PeanutButter} Transaction t 1 t 2 t 3 t 4 t 5 Items Bread, Jelly, PeanutButter Bread, PeanutButter Bread, Milk, PeanutButter Beer, Bread Beer, Milk 100% of the time that PeanutButter is purchased, so is Bread. 33.3% of the time PeanutButter is purchased, Jelly is also purchased. PeanutButter exists in 60% of the overall transactions. 14
15 Definitions Given: a set of items I = {I 1,...,I m } a database of transactions D = {t 1,...,t n } where t i = {I i1,...,i ik } and I ij I Association rule Let X and Y be two disjoint subsets (itemsets) of I. We say that Y is associated with X (and write X Y) if the appearance of X in an transaction usually implies that Y occur in that transaction too. We identify X {X is purchased} 15
16 Support and confidence Support s of an association rule X Y is the percentage of transactions in the database that contain X Y s(x Y) = P(X Y) = 1 n n { } 1 t i (X Y). i=1 Confidence or strength α of an association rule X Y is the ratio of the number of transactions that contain X Y to the number of transactions that contain X α(x Y) = P(Y X) = P(X Y) P(X) = n i=1 1{ t i (X Y) } n i=1 1{ t i X } Problem: identify all rules with support and confidence s 0 and α 0. 16
17 Support and confidence of some rules X Y s α Bread PeanutButter 60% 75% PeanutButter Bread 60% 100% Beer Bread 20% 50% PeanutButter Jelly 20% 33.3% Jelly PeanutButter 20% 100% Jelly Milk 0% 0% 17
18 Other measures of rules quality Rules with high support and confidence may be obvious (not interesting). Lift (interest) lift(x Y) = 1 n P(X Y) P(X)P(Y) = n i=1 1(t i X Y) 1 n n i=1 1(t i X) 1 n n i=1 1(t i Y) Rules with lift 1 are interesting. Conviction conviction(x Y) = P(X)P(Y c ) P(X Y c ) = 1 n n i=1 1{t i X} 1 n n i=1 1{t i Y c } 1 n n i=1 1{t i X Y c } conviction = 1 if X and Y are not related. Rules that always hold have conviction =. 18
19 Lift and conviction of some rules X Y Bread PeanutButter 5 4 Lift Conviction 5 PeanutButter Bread Beer Bread 8 5 PeanutButter Jelly 5 3 Jelly PeanutButter 5 3 Jelly Milk
20 Mining rules from frequent itemsets 1. Find frequent itemsets (itemset whose number of occurrences is above a threshold s). 2. Generate rules from frequent itemsets. Input: D - database, I - collection of all items, L-collection of all frequent itemsets, s 0, α 0. Output: R - association rules satisfying s 0 and α 0. R = ; for each l L do for each x l such that x do if support(l) support(x) α then R = R {x (l x)}; 20
21 Example Assume s 0 = 30% and α 0 = 50%. Frequent itemset L {{Beer},{Bread},{Milk},{PeanutButter},{Bread,PeanutButter}} For l = {Bread, PeanutButter} we have two subsets: support({bread, PeanutButter}) support({bread}) support({bread, PeanutButter}) support({peanutbutter}) = = 0.75 > 0.5 = = 1 > 0.5 Conclusion: PeanutButter Bread and Bread PeanutButter are valid association rules. 21
22 Finding frequent itemsets: apriori algorithm Frequent itemset property Any subset of frequent itemset must be frequent Basic idea: Look at candidate sets of size i Choose frequent itemsets of the size i Generate frequent itemsets of size i + 1 by joining (taking unions of) frequent itemsets found till pass i+1. 22
23 Example: apriori algorithm s 0 = 30%, α 0 = 50% Pass Candidates Frequent itemsets 1 {Beer},{Bread},{Jelly} {Beer},{Bread}, {PeanutButter},{Milk} {Milk},{PeanutButter} 2 {Beer,Bread},{Beer,Milk}, {Bread,PeanutButter} {Bear,PeanutButter},{Bread,Milk}, {Bread,PeanutButter}, {Milk,PeanutButter} 23
24 Summary Efficient finding frequent itemsets Finding frequent itemsets is costly. If there are m items, potentially there may be 2 m 1 frequent itemsets. When all frequent itemsets are found, generating the association rules is easy and straightforward. 24
25 Example: DVD movies purchases Data: 1 > data<-read.table("dvddata.txt",header=t) 2 > data 3 Braveheart Gladiator Green.Mile Harry.Potter1 Harry.Potter2 LOTR1 LOTR Patriot Sixth.Sense
26 > Preparations 1 > nobs<-dim(data)[1] 2 > n<-dim(data)[2] 3 > namesvec<-colnames(data) 4 > namesvec 5 [1] "Braveheart" "Gladiator" "Green.Mile" "Harry.Potter1" 6 [5] "Harry.Potter2" "LOTR1" "LOTR2" "Patriot" 7 [9] "Sixth.Sense" 8 > 9 > # thresholds for rules 10 > supthresh< > conftresh< > lifttresh<-2 13 > 14 > sup1<-array(0,n) 15 > sup2<-matrix(0,ncol=n,nrow=n,dimnames=list(namesvec,namesvec)) Calculating the chance of appearance P(X) for each movie 1 > for (i in 1:n){ 2 + sup1[i]<-sum(data[,i])/nobs} 26
27 3 > sup1 4 [1] Calculating the chance of appearance P(X,Y) for each pair of movies 1 > for (j in 1:n){ 2 + if(sup1[j]>=supthresh){ 3 + for (k in j:n){ 4 + if (sup1[k]>=supthresh){ 5 + sup2[j,k]<-data[,j]%*%data[,k] 6 + sup2[k,j]<-sup2[j,k] } } } } 7 > sup2<-sup2/nobs 8 > sup2 1 Braveheart Gladiator Green.Mile Harry.Potter1 Harry.Potter2 LOTR1 2 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense LOTR2 Patriot Sixth.Sense 12 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter
28 17 LOTR LOTR Patriot Sixth.Sense Calculating the confidence matrix P(column row) 1 > conf2<-sup2/c(sup1) 2 > conf2 3 Braveheart Gladiator Green.Mile Harry.Potter1 Harry.Potter2 4 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense LOTR1 LOTR2 Patriot Sixth.Sense 14 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense
29 Calculating the lift matrix 1 > tmp<-matrix(c(sup1),nrow=n,ncol=n,byrow=true) 2 > tmp 3 [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] 4 [1,] [2,] [3,] [4,] [5,] [6,] [7,] [8,] [9,] > 14 > lift2<-conf2/tmp 15 > lift2 16 Braveheart Gladiator Green.Mile Harry.Potter1 Harry.Potter2 17 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense LOTR1 LOTR2 Patriot Sixth.Sense 27 Braveheart
30 28 Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense Extracting and printing rules 1 > rulesmat<-(sup2>=supthresh)*(conf2>=conftresh)*(lift2>=lifttresh) > rulesmat 7 Braveheart Gladiator Green.Mile Harry.Potter1 Harry.Potter2 LOTR1 8 Braveheart Gladiator Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense LOTR2 Patriot Sixth.Sense 18 Braveheart Gladiator
31 20 Green.Mile Harry.Potter Harry.Potter LOTR LOTR Patriot Sixth.Sense > diag(rulesmat)<-0 30 > rules<-null 31 > for (j in 1:n){ 32 + if (sum(rulesmat[j,])>0){ 33 + rules<-c(rules,paste(namesvec[j],"->",namesvec[rulesmat[j,]==1],sep="")) 34 + } 35 + } 36 > rules 37 [1] "Green.Mile->LOTR1" "LOTR1->Green.Mile" "LOTR1->LOTR2" 38 [4] "LOTR2->LOTR1" If we set supthresh<-0.1 then we find 12 rules 1 > rules 2 [1] "Green.Mile->Harry.Potter1" "Green.Mile->LOTR1" 3 [3] "Green.Mile->LOTR2" "Harry.Potter1->Green.Mile" 4 [5] "Harry.Potter1->Harry.Potter2" "Harry.Potter1->LOTR2" 5 [7] "Harry.Potter2->Harry.Potter1" "LOTR1->Green.Mile" 6 [9] "LOTR1->LOTR2" "LOTR2->Green.Mile" 7 [11] "LOTR2->Harry.Potter1" "LOTR2->LOTR1" 31
732A61/TDDD41 Data Mining - Clustering and Association Analysis
732A61/TDDD41 Data Mining - Clustering and Association Analysis Lecture 6: Association Analysis I Jose M. Peña IDA, Linköping University, Sweden 1/14 Outline Content Association Rules Frequent Itemsets
More informationAssocia'on Rule Mining
Associa'on Rule Mining Debapriyo Majumdar Data Mining Fall 2014 Indian Statistical Institute Kolkata August 4 and 7, 2014 1 Market Basket Analysis Scenario: customers shopping at a supermarket Transaction
More informationAssociation Rule. Lecturer: Dr. Bo Yuan. LOGO
Association Rule Lecturer: Dr. Bo Yuan LOGO E-mail: yuanb@sz.tsinghua.edu.cn Overview Frequent Itemsets Association Rules Sequential Patterns 2 A Real Example 3 Market-Based Problems Finding associations
More informationMeelis Kull Autumn Meelis Kull - Autumn MTAT Data Mining - Lecture 05
Meelis Kull meelis.kull@ut.ee Autumn 2017 1 Sample vs population Example task with red and black cards Statistical terminology Permutation test and hypergeometric test Histogram on a sample vs population
More informationCS 584 Data Mining. Association Rule Mining 2
CS 584 Data Mining Association Rule Mining 2 Recall from last time: Frequent Itemset Generation Strategies Reduce the number of candidates (M) Complete search: M=2 d Use pruning techniques to reduce M
More informationData Mining. Dr. Raed Ibraheem Hamed. University of Human Development, College of Science and Technology Department of Computer Science
Data Mining Dr. Raed Ibraheem Hamed University of Human Development, College of Science and Technology Department of Computer Science 2016 2017 Road map The Apriori algorithm Step 1: Mining all frequent
More informationAssignment 7 (Sol.) Introduction to Data Analytics Prof. Nandan Sudarsanam & Prof. B. Ravindran
Assignment 7 (Sol.) Introduction to Data Analytics Prof. Nandan Sudarsanam & Prof. B. Ravindran 1. Let X, Y be two itemsets, and let denote the support of itemset X. Then the confidence of the rule X Y,
More informationData Mining and Knowledge Discovery. Petra Kralj Novak. 2011/11/29
Data Mining and Knowledge Discovery Petra Kralj Novak Petra.Kralj.Novak@ijs.si 2011/11/29 1 Practice plan 2011/11/08: Predictive data mining 1 Decision trees Evaluating classifiers 1: separate test set,
More informationDATA MINING - 1DL360
DATA MINING - 1DL36 Fall 212" An introductory class in data mining http://www.it.uu.se/edu/course/homepage/infoutv/ht12 Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala
More informationThe Market-Basket Model. Association Rules. Example. Support. Applications --- (1) Applications --- (2)
The Market-Basket Model Association Rules Market Baskets Frequent sets A-priori Algorithm A large set of items, e.g., things sold in a supermarket. A large set of baskets, each of which is a small set
More informationIntroduction to Data Mining, 2 nd Edition by Tan, Steinbach, Karpatne, Kumar
Data Mining Chapter 5 Association Analysis: Basic Concepts Introduction to Data Mining, 2 nd Edition by Tan, Steinbach, Karpatne, Kumar 2/3/28 Introduction to Data Mining Association Rule Mining Given
More informationCS5112: Algorithms and Data Structures for Applications
CS5112: Algorithms and Data Structures for Applications Lecture 19: Association rules Ramin Zabih Some content from: Wikipedia/Google image search; Harrington; J. Leskovec, A. Rajaraman, J. Ullman: Mining
More informationReductionist View: A Priori Algorithm and Vector-Space Text Retrieval. Sargur Srihari University at Buffalo The State University of New York
Reductionist View: A Priori Algorithm and Vector-Space Text Retrieval Sargur Srihari University at Buffalo The State University of New York 1 A Priori Algorithm for Association Rule Learning Association
More informationD B M G Data Base and Data Mining Group of Politecnico di Torino
Data Base and Data Mining Group of Politecnico di Torino Politecnico di Torino Association rules Objective extraction of frequent correlations or pattern from a transactional database Tickets at a supermarket
More informationAssociation Rules. Fundamentals
Politecnico di Torino Politecnico di Torino 1 Association rules Objective extraction of frequent correlations or pattern from a transactional database Tickets at a supermarket counter Association rule
More informationD B M G. Association Rules. Fundamentals. Fundamentals. Elena Baralis, Silvia Chiusano. Politecnico di Torino 1. Definitions.
Definitions Data Base and Data Mining Group of Politecnico di Torino Politecnico di Torino Itemset is a set including one or more items Example: {Beer, Diapers} k-itemset is an itemset that contains k
More informationD B M G. Association Rules. Fundamentals. Fundamentals. Association rules. Association rule mining. Definitions. Rule quality metrics: example
Association rules Data Base and Data Mining Group of Politecnico di Torino Politecnico di Torino Objective extraction of frequent correlations or pattern from a transactional database Tickets at a supermarket
More informationDATA MINING - 1DL360
DATA MINING - DL360 Fall 200 An introductory class in data mining http://www.it.uu.se/edu/course/homepage/infoutv/ht0 Kjell Orsborn Uppsala Database Laboratory Department of Information Technology, Uppsala
More informationIntroduction to Data Mining
Introduction to Data Mining Lecture #12: Frequent Itemsets Seoul National University 1 In This Lecture Motivation of association rule mining Important concepts of association rules Naïve approaches for
More informationOutline. Fast Algorithms for Mining Association Rules. Applications of Data Mining. Data Mining. Association Rule. Discussion
Outline Fast Algorithms for Mining Association Rules Rakesh Agrawal Ramakrishnan Srikant Introduction Algorithm Apriori Algorithm AprioriTid Comparison of Algorithms Conclusion Presenter: Dan Li Discussion:
More informationAssociation Rules Information Retrieval and Data Mining. Prof. Matteo Matteucci
Association Rules Information Retrieval and Data Mining Prof. Matteo Matteucci Learning Unsupervised Rules!?! 2 Market-Basket Transactions 3 Bread Peanuts Milk Fruit Jam Bread Jam Soda Chips Milk Fruit
More informationData Mining Concepts & Techniques
Data Mining Concepts & Techniques Lecture No. 04 Association Analysis Naeem Ahmed Email: naeemmahoto@gmail.com Department of Software Engineering Mehran Univeristy of Engineering and Technology Jamshoro
More informationCOMP 5331: Knowledge Discovery and Data Mining
COMP 5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified by Dr. Lei Chen based on the slides provided by Jiawei Han, Micheline Kamber, and Jian Pei And slides provide by Raymond
More informationData Mining and Analysis: Fundamental Concepts and Algorithms
Data Mining and Analysis: Fundamental Concepts and Algorithms dataminingbook.info Mohammed J. Zaki 1 Wagner Meira Jr. 2 1 Department of Computer Science Rensselaer Polytechnic Institute, Troy, NY, USA
More information10/19/2017 MIST.6060 Business Intelligence and Data Mining 1. Association Rules
10/19/2017 MIST6060 Business Intelligence and Data Mining 1 Examples of Association Rules Association Rules Sixty percent of customers who buy sheets and pillowcases order a comforter next, followed by
More informationCS 484 Data Mining. Association Rule Mining 2
CS 484 Data Mining Association Rule Mining 2 Review: Reducing Number of Candidates Apriori principle: If an itemset is frequent, then all of its subsets must also be frequent Apriori principle holds due
More informationCS4445 B10 Homework 4 Part I Solution
CS4445 B10 Homework 4 Part I Solution Yutao Wang Consider the zoo.arff dataset converted to arff from the Zoo Data Set available at Univ. of California Irvine KDD Data Repository. 1. Load this dataset
More informationDATA MINING LECTURE 3. Frequent Itemsets Association Rules
DATA MINING LECTURE 3 Frequent Itemsets Association Rules This is how it all started Rakesh Agrawal, Tomasz Imielinski, Arun N. Swami: Mining Association Rules between Sets of Items in Large Databases.
More informationHandling a Concept Hierarchy
Food Electronics Handling a Concept Hierarchy Bread Milk Computers Home Wheat White Skim 2% Desktop Laptop Accessory TV DVD Foremost Kemps Printer Scanner Data Mining: Association Rules 5 Why should we
More information1 Frequent Pattern Mining
Decision Support Systems MEIC - Alameda 2010/2011 Homework #5 Due date: 31.Oct.2011 1 Frequent Pattern Mining 1. The Apriori algorithm uses prior knowledge about subset support properties. In particular,
More informationData Analytics Beyond OLAP. Prof. Yanlei Diao
Data Analytics Beyond OLAP Prof. Yanlei Diao OPERATIONAL DBs DB 1 DB 2 DB 3 EXTRACT TRANSFORM LOAD (ETL) METADATA STORE DATA WAREHOUSE SUPPORTS OLAP DATA MINING INTERACTIVE DATA EXPLORATION Overview of
More informationAssociation Rule Mining on Web
Association Rule Mining on Web What Is Association Rule Mining? Association rule mining: Finding interesting relationships among items (or objects, events) in a given data set. Example: Basket data analysis
More informationData Mining and Analysis: Fundamental Concepts and Algorithms
Data Mining and Analysis: Fundamental Concepts and Algorithms dataminingbook.info Mohammed J. Zaki 1 Wagner Meira Jr. 2 1 Department of Computer Science Rensselaer Polytechnic Institute, Troy, NY, USA
More informationData Mining: Concepts and Techniques. (3 rd ed.) Chapter 6
Data Mining: Concepts and Techniques (3 rd ed.) Chapter 6 Jiawei Han, Micheline Kamber, and Jian Pei University of Illinois at Urbana-Champaign & Simon Fraser University 2013 Han, Kamber & Pei. All rights
More informationLars Schmidt-Thieme, Information Systems and Machine Learning Lab (ISMLL), University of Hildesheim, Germany
Syllabus Fri. 21.10. (1) 0. Introduction A. Supervised Learning: Linear Models & Fundamentals Fri. 27.10. (2) A.1 Linear Regression Fri. 3.11. (3) A.2 Linear Classification Fri. 10.11. (4) A.3 Regularization
More informationLecture Notes for Chapter 6. Introduction to Data Mining
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004
More informationCSE 5243 INTRO. TO DATA MINING
CSE 5243 INTRO. TO DATA MINING Mining Frequent Patterns and Associations: Basic Concepts (Chapter 6) Huan Sun, CSE@The Ohio State University Slides adapted from Prof. Jiawei Han @UIUC, Prof. Srinivasan
More informationNetBox: A Probabilistic Method for Analyzing Market Basket Data
NetBox: A Probabilistic Method for Analyzing Market Basket Data José Miguel Hernández-Lobato joint work with Zoubin Gharhamani Department of Engineering, Cambridge University October 22, 2012 J. M. Hernández-Lobato
More informationFrequent Itemsets and Association Rule Mining. Vinay Setty Slides credit:
Frequent Itemsets and Association Rule Mining Vinay Setty vinay.j.setty@uis.no Slides credit: http://www.mmds.org/ Association Rule Discovery Supermarket shelf management Market-basket model: Goal: Identify
More informationCOMP 5331: Knowledge Discovery and Data Mining
COMP 5331: Knowledge Discovery and Data Mining Acknowledgement: Slides modified by Dr. Lei Chen based on the slides provided by Tan, Steinbach, Kumar And Jiawei Han, Micheline Kamber, and Jian Pei 1 10
More informationCSE 5243 INTRO. TO DATA MINING
CSE 5243 INTRO. TO DATA MINING Mining Frequent Patterns and Associations: Basic Concepts (Chapter 6) Huan Sun, CSE@The Ohio State University 10/17/2017 Slides adapted from Prof. Jiawei Han @UIUC, Prof.
More informationApriori algorithm. Seminar of Popular Algorithms in Data Mining and Machine Learning, TKK. Presentation Lauri Lahti
Apriori algorithm Seminar of Popular Algorithms in Data Mining and Machine Learning, TKK Presentation 12.3.2008 Lauri Lahti Association rules Techniques for data mining and knowledge discovery in databases
More informationData Warehousing & Data Mining
Data Warehousing & Data Mining Wolf-Tilo Balke Kinda El Maarry Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de 9. Business Intelligence 9. Business Intelligence
More informationData Warehousing & Data Mining
9. Business Intelligence Data Warehousing & Data Mining Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de 9. Business Intelligence
More informationDATA MINING LECTURE 4. Frequent Itemsets, Association Rules Evaluation Alternative Algorithms
DATA MINING LECTURE 4 Frequent Itemsets, Association Rules Evaluation Alternative Algorithms RECAP Mining Frequent Itemsets Itemset A collection of one or more items Example: {Milk, Bread, Diaper} k-itemset
More informationECLT 5810 Data Preprocessing. Prof. Wai Lam
ECLT 5810 Data Preprocessing Prof. Wai Lam Why Data Preprocessing? Data in the real world is imperfect incomplete: lacking attribute values, lacking certain attributes of interest, or containing only aggregate
More informationAssociation Rules. Acknowledgements. Some parts of these slides are modified from. n C. Clifton & W. Aref, Purdue University
Association Rules CS 5331 by Rattikorn Hewett Texas Tech University 1 Acknowledgements Some parts of these slides are modified from n C. Clifton & W. Aref, Purdue University 2 1 Outline n Association Rule
More informationFUZZY ASSOCIATION RULES: A TWO-SIDED APPROACH
FUZZY ASSOCIATION RULES: A TWO-SIDED APPROACH M. De Cock C. Cornelis E. E. Kerre Dept. of Applied Mathematics and Computer Science Ghent University, Krijgslaan 281 (S9), B-9000 Gent, Belgium phone: +32
More informationChapter 6. Frequent Pattern Mining: Concepts and Apriori. Meng Jiang CSE 40647/60647 Data Science Fall 2017 Introduction to Data Mining
Chapter 6. Frequent Pattern Mining: Concepts and Apriori Meng Jiang CSE 40647/60647 Data Science Fall 2017 Introduction to Data Mining Pattern Discovery: Definition What are patterns? Patterns: A set of
More informationMining Molecular Fragments: Finding Relevant Substructures of Molecules
Mining Molecular Fragments: Finding Relevant Substructures of Molecules Christian Borgelt, Michael R. Berthold Proc. IEEE International Conference on Data Mining, 2002. ICDM 2002. Lecturers: Carlo Cagli
More informationMining Positive and Negative Fuzzy Association Rules
Mining Positive and Negative Fuzzy Association Rules Peng Yan 1, Guoqing Chen 1, Chris Cornelis 2, Martine De Cock 2, and Etienne Kerre 2 1 School of Economics and Management, Tsinghua University, Beijing
More informationChapters 6 & 7, Frequent Pattern Mining
CSI 4352, Introduction to Data Mining Chapters 6 & 7, Frequent Pattern Mining Young-Rae Cho Associate Professor Department of Computer Science Baylor University CSI 4352, Introduction to Data Mining Chapters
More informationDATA MINING LECTURE 4. Frequent Itemsets and Association Rules
DATA MINING LECTURE 4 Frequent Itemsets and Association Rules This is how it all started Rakesh Agrawal, Tomasz Imielinski, Arun N. Swami: Mining Association Rules between Sets of Items in Large Databases.
More informationDensity-Based Clustering
Density-Based Clustering idea: Clusters are dense regions in feature space F. density: objects volume ε here: volume: ε-neighborhood for object o w.r.t. distance measure dist(x,y) dense region: ε-neighborhood
More informationData mining, 4 cu Lecture 5:
582364 Data mining, 4 cu Lecture 5: Evaluation of Association Patterns Spring 2010 Lecturer: Juho Rousu Teaching assistant: Taru Itäpelto Evaluation of Association Patterns Association rule algorithms
More informationData Warehousing. Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig
Data Warehousing & Data Mining Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de Summary How to build a DW The DW Project:
More informationMining Infrequent Patter ns
Mining Infrequent Patter ns JOHAN BJARNLE (JOHBJ551) PETER ZHU (PETZH912) LINKÖPING UNIVERSITY, 2009 TNM033 DATA MINING Contents 1 Introduction... 2 2 Techniques... 3 2.1 Negative Patterns... 3 2.2 Negative
More information.. Cal Poly CSC 466: Knowledge Discovery from Data Alexander Dekhtyar..
.. Cal Poly CSC 4: Knowledge Discovery from Data Alexander Dekhtyar.. Data Mining: Mining Association Rules Examples Course Enrollments Itemset. I = { CSC3, CSC3, CSC40, CSC40, CSC4, CSC44, CSC4, CSC44,
More informationSummary. 8.1 BI Overview. 8. Business Intelligence. 8.1 BI Overview. 8.1 BI Overview 12/17/ Business Intelligence
Summary Data Warehousing & Data Mining Wolf-Tilo Balke Silviu Homoceanu Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de How to build a DW The DW Project:
More informationDATA MINING - 1DL105, 1DL111
1 DATA MINING - 1DL105, 1DL111 Fall 2007 An introductory class in data mining http://user.it.uu.se/~udbl/dut-ht2007/ alt. http://www.it.uu.se/edu/course/homepage/infoutv/ht07 Kjell Orsborn Uppsala Database
More informationEFFICIENT MINING OF WEIGHTED QUANTITATIVE ASSOCIATION RULES AND CHARACTERIZATION OF FREQUENT ITEMSETS
EFFICIENT MINING OF WEIGHTED QUANTITATIVE ASSOCIATION RULES AND CHARACTERIZATION OF FREQUENT ITEMSETS Arumugam G Senior Professor and Head, Department of Computer Science Madurai Kamaraj University Madurai,
More informationOPPA European Social Fund Prague & EU: We invest in your future.
OPPA European Social Fund Prague & EU: We invest in your future. Frequent itemsets, association rules Jiří Kléma Department of Cybernetics, Czech Technical University in Prague http://ida.felk.cvut.cz
More informationSelecting a Right Interestingness Measure for Rare Association Rules
Selecting a Right Interestingness Measure for Rare Association Rules Akshat Surana R. Uday Kiran P. Krishna Reddy Center for Data Engineering International Institute of Information Technology-Hyderabad
More informationMachine Learning: Pattern Mining
Machine Learning: Pattern Mining Information Systems and Machine Learning Lab (ISMLL) University of Hildesheim Wintersemester 2007 / 2008 Pattern Mining Overview Itemsets Task Naive Algorithm Apriori Algorithm
More informationASSOCIATION ANALYSIS FREQUENT ITEMSETS MINING. Alexandre Termier, LIG
ASSOCIATION ANALYSIS FREQUENT ITEMSETS MINING, LIG M2 SIF DMV course 207/208 Market basket analysis Analyse supermarket s transaction data Transaction = «market basket» of a customer Find which items are
More informationUnsupervised Learning. k-means Algorithm
Unsupervised Learning Supervised Learning: Learn to predict y from x from examples of (x, y). Performance is measured by error rate. Unsupervised Learning: Learn a representation from exs. of x. Learn
More informationAssociation Analysis Part 2. FP Growth (Pei et al 2000)
Association Analysis art 2 Sanjay Ranka rofessor Computer and Information Science and Engineering University of Florida F Growth ei et al 2 Use a compressed representation of the database using an F-tree
More informationAssociation Analysis: Basic Concepts. and Algorithms. Lecture Notes for Chapter 6. Introduction to Data Mining
Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar Tan,Steinbach, Kumar Introduction to Data Mining 4/18/2004 1 Association
More informationNEGATED ITEMSETS OBTAINING METHODS FROM TREE- STRUCTURED STREAM DATA
NEGATED ITEMSETS OBTAINING METHODS FROM TREE- STRUCTURED STREAM DATA JURYON PAIK Pyeongtaek University, Department of Digital Information and Statistics, Gyeonggi-do 17869, South Korea E-mail: jrpaik@ptu.ac.kr
More informationChapter 4 Dimension Reduction
Chapter 4 Dimension Reduction Data Mining for Business Intelligence Shmueli, Patel & Bruce Galit Shmueli and Peter Bruce 2010 Exploring the data Statistical summary of data: common metrics Average Median
More informationLecture Notes for Chapter 6. Introduction to Data Mining. (modified by Predrag Radivojac, 2017)
Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar (modified by Predrag Radivojac, 27) Association Rule Mining Given a set of transactions, find rules that will predict the
More informationCS738 Class Notes. Steve Revilak
CS738 Class Notes Steve Revilak January 2008 May 2008 Copyright c 2008 Steve Revilak. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation
More informationCSE-4412(M) Midterm. There are five major questions, each worth 10 points, for a total of 50 points. Points for each sub-question are as indicated.
22 February 2007 CSE-4412(M) Midterm p. 1 of 12 CSE-4412(M) Midterm Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2007 Answer the following
More informationCS-C Data Science Chapter 8: Discrete methods for analyzing large binary datasets
CS-C3160 - Data Science Chapter 8: Discrete methods for analyzing large binary datasets Jaakko Hollmén, Department of Computer Science 30.10.2017-18.12.2017 1 Rest of the course In the first part of the
More informationDescriptive data analysis. E.g. set of items. Example: Items in baskets. Sort or renumber in any way. Example
.3.6 Descriptive data analysis Data Mining MTAT.3.83 (6EAP) Frequent itemsets and association rules Jaak Vilo 26 Spring Aims to summarise the main qualitative traits of data. Used mainly for discovering
More information12 Count-Min Sketch and Apriori Algorithm (and Bloom Filters)
12 Count-Min Sketch and Apriori Algorithm (and Bloom Filters) Many streaming algorithms use random hashing functions to compress data. They basically randomly map some data items on top of each other.
More informationFrequent Itemset Mining
ì 1 Frequent Itemset Mining Nadjib LAZAAR LIRMM- UM COCONUT Team (PART I) IMAGINA 17/18 Webpage: http://www.lirmm.fr/~lazaar/teaching.html Email: lazaar@lirmm.fr 2 Data Mining ì Data Mining (DM) or Knowledge
More informationUnit II Association Rules
Unit II Association Rules Basic Concepts Frequent Pattern Analysis Frequent pattern: a pattern (a set of items, subsequences, substructures, etc.) that occurs frequently in a data set Frequent Itemset
More informationCS 5614: (Big) Data Management Systems. B. Aditya Prakash Lecture #11: Frequent Itemsets
CS 5614: (Big) Data Management Systems B. Aditya Prakash Lecture #11: Frequent Itemsets Refer Chapter 6. MMDS book. VT CS 5614 2 Associa=on Rule Discovery Supermarket shelf management Market-basket model:
More informationEffective and efficient correlation analysis with application to market basket analysis and network community detection
University of Iowa Iowa Research Online Theses and Dissertations Summer 2012 Effective and efficient correlation analysis with application to market basket analysis and network community detection Lian
More informationProcessing Count Queries over Event Streams at Multiple Time Granularities
Processing Count Queries over Event Streams at Multiple Time Granularities Aykut Ünal, Yücel Saygın, Özgür Ulusoy Department of Computer Engineering, Bilkent University, Ankara, Turkey. Faculty of Engineering
More informationFrequent Itemset Mining
Frequent Itemset Mining prof. dr Arno Siebes Algorithmic Data Analysis Group Department of Information and Computing Sciences Universiteit Utrecht Battling Size The previous time we saw that Big Data has
More informationMining Class-Dependent Rules Using the Concept of Generalization/Specialization Hierarchies
Mining Class-Dependent Rules Using the Concept of Generalization/Specialization Hierarchies Juliano Brito da Justa Neves 1 Marina Teresa Pires Vieira {juliano,marina}@dc.ufscar.br Computer Science Department
More informationChapter 4: Frequent Itemsets and Association Rules
Chapter 4: Frequent Itemsets and Association Rules Jilles Vreeken Revision 1, November 9 th Notation clarified, Chi-square: clarified Revision 2, November 10 th details added of derivability example Revision
More informationAssociation)Rule Mining. Pekka Malo, Assist. Prof. (statistics) Aalto BIZ / Department of Information and Service Management
Association)Rule Mining Pekka Malo, Assist. Prof. (statistics) Aalto BIZ / Department of Information and Service Management What)is)Association)Rule)Mining? Finding frequent patterns,1associations,1correlations,1or
More information15 Introduction to Data Mining
15 Introduction to Data Mining 15.1 Introduction to principle methods 15.2 Mining association rule see also: A. Kemper, Chap. 17.4, Kifer et al.: chap 17.7 ff 15.1 Introduction "Discovery of useful, possibly
More informationFUZZY ASSOCIATION RULES: A TWO-SIDED APPROACH
FUZZY ASSOCIATION RULES: A TWO-SIDED APPROACH M. De Cock C. Cornelis E. E. Kerre Dept. of Applied Mathematics and Computer Science Ghent University, Krijgslaan 281 (S9), B-9000 Gent, Belgium phone: +32
More informationApproach for Rule Pruning in Association Rule Mining for Removing Redundancy
Approach for Rule Pruning in Association Rule Mining for Removing Redundancy Ashwini Batbarai 1, Devishree Naidu 2 P.G. Student, Department of Computer science and engineering, Ramdeobaba College of engineering
More informationAssociation Analysis. Part 1
Association Analysis Part 1 1 Market-basket analysis DATA: A large set of items: e.g., products sold in a supermarket A large set of baskets: e.g., each basket represents what a customer bought in one
More informationCS4445 Data Mining and Knowledge Discovery in Databases. B Term 2014 Solutions Exam 2 - December 15, 2014
CS4445 Data Mining and Knowledge Discovery in Databases. B Term 2014 Solutions Exam 2 - December 15, 2014 Prof. Carolina Ruiz Department of Computer Science Worcester Polytechnic Institute NAME: Prof.
More informationApproximate counting: count-min data structure. Problem definition
Approximate counting: count-min data structure G. Cormode and S. Muthukrishhan: An improved data stream summary: the count-min sketch and its applications. Journal of Algorithms 55 (2005) 58-75. Problem
More informationRemoving trivial associations in association rule discovery
Removing trivial associations in association rule discovery Geoffrey I. Webb and Songmao Zhang School of Computing and Mathematics, Deakin University Geelong, Victoria 3217, Australia Abstract Association
More informationarxiv: v1 [cs.db] 31 Dec 2011
Mining Flipping Correlations from Large Datasets with Taxonomies MarinaBarsky SangkyumKim TimWeninger JiaweiHan Univ. ofvictoria,bc,canada,marina barsky@gmail.com Univ.ofIllinoisatUrbana-Champaign, {kim71,weninger1,hanj}@illinois.edu
More informationDescriptive data analysis. E.g. set of items. Example: Items in baskets. Sort or renumber in any way. Example item id s
7.3.7 Descriptive data analysis Data Mining MTAT.3.83 (6EAP) Frequent itemsets and association rules Jaak Vilo 27 Spring Aims to summarise the main qualitative traits of data. Used mainly for discovering
More informationSequential Pattern Mining
Sequential Pattern Mining Lecture Notes for Chapter 7 Introduction to Data Mining Tan, Steinbach, Kumar From itemsets to sequences Frequent itemsets and association rules focus on transactions and the
More informationDistributed Mining of Frequent Closed Itemsets: Some Preliminary Results
Distributed Mining of Frequent Closed Itemsets: Some Preliminary Results Claudio Lucchese Ca Foscari University of Venice clucches@dsi.unive.it Raffaele Perego ISTI-CNR of Pisa perego@isti.cnr.it Salvatore
More informationLecture 5: Clustering, Linear Regression
Lecture 5: Clustering, Linear Regression Reading: Chapter 10, Sections 3.1-3.2 STATS 202: Data mining and analysis October 4, 2017 1 / 22 .0.0 5 5 1.0 7 5 X2 X2 7 1.5 1.0 0.5 3 1 2 Hierarchical clustering
More informationΩ R n is called the constraint set or feasible set. x 1
1 Chapter 5 Linear Programming (LP) General constrained optimization problem: minimize subject to f(x) x Ω Ω R n is called the constraint set or feasible set. any point x Ω is called a feasible point We
More informationDetecting Anomalous and Exceptional Behaviour on Credit Data by means of Association Rules. M. Delgado, M.D. Ruiz, M.J. Martin-Bautista, D.
Detecting Anomalous and Exceptional Behaviour on Credit Data by means of Association Rules M. Delgado, M.D. Ruiz, M.J. Martin-Bautista, D. Sánchez 18th September 2013 Detecting Anom and Exc Behaviour on
More informationAssociation Rules. Jones & Bartlett Learning, LLC NOT FOR SALE OR DISTRIBUTION. Jones & Bartlett Learning, LLC NOT FOR SALE OR DISTRIBUTION
CHAPTER2 Association Rules 2.1 Introduction Many large retail organizations are interested in instituting information-driven marketing processes, managed by database technology, that enable them to Jones
More information