CSE 634/590 Data mining Extra Credit: Submitted By: Moieed Ahmed 106867769.

Slides:



Advertisements
Similar presentations
Association Rule and Sequential Pattern Mining for Episode Extraction Jonathan Yip.
Advertisements

Huffman Codes and Asssociation Rules (II) Prof. Sin-Min Lee Department of Computer Science.
Association Analysis (2). Example TIDList of item ID’s T1I1, I2, I5 T2I2, I4 T3I2, I3 T4I1, I2, I4 T5I1, I3 T6I2, I3 T7I1, I3 T8I1, I2, I3, I5 T9I1, I2,
Frequent Itemset Mining Methods. The Apriori algorithm Finding frequent itemsets using candidate generation Seminal algorithm proposed by R. Agrawal and.
CSE 634 Data Mining Techniques
Institut für Scientific Computing - Universität WienP.Brezany 1 Datamining Methods Mining Association Rules and Sequential Patterns.
Data Mining Techniques Association Rule
Association rules and frequent itemsets mining
DATA MINING Association Rule Discovery. AR Definition aka Affinity Grouping Common example: Discovery of which items are frequently sold together at a.
Data Mining (Apriori Algorithm)DCS 802, Spring DCS 802 Data Mining Apriori Algorithm Spring of 2002 Prof. Sung-Hyuk Cha School of Computer Science.
Rule Generation from Decision Tree Decision tree classifiers are popular method of classification due to it is easy understanding However, decision tree.
Association Rules Spring Data Mining: What is it?  Two definitions:  The first one, classic and well-known, says that data mining is the nontrivial.
Pertemuan XIV FUNGSI MAYOR Assosiation. What Is Association Mining? Association rule mining: –Finding frequent patterns, associations, correlations, or.
Association Rule Mining. 2 The Task Two ways of defining the task General –Input: A collection of instances –Output: rules to predict the values of any.
Data Mining Association Analysis: Basic Concepts and Algorithms
Rakesh Agrawal Ramakrishnan Srikant
Association Analysis. Association Rule Mining: Definition Given a set of records each of which contain some number of items from a given collection; –Produce.
Data Mining Techniques So Far: Cluster analysis K-means Classification Decision Trees J48 (C4.5) Rule-based classification JRIP (RIPPER) Logistic Regression.
Data Mining Association Analysis: Basic Concepts and Algorithms Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach, Kumar Introduction.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
732A02 Data Mining - Clustering and Association Analysis ………………… Jose M. Peña Association rules Apriori algorithm FP grow algorithm.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Association Analysis (2). Example TIDList of item ID’s T1I1, I2, I5 T2I2, I4 T3I2, I3 T4I1, I2, I4 T5I1, I3 T6I2, I3 T7I1, I3 T8I1, I2, I3, I5 T9I1, I2,
Data Mining Association Analysis: Basic Concepts and Algorithms
1 Mining Quantitative Association Rules in Large Relational Database Presented by Jin Jin April 1, 2004.
Data Mining Association Analysis: Basic Concepts and Algorithms
Maintenance of Discovered Association Rules S.D.LeeDavid W.Cheung Presentation : Pablo Gazmuri.
6/23/2015CSE591: Data Mining by H. Liu1 Association Rules Transactional data Algorithm Applications.
1 ACCTG 6910 Building Enterprise & Business Intelligence Systems (e.bis) Association Rule Mining Olivia R. Liu Sheng, Ph.D. Emma Eccles Jones Presidential.
© Vipin Kumar CSci 8980 Fall CSci 8980: Data Mining (Fall 2002) Vipin Kumar Army High Performance Computing Research Center Department of Computer.
Association Rule Mining Part 1 Introduction to Data Mining with Case Studies Author: G. K. Gupta Prentice Hall India, 2006.
Fast Algorithms for Association Rule Mining
Lecture14: Association Rules
1 Fast Algorithms for Mining Association Rules Rakesh Agrawal Ramakrishnan Srikant Slides from Ofer Pasternak.
Mining Association Rules in Large Databases. What Is Association Rule Mining?  Association rule mining: Finding frequent patterns, associations, correlations,
Association Discovery from Databases Association rules are a simple formalism for expressing positive connections between columns in a 0/1 matrix. A classical.
Bayesian Decision Theory Making Decisions Under uncertainty 1.
Association Rules. 2 Customer buying habits by finding associations and correlations between the different items that customers place in their “shopping.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining By Tan, Steinbach, Kumar Lecture.
Modul 7: Association Analysis. 2 Association Rule Mining  Given a set of transactions, find rules that will predict the occurrence of an item based on.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Association Rules. CS583, Bing Liu, UIC 2 Association rule mining Proposed by Agrawal et al in Initially used for Market Basket Analysis to find.
1 Mining Association Rules Mohamed G. Elfeky. 2 Introduction Data mining is the discovery of knowledge and useful information from the large amounts of.
3.Mining Association Rules in Large Database 3.1 Market Basket Analysis:Example for Association Rule Mining 1.A typical example of association rule mining.
Introduction of Data Mining and Association Rules cs157 Spring 2009 Instructor: Dr. Sin-Min Lee Student: Dongyi Jia.
CS685 : Special Topics in Data Mining, UKY The UNIVERSITY of KENTUCKY Classification - SVM CS 685: Special Topics in Data Mining Spring 2008 Jinze Liu.
CSE4334/5334 DATA MINING CSE4334/5334 Data Mining, Fall 2014 Department of Computer Science and Engineering, University of Texas at Arlington Chengkai.
Association Rule Mining Data Mining and Knowledge Discovery Prof. Carolina Ruiz and Weiyang Lin Department of Computer Science Worcester Polytechnic Institute.
Part II - Association Rules © Prentice Hall1 DATA MINING Introductory and Advanced Topics Part II – Association Rules Margaret H. Dunham Department of.
Association Rule Mining
© Tan,Steinbach, Kumar Introduction to Data Mining 4/18/ Data Mining: Association Analysis This lecture node is modified based on Lecture Notes for.
Chapter 6. Classification and Prediction Classification by decision tree induction Bayesian classification Rule-based classification Classification by.
Elsayed Hemayed Data Mining Course
Data Mining  Association Rule  Classification  Clustering.
Data Mining Association Analysis: Basic Concepts and Algorithms Lecture Notes for Chapter 6 Introduction to Data Mining by Tan, Steinbach, Kumar © Tan,Steinbach,
Chapter 8 Association Rules. Data Warehouse and Data Mining Chapter 10 2 Content Association rule mining Mining single-dimensional Boolean association.
Chap 6: Association Rules. Rule Rules!  Motivation ~ recent progress in data mining + warehousing have made it possible to collect HUGE amount of data.
COMP53311 Association Rule Mining Prepared by Raymond Wong Presented by Raymond Wong
1 Data Mining Lecture 6: Association Analysis. 2 Association Rule Mining l Given a set of transactions, find rules that will predict the occurrence of.
Chapter 3 Data Mining: Classification & Association Chapter 4 in the text box Section: 4.3 (4.3.1),
Data Mining – Association Rules
Association rule mining
Association Rules Repoussis Panagiotis.
Frequent Pattern Mining
Association Rules.
William Norris Professor and Head, Department of Computer Science
Data Mining Association Analysis: Basic Concepts and Algorithms
Data Mining Association Analysis: Basic Concepts and Algorithms
©Jiawei Han and Micheline Kamber
Presentation transcript:

CSE 634/590 Data mining Extra Credit: Submitted By: Moieed Ahmed

StudentGradeIncomeBuys CSHighLowMilk CSHigh Bread MathLow Bread CSMediumHighMilk MathLow Bread

Student = CS (I1) Student =math (I2) Grade = high (I3) Grade =medium (I4) Grade =low (I5) Income =high (I6) Income =low (I7) Buys=mil k (I8) Buys =bread (I9)

Item Set Support Count {I1} 3 {I2} 2 {I3} 2 {I4} 1 {I5}2 {I6,}2 {I7}3 {I8}2 {I9}3 Item Set Support Count {I1} 3 {I2} 2 {I3} 2 {I5}2 {I6,}2 {I7}3 {I8}2 {I9}3 Scan D for count of each candidate Compare candidate support count with minimum support count C1 L1 Let, the minimum support count be 2. Since we have 5 records => (Support) = 2/5 = 40% Let, minimum confidence required is 70%.

Item Set {I1,I2} {I1,I3} {I1,I4} {I1,I5} {I1,I6} {I1,I7} {I1,I8} {I1,I9} {I2,I3} {I2,I4} {I2,I5} {I2,I6} {I2,I7} {I2,I8} {I2,I9} {I3,I4} {I3,I5} {I3,I6} {I3,I7} {I3,I8} {I3,I9} {I4,I5} {I4,I6} {I4,I7} {I4,I8} {I4,I9} {I5,I6} {I5,I7} {I5,I8} {I5,I9} {I6,I7} {I6,I8} {I6,I9} {I7,I8} {I7,I9} {I8,I9} Item Set Support Count {I1,I2}0 {I1,I3} 2 {I1,I4} 1 {I1,I5} 0 {I1,I6} 2 {I1,I7} 1 {I1,I8} 2 {I1,I9} 1 {I2,I3} 0 {I2,I4} 0 {I2,I5} 2 {I2,I6} 0 {I2,I7} 2 {I2,I8} 0 {I2,I9} 2 {I3,I4} 0 {I3,I5} 0 {I3,I6} 1 {I3,I7} 1 {I3,I8} 1 {I3,I9} 1 {I4,I5} 0 {I4,I6} 1 {I4,I7} 0 {I4,I8} 1 {I4,I9} 0 {I5,I6} 0 {I5,I7} 2 {I5,I8}0 {I5,I9}2 {I6,I7}0 {I6,I8}1 {I6,I9}0 {I7,I8}1 {I7,I9}2 {I8,I9}0 Item SetSupport Count {I1,I3} 2 {I1,I6} 2 {I1,I8} 2 {I2,I5} 2 {I2,I7} 2 {I2,I9} 2 {I5,I7} 2 {I5,I9}2 {I7,I9}2 C2 L2 Generate C2 candidates from L1 Scan D for count of each candidate Compare candidate support count with minimum support count

1. The join step: To find L k, a set of candidate k-itemsets is generated by joining L k-1 with itself. This set of candidates is denoted Ck. L k – Itemsets C k – Candidates Considering {I2,I5}, {I7,I9} from L2 to arrive at L3 we Join L2xL2 And thus we have {I2,I5,I7}, {I2,I5,I9} in the resultant candidates generated from L2 Considering {I1,I3}, {I1,I6} from L2 we generate candidates {I1,I3,I6} 2. The prune step: C k is a superset of L k, that is, its members may or may not be frequent All candidates having a count no less than the minimum support count are frequent by definition, and therefore belong to Lk). Ck, however, can be huge Thus, {I2,I5,I7}, {I2,I5,I9} from join step are considered since they have minimum support but {I1,I3,I6} is discarded since it does not meet the support count needed.

Item Set {I2,I5,I7} {I2,I5,I9} {I2,I7,I9} {I5,I7,I9} Generate C3 candidates from L2 Scan D for count of each candidate Item Set Support Count {I2,I5,I7} 2 {I2,I5,I9} 2 {I2,I7,I9} 2 {I5,I7,I9} 2 Compare candidate support count with minimum support count Item Set Support Count {I2,I5,I7} 2 {I2,I5,I9} 2 {I2,I7,I9} 2 {I5,I7,I9} 2 C3 L3 Generating 4-itemset Frequent Pattern Generate C4 candidates from L3 Item Set {I2,I5,I7,I9} C3 C4 Scan D for count of each candidate Item Set Support Count {I2,I5,I7,I9} 2 C4 Compare candidate support count with minimum support count Item Set Support Count {I2,I5,I7,I9} 2 L4

o When mining association rules for use in classification, we are only interested in association rules of the form o (p1 ^ p2 ^: : : pl )  Aclass = C where the rule antecedent is a conjunction of items, p1, p2, : : :, pl (l n), associated with a class label, C.  In our example Aclass would be either ( I8 or I9 on RHS) that is to predict whether a student with given characteristics buys Milk / Bread.  Let, minimum confidence required be 70%  Considering, l={ I2,I5,I7,I9}  It’s nonempty subsets are {{2},{5},{7},{9},{2,5},{2,7},{2,9},{5,7}, {5,9},{7,9},{2,5,7},{2,5,9},{2,7,9},{5,7,9}}

 R1 : I2 ^ I5 ^ I7  I9 [40%,100%] ◦ Confidence = sc{I2,I5,I7,I9}/ sc{I2,I5,I7} = 2/2 = 100% ◦ R1 is Selected  Considering 3 itemset Frequent Pattern  R2 : I5 ^ I7  I9 [40%,100%] ◦ Confidence = sc{I5,I7,I9}/ sc{I5,I7} = 2/2 = 100% ◦ R2 is Selected  R3 : I2 ^ I7  I9 [40%,100%] ◦ Confidence = sc{I2,I7,I9}/ sc{I2,I7} = 2/2 = 100% ◦ R3 is Selected  R4 : I2 ^ I5  I9 [40%,100%] ◦ Confidence = sc{I2,I7,I9}/ sc{I2,I7} = 2/2 = 100% ◦ R4 is Selected

Considering 2 itemset Frequent Pattern  R5 : I5  I9 [40%,100%] ◦ Confidence = sc{I5,I9}/ sc{I9} = 2/2 = 100% ◦ R5 is Selected  R6 : I2  I9 [40%,100%] ◦ Confidence = sc{I2,I9}/ sc{I9} = 2/2 = 100% ◦ R6 is Selected  R7 : I7  I9 [40%,100%] ◦ Confidence = sc{I7,I9}/ sc{I9} = 2/2 = 100% ◦ R7 is Selected  R8 : I1  I8 [40%, 66%] ◦ Confidence = sc{I1,I8}/ sc{I1} = 2/3 = 66.66% ◦ R8 is Rejected

 I2 ^ I5 ^ I7  I9 [40%,100%]  I2 ^ I5  I9 [40%,100%]  I2 ^ I7  I9 [40%,100%]  I5 ^ I7  I9 [40%,100%]  I5  I9 [40%,100%]  I7  I9 [40%,100%]  I2  I9 [40%,100%]  We reduce the confidence to 66% to include I8 on R.H.S  I1  I8 [40%,66%]

StudentGradeIncomeBuys MathLow Bread CSLow Milk MathLow Milk MathLow Bread CSMediumHighMilk First Tuple: Can be written as I2 ^ I5 ^ I7  I9 [Success] The above rule is correctly classified And hence the Math student with low grade and low income buys bread Second Tuple: Can be written as I1  I8 [Success] The above rule is not correctly classified Third Tuple: Can be written as I2 ^ I5 ^ I7  I8 [Error] The above rule is not classified

StudentGradeIncomeBuys MathLow Bread CSLow Milk MathLow Milk MathHighLowBread CSMediumHighBread FourthTuple: Can be written as I2 ^ I7  I9 [Success] The above rule is correctly classified And hence the Math student with low grade and low income buys bread Fifth Tuple: Can be written as I1  I9 [Success] The above rule is correctly classified Hence we have 80% predictive accuracy. And 20% Error rate