CS246: Mining Massive Datasets Jure Leskovec, Stanford University

Size: px
Start display at page:

Download "CS246: Mining Massive Datasets Jure Leskovec, Stanford University"

Transcription

1 CS246: Mining Massive Datasets Jure Leskovec, Stanford University

2 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 2 Supermarket shelf management Market-basket model: Goal: Identify items that are bought together by sufficiently many customers Approach: Process the sales data collected with barcode scanners to find dependencies among items A classic rule: If someone buys diaper and milk, then he/she is likely to buy beer Don t be surprised if you find six-packs next to diapers!

3 A large set of items e.g., things sold in a supermarket A large set of baskets Each basket is a small subset of items e.g., the things one customer buys on one day TID Items 1 Bread, Coke, Milk 2 Beer, Bread 3 Beer, Coke, Diaper, Milk 4 Beer, Bread, Diaper, Milk 5 Coke, Diaper, Milk A general many-to-many mapping (association) between two kinds of things But we ask about connections among items, not baskets 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 3

4 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 4 Given a set of baskets Want to discover association rules People who bought {x,y,z} tend to buy {v,w} Amazon! 2 step approach: 1) Find frequent itemsets 2) Generate association rules Input: TID Items 1 Bread, Coke, Milk 2 Beer, Bread 3 Beer, Coke, Diaper, Milk 4 Beer, Bread, Diaper, Milk 5 Coke, Diaper, Milk Output: Rules Discovered: {Milk} --> {Coke} {Diaper, Milk} --> {Beer}

5 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 5 Items = products; Baskets = sets of products someone bought in one trip to the store Real market baskets: Chain stores keep TBs of data about what customers buy together Tells how typical customers navigate stores, lets them position tempting items Suggests tie-in tricks, e.g., run sale on diapers and raise the price of beer Need the rule to occur frequently, or no $$ s Amazon s people who bought X also bought Y

6 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 6 Baskets = sentences; Items = documents containing those sentences Items that appear together too often could represent plagiarism Notice items do not have to be in baskets Baskets = patients; Items = drugs & side-effects Has been used to detect combinations of drugs that result in particular side-effects But requires extension: Absence of an item needs to be observed as well as presence

7 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 8 First: Define Frequent itemsets Association rules: Confidence, Support, Interestingness Then: Algorithms for finding frequent itemsets Finding frequent pairs A-Priori algorithm PCY algorithm + 2 refinements

8 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 9 Simplest question: Find sets of items that appear together frequently in baskets Support for itemset I: Number of baskets containing all items in I Often expressed as a fraction of the total number of baskets Given a support threshold s, then sets of items that appear in at least s baskets are called frequent itemsets TID Items 1 Bread, Coke, Milk 2 Beer, Bread 3 Beer, Coke, Diaper, Milk 4 Beer, Bread, Diaper, Milk 5 Coke, Diaper, Milk Support of {Beer, Bread} = 2

9 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 10 Items = {milk, coke, pepsi, beer, juice} Support threshold = 3 baskets B 1 = {m, c, b} B 2 = {m, p, j} B 3 = {m, b} B 4 = {c, j} B 5 = {m, p, b} B 6 = {m, c, b, j} B 7 = {c, b, j} B 8 = {b, c} Frequent itemsets: {m}, {c}, {b}, {j}, {m,b}, {b,c}, {c,j}.

10 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 11 Association Rules: If-then rules about the contents of baskets {i 1, i 2,,i k } j means: if a basket contains all of i 1,,i k then it is likely to contain j In practice there are many rules, want to find significant/interesting ones! Confidence of this association rule is the probability of j given I = {i 1,,i k } support( I j) conf( I j) = support( I)

11 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 12 Not all high-confidence rules are interesting The rule X milk may have high confidence for many itemsets X, because milk is just purchased very often (independent of X) and the confidence will be high Interest of an association rule I j: difference between its confidence and the fraction of baskets that contain j Interest( I j) = conf( I j) Pr[ Interesting rules are those with high positive or negative interest values (usually above 0.5) j]

12 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 13 B 1 = {m, c, b} B 2 = {m, p, j} B 3 = {m, b} B 4 = {c, j} B 5 = {m, p, b} B 6 = {m, c, b, j} B 7 = {c, b, j} B 8 = {b, c} Association rule: {m, b} c Confidence = 2/4 = 0.5 Interest = 0.5 5/8 = 1/8 Item c appears in 5/8 of the baskets Rule is not very interesting!

13 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 14 Problem: Find all association rules with support s and confidence c Note: Support of an association rule is the support of the set of items on the left side Hard part: Finding the frequent itemsets! If {i 1, i 2,, i k } j has high support and confidence, then both {i 1, i 2,, i k } and {i 1, i 2,,i k, j} will be frequent conf( I j) = support( I j) support( I)

14 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 15 Step 1: Find all frequent itemsets I (we will explain this next) Step 2: Rule generation For every subset A of I, generate a rule A I \ A Since I is frequent, A is also frequent Variant 1: Single pass to compute the rule confidence confidence(a,b C,D) = support(a,b,c,d) / support(a,b) Variant 2: Observation: If A,B,C D is below confidence, so is A,B C,D Can generate bigger rules from smaller ones! Output the rules above the confidence threshold

15 B 1 = {m, c, b} B 2 = {m, p, j} B 3 = {m, c, b, n} B 4 = {c, j} B 5 = {m, p, b} B 6 = {m, c, b, j} B 7 = {c, b, j} B 8 = {b, c} Support threshold s = 3, confidence c = ) Frequent itemsets: {b,m} {b,c} {c,m} {c,j} {m,c,b} 2) Generate rules: b m: c=4/6 b c: c=5/6 b,c m: c=3/5 m b: c=4/5 b,m c: c=3/4 b c,m: c=3/6 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 16

16 1/9/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 17 To reduce the number of rules we can post-process them and only output: Maximal frequent itemsets: No immediate superset is frequent or Gives more pruning Closed itemsets: No immediate superset has the same count (> 0) Stores not only frequent information, but exact counts

17 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 18 Count Maximal (s=3) Closed A 4 No No B 5 No Yes C 3 No No AB 4 Yes Yes AC 2 No No BC 3 Yes Yes ABC 2 No Yes Frequent, but superset BC also frequent. Frequent, and its only superset, ABC, not freq. Superset BC has same count. Its only superset, ABC, has smaller count.

18 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 19 We are releasing HW1 today It is due in 2 weeks The homework is long Requires proving theorems as well as coding Please start early Recitation session: Review of probability and proof techniques Tomorrow 4:15-5:30pm in Gates B03

19

20 Back to finding frequent itemsets Typically, data is kept in flat files rather than in a database system: Stored on disk Stored basket-by-basket Baskets are small but we have many baskets and many items Expand baskets into pairs, triples, etc. as you read baskets Use k nested loops to generate all sets of size k Note: We want to find frequent itemsets. To find them, we have to count them. To count them, we have to generate them. 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 21 Item Item Item Item Item Item Item Item Item Item Item Item Etc. Items are positive integers, and boundaries between baskets are 1.

21 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 22 The true cost of mining disk-resident data is usually the number of disk I/Os In practice, association-rule algorithms read the data in passes all baskets read in turn We measure the cost by the number of passes an algorithm makes over the data

22 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 23 For many frequent-itemset algorithms, main-memory is the critical resource As we read baskets, we need to count something, e.g., occurrences of pairs of items The number of different things we can count is limited by main memory Swapping counts in/out is a disaster (why?)

23 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 24 The hardest problem often turns out to be finding the frequent pairs of items {i 1, i 2 } Why? Freq. pairs are common, freq. triples are rare Why? Probability of being frequent drops exponentially with size; number of sets grows more slowly with size Let s first concentrate on pairs, then extend to larger sets The approach: We always need to generate all the itemsets But we would only like to count (keep track) of those itemsets that in the end turn out to be frequent

24 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 25 Naïve approach to finding frequent pairs Read file once, counting in main memory the occurrences of each pair: From each basket of n items, generate its n(n-1)/2 pairs by two nested loops Fails if (#items) 2 exceeds main memory Remember: #items can be 100K (Wal-Mart) or 10B (Web pages) Suppose 10 5 items, counts are 4-byte integers Number of pairs of items: 10 5 (10 5-1)/2 = 5*10 9 Therefore, 2*10 10 (20 gigabytes) of memory needed

25 Two approaches: Approach 1: Count all pairs using a matrix Approach 2: Keep a table of triples [i, j, c] = the count of the pair of items {i, j} is c. If integers and item ids are 4 bytes, we need approximately 12 bytes for pairs with count > 0 Plus some additional overhead for the hashtable Note: Approach 1 only requires 4 bytes per pair Approach 2 uses 12 bytes per pair (but only for pairs with count > 0) 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 26

26 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, bytes per pair 12 per occurring pair Triangular Matrix Triples

27 Approach 1: Triangular Matrix n = total number items Count pair of items {i, j} only if i<j Keep pair counts in lexicographic order: {1,2}, {1,3},, {1,n}, {2,3}, {2,4},,{2,n}, {3,4}, Pair {i, j} is at position (i 1)(n i/2) + j 1 Total number of pairs n(n 1)/2; total bytes= 2n 2 Triangular Matrix requires 4 bytes per pair Approach 2 uses 12 bytes per occurring pair (but only for pairs with count > 0) Beats Approach 1 if less than 1/3 of possible pairs actually occur 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 28

28 1/9/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 29 Approach 1: Triangular Matrix n = total number items Count pair of items {i, j} only if i<j Keep pair counts in lexicographic order: Problem is if we have too {1,2}, {1,3},, {1,n}, {2,3}, {2,4},,{2,n}, {3,4}, many items so the pairs Pair {i, j} is at position (i 1)(n i/2) + j 1 Total number do not of fit pairs into n(n 1)/2; memory. total bytes= 2n 2 Triangular Matrix requires 4 bytes per pair Can we do better? Approach 2 uses 12 bytes per pair (but only for pairs with count > 0) Beats Approach 1 if less than 1/3 of possible pairs actually occur

29

30 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 31 A two-pass approach called A-Priori limits the need for main memory Key idea: monotonicity If a set of items I appears at least s times, so does every subset J of I Contrapositive for pairs: If item i does not appear in s baskets, then no pair including i can appear in s baskets So, how does A-Priori find freq. pairs?

31 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 32 Pass 1: Read baskets and count in main memory the occurrences of each individual item Requires only memory proportional to #items Items that appear ss times are the frequent items Pass 2: Read baskets again and count in main memory only those pairs where both elements are frequent (from Pass 1) Requires memory proportional to square of frequent items only (for counts) Plus a list of the frequent items (so you know what must be counted)

32 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 33 Item counts Frequent items Main memory Counts of pairs of frequent items (candidate pairs) Pass 1 Pass 2

33 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 34 You can use the triangular matrix method with n = number of frequent items May save space compared with storing triples Trick: re-number frequent items 1,2, and keep a table relating new numbers to original item numbers Main memory Item counts Frequent items Old item #s Counts of pairs of Counts frequent of pairs items of frequent items Pass 1 Pass 2

34 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 35 For each k, we construct two sets of k-tuples (sets of size k): C k = candidate k-tuples = those that might be frequent sets (support > s) based on information from the pass for k 1 L k = the set of truly frequent k-tuples All items Count the items All pairs of items from L 1 Count the pairs To be explained C 1 Filter L 1 Construct C 2 Filter L 2 Construct C 3

35 ** Note here we generate new candidates by generating C k from L k-1 and L 1. But that one can be more careful with candidate generation. For example, in C 3 we know {b,m,j} cannot be frequent since {m,j} is not frequent 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 36 Hypothetical steps of the A-Priori algorithm C 1 = { {b} {c} {j} {m} {n} {p} } Count the support of itemsets in C 1 Prune non-frequent: L 1 = { b, c, j, m } Generate C 2 = { {b,c} {b,j} {b,m} {c,j} {c,m} {j,m} } Count the support of itemsets in C 2 Prune non-frequent: L 2 = { {b,m} {b,c} {c,m} {c,j} } Generate C 3 = { {b,c,m} {b,c,j} {b,m,j} {c,m,j} } Count the support of itemsets in C 3 Prune non-frequent: L 3 = { {b,c,m} } **

36 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 37 One pass for each k (itemset size) Needs room in main memory to count each candidate k tuple For typical market-basket data and reasonable support (e.g., 1%), k = 2 requires the most memory Many possible extensions: Association rules with intervals: For example: Men over 65 have 2 cars Association rules when items are in a taxonomy Bread, Butter FruitJam BakedGoods, MilkProduct PreservedGoods Lower the support s as itemset gets bigger

37

38 Observation: In pass 1 of A-Priori, most memory is idle We store only individual item counts Can we use the idle memory to reduce memory required in pass 2? Pass 1 of PCY: In addition to item counts, maintain a hash table with as many buckets as fit in memory Keep a count for each bucket into which pairs of items are hashed For each bucket just keep the count, not the actual pairs that hash to the bucket! 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 39

39 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 40 New in PCY FOR (each basket) : FOR (each item in the basket) : add 1 to item s count; FOR (each pair of items) : hash the pair to a bucket; add 1 to the count for that bucket; Few things to note: Pairs of items need to be generated from the input file; they are not present in the file We are not just interested in the presence of a pair, but we need to see whether it is present at least s (support) times

40 1/9/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 41 Observation: If a bucket contains a frequent pair, then the bucket is surely frequent However, even without any frequent pair, a bucket can still be frequent So, we cannot use the hash to eliminate any member (pair) of a frequent bucket But, for a bucket with total count less than s, none of its pairs can be frequent Pairs that hash to this bucket can be eliminated as candidates (even if the pair consists of 2 frequent items) Pass 2: Only count pairs that hash to frequent buckets

41 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 42 Replace the buckets by a bit-vector: 1 means the bucket count exceeded the support s (call it a frequent bucket); 0 means it did not 4-byte integer counts are replaced by bits, so the bit-vector requires 1/32 of memory Also, decide which items are frequent and list them for the second pass

42 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 43 Count all pairs {i, j} that meet the conditions for being a candidate pair: 1. Both i and j are frequent items 2. The pair {i, j} hashes to a bucket whose bit in the bit vector is 1 (i.e., a frequent bucket) Both conditions are necessary for the pair to have a chance of being frequent

43 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 44 Item counts Frequent items Main memory Hash Hash table table for pairs Bitmap Counts of candidate pairs Pass 1 Pass 2

44 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 45 Buckets require a few bytes each: Note: we do not have to count past s #buckets is O(main-memory size) On second pass, a table of (item, item, count) triples is essential (we cannot use triangular matrix approach, why?) Thus, hash table must eliminate approx. 2/3 of the candidate pairs for PCY to beat A-Priori

45 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 46 Limit the number of candidates to be counted Remember: Memory is the bottleneck Still need to generate all the itemsets but we only want to count/keep track of the ones that are frequent Key idea: After Pass 1 of PCY, rehash only those pairs that qualify for Pass 2 of PCY i and j are frequent, and {i, j} hashes to a frequent bucket from Pass 1 On middle pass, fewer pairs contribute to buckets, so fewer false positives Requires 3 passes over the data

46 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 47 Item counts Freq. items Freq. items Main memory First hash First table hash table Bitmap 1 Bitmap 1 Second hash table Bitmap 2 Counts of of candidate pairs pairs Pass 1 Pass 2 Pass 3 Count items Hash pairs {i,j} Hash pairs {i,j} into Hash2 iff: i,j are frequent, {i,j} hashes to freq. bucket in B1 Count pairs {i,j} iff: i,j are frequent, {i,j} hashes to freq. bucket in B1 {i,j} hashes to freq. bucket in B2

47 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 48 Count only those pairs {i, j} that satisfy these candidate pair conditions: 1. Both i and j are frequent items 2. Using the first hash function, the pair hashes to a bucket whose bit in the first bit-vector is 1 3. Using the second hash function, the pair hashes to a bucket whose bit in the second bit-vector is 1

48 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, The two hash functions have to be independent 2. We need to check both hashes on the third pass If not, we would end up counting pairs of frequent items that hashed first to an infrequent bucket but happened to hash second to a frequent bucket

49 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 50 Key idea: Use several independent hash tables on the first pass Risk: Halving the number of buckets doubles the average count We have to be sure most buckets will still not reach count s If so, we can get a benefit like multistage, but in only 2 passes

50 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 51 Item counts Freq. items Main memory First First hash hash table table Second hash Second table hash table Bitmap 1 Bitmap 2 Counts Counts of of candidate candidate pairs pairs Pass 1 Pass 2

51 1/8/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, 52 Either multistage or multihash can use more than two hash functions In multistage, there is a point of diminishing returns, since the bit-vectors eventually consume all of main memory For multihash, the bit-vectors occupy exactly what one PCY bitmap does, but too many hash functions makes all counts > s

High dim. data. Graph data. Infinite data. Machine learning. Apps. Locality sensitive hashing. Filtering data streams.

High dim. data. Graph data. Infinite data. Machine learning. Apps. Locality sensitive hashing. Filtering data streams. http://www.mmds.org High dim. data Graph data Infinite data Machine learning Apps Locality sensitive hashing PageRank, SimRank Filtering data streams SVM Recommen der systems Clustering Network Analysis

More information

We will be releasing HW1 today It is due in 2 weeks (1/25 at 23:59pm) The homework is long

We will be releasing HW1 today It is due in 2 weeks (1/25 at 23:59pm) The homework is long 1/21/18 Jure Leskovec, Stanford CS246: Mining Massive Datasets, http://cs246.stanford.edu 1 We will be releasing HW1 today It is due in 2 weeks (1/25 at 23:59pm) The homework is long Requires proving theorems

More information

Big Data Analytics CSCI 4030

Big Data Analytics CSCI 4030 Supermarket shelf management Market-basket model: Goal: Identify items that are bought together by sufficiently many customers Approach: Process the sales data collected with barcode scanners to find dependencies

More information

Introduction to Data Mining

Introduction to Data Mining Introduction to Data Mining Lecture #13: Frequent Itemsets-2 Seoul National University 1 In This Lecture Efficient Algorithms for Finding Frequent Itemsets A-Priori PCY 2-Pass algorithm: Random Sampling,

More information

Association Rules. CS345a: Data Mining Jure Leskovec and Anand Rajaraman Stanford University. Slides adapted from lectures by Jeff Ullman

Association Rules. CS345a: Data Mining Jure Leskovec and Anand Rajaraman Stanford University. Slides adapted from lectures by Jeff Ullman Association Rules CS345a: Data Mining Jure Leskovec and Anand Rajaraman Stanford University Slides adapted from lectures by Jeff Ullman A large set of items e.g., things sold in a supermarket A large set

More information

Jeffrey D. Ullman Stanford University

Jeffrey D. Ullman Stanford University Jeffrey D. Ullman Stanford University A large set of items, e.g., things sold in a supermarket. A large set of baskets, each of which is a small set of the items, e.g., the things one customer buys on

More information

Frequent Item Sets & Association Rules

Frequent Item Sets & Association Rules Frequent Item Sets & Association Rules V. CHRISTOPHIDES vassilis.christophides@inria.fr https://who.rocq.inria.fr/vassilis.christophides/big/ Ecole CentraleSupélec 1 Some History Bar code technology allowed

More information

Data Mining Techniques

Data Mining Techniques Data Mining Techniques CS 6220 - Section 3 - Fall 2016 Lecture 16: Association Rules Jan-Willem van de Meent (credit: Yijun Zhao, Yi Wang, Tan et al., Leskovec et al.) Apriori: Summary All items Count

More information

Improvements to A-Priori. Bloom Filters Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms Compacting Results

Improvements to A-Priori. Bloom Filters Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms Compacting Results Improvements to A-Priori Bloom Filters Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms Compacting Results 1 Aside: Hash-Based Filtering Simple problem: I have a set S of one billion

More information

Hash-Based Improvements to A-Priori. Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms

Hash-Based Improvements to A-Priori. Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms Hash-Based Improvements to A-Priori Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms 1 PCY Algorithm 1 Hash-based improvement to A-Priori. During Pass 1 of A-priori, most memory is idle.

More information

Roadmap. PCY Algorithm

Roadmap. PCY Algorithm 1 Roadmap Frequent Patterns A-Priori Algorithm Improvements to A-Priori Park-Chen-Yu Algorithm Multistage Algorithm Approximate Algorithms Compacting Results Data Mining for Knowledge Management 50 PCY

More information

Association Rules. Juliana Freire. Modified from Jeff Ullman, Jure Lescovek, Bing Liu, Jiawei Han

Association Rules. Juliana Freire. Modified from Jeff Ullman, Jure Lescovek, Bing Liu, Jiawei Han Association Rules Juliana Freire Modified from Jeff Ullman, Jure Lescovek, Bing Liu, Jiawei Han Association Rules: Some History Bar code technology allowed retailers to collect massive volumes of sales

More information

signicantly higher than it would be if items were placed at random into baskets. For example, we

signicantly higher than it would be if items were placed at random into baskets. For example, we 2 Association Rules and Frequent Itemsets The market-basket problem assumes we have some large number of items, e.g., \bread," \milk." Customers ll their market baskets with some subset of the items, and

More information

Apriori Algorithm. 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke

Apriori Algorithm. 1 Bread, Milk 2 Bread, Diaper, Beer, Eggs 3 Milk, Diaper, Beer, Coke 4 Bread, Milk, Diaper, Beer 5 Bread, Milk, Diaper, Coke Apriori Algorithm For a given set of transactions, the main aim of Association Rule Mining is to find rules that will predict the occurrence of an item based on the occurrences of the other items in the

More information

Market baskets Frequent itemsets FP growth. Data mining. Frequent itemset Association&decision rule mining. University of Szeged.

Market baskets Frequent itemsets FP growth. Data mining. Frequent itemset Association&decision rule mining. University of Szeged. Frequent itemset Association&decision rule mining University of Szeged What frequent itemsets could be used for? Features/observations frequently co-occurring in some database can gain us useful insights

More information

Lecture Topic Projects 1 Intro, schedule, and logistics 2 Data Science components and tasks 3 Data types Project #1 out 4 Introduction to R,

Lecture Topic Projects 1 Intro, schedule, and logistics 2 Data Science components and tasks 3 Data types Project #1 out 4 Introduction to R, Lecture Topic Projects 1 Intro, schedule, and logistics 2 Data Science components and tasks 3 Data types Project #1 out 4 Introduction to R, statistics foundations 5 Introduction to D3, visual analytics

More information

Frequent Itemsets. Chapter 6

Frequent Itemsets. Chapter 6 Chapter 6 Frequent Itemsets We turn in this chapter to one of the major families of techniques for characterizing data: the discovery of frequent itemsets. This problem is often viewed as the discovery

More information

Thanks to the advances of data processing technologies, a lot of data can be collected and stored in databases efficiently New challenges: with a

Thanks to the advances of data processing technologies, a lot of data can be collected and stored in databases efficiently New challenges: with a Data Mining and Information Retrieval Introduction to Data Mining Why Data Mining? Thanks to the advances of data processing technologies, a lot of data can be collected and stored in databases efficiently

More information

Frequent Pattern Mining

Frequent Pattern Mining Frequent Pattern Mining How Many Words Is a Picture Worth? E. Aiden and J-B Michel: Uncharted. Reverhead Books, 2013 Jian Pei: CMPT 741/459 Frequent Pattern Mining (1) 2 Burnt or Burned? E. Aiden and J-B

More information

Frequent Pattern Mining. Based on: Introduction to Data Mining by Tan, Steinbach, Kumar

Frequent Pattern Mining. Based on: Introduction to Data Mining by Tan, Steinbach, Kumar Frequent Pattern Mining Based on: Introduction to Data Mining by Tan, Steinbach, Kumar Item sets A New Type of Data Some notation: All possible items: Database: T is a bag of transactions Transaction transaction

More information

Chapter 7: Frequent Itemsets and Association Rules

Chapter 7: Frequent Itemsets and Association Rules Chapter 7: Frequent Itemsets and Association Rules Information Retrieval & Data Mining Universität des Saarlandes, Saarbrücken Winter Semester 2011/12 VII.1-1 Chapter VII: Frequent Itemsets and Association

More information

Chapter 4: Association analysis:

Chapter 4: Association analysis: Chapter 4: Association analysis: 4.1 Introduction: Many business enterprises accumulate large quantities of data from their day-to-day operations, huge amounts of customer purchase data are collected daily

More information

Association Pattern Mining. Lijun Zhang

Association Pattern Mining. Lijun Zhang Association Pattern Mining Lijun Zhang zlj@nju.edu.cn http://cs.nju.edu.cn/zlj Outline Introduction The Frequent Pattern Mining Model Association Rule Generation Framework Frequent Itemset Mining Algorithms

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu [Kumar et al. 99] 2/13/2013 Jure Leskovec, Stanford CS246: Mining Massive Datasets, http://cs246.stanford.edu

More information

Chapter 6: Basic Concepts: Association Rules. Basic Concepts: Frequent Patterns. (absolute) support, or, support. (relative) support, s, is the

Chapter 6: Basic Concepts: Association Rules. Basic Concepts: Frequent Patterns. (absolute) support, or, support. (relative) support, s, is the Chapter 6: What Is Frequent ent Pattern Analysis? Frequent pattern: a pattern (a set of items, subsequences, substructures, etc) that occurs frequently in a data set frequent itemsets and association rule

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu 2/24/2014 Jure Leskovec, Stanford CS246: Mining Massive Datasets, http://cs246.stanford.edu 2 High dim. data

More information

Chapter 4: Mining Frequent Patterns, Associations and Correlations

Chapter 4: Mining Frequent Patterns, Associations and Correlations Chapter 4: Mining Frequent Patterns, Associations and Correlations 4.1 Basic Concepts 4.2 Frequent Itemset Mining Methods 4.3 Which Patterns Are Interesting? Pattern Evaluation Methods 4.4 Summary Frequent

More information

Association Rules Apriori Algorithm

Association Rules Apriori Algorithm Association Rules Apriori Algorithm Market basket analysis n Market basket analysis might tell a retailer that customers often purchase shampoo and conditioner n Putting both items on promotion at the

More information

Association Rules Apriori Algorithm

Association Rules Apriori Algorithm Association Rules Apriori Algorithm Market basket analysis n Market basket analysis might tell a retailer that customers often purchase shampoo and conditioner n Putting both items on promotion at the

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University.

CS246: Mining Massive Datasets Jure Leskovec, Stanford University. CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu 2 Instructor: Jure Leskovec TAs: Aditya Parameswaran Bahman Bahmani Peyman Kazemian 3 Course website: http://cs246.stanford.edu

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu 3/6/2012 Jure Leskovec, Stanford CS246: Mining Massive Datasets, http://cs246.stanford.edu 2 In many data mining

More information

Chapter 7: Frequent Itemsets and Association Rules

Chapter 7: Frequent Itemsets and Association Rules Chapter 7: Frequent Itemsets and Association Rules Information Retrieval & Data Mining Universität des Saarlandes, Saarbrücken Winter Semester 2013/14 VII.1&2 1 Motivational Example Assume you run an on-line

More information

ANU MLSS 2010: Data Mining. Part 2: Association rule mining

ANU MLSS 2010: Data Mining. Part 2: Association rule mining ANU MLSS 2010: Data Mining Part 2: Association rule mining Lecture outline What is association mining? Market basket analysis and association rule examples Basic concepts and formalism Basic rule measurements

More information

Decision Support Systems

Decision Support Systems Decision Support Systems 2011/2012 Week 6. Lecture 11 HELLO DATA MINING! THE PLAN: MINING FREQUENT PATTERNS (Classes 11-13) Homework 5 CLUSTER ANALYSIS (Classes 14-16) Homework 6 SUPERVISED LEARNING (Classes

More information

Association Rule Mining. Entscheidungsunterstützungssysteme

Association Rule Mining. Entscheidungsunterstützungssysteme Association Rule Mining Entscheidungsunterstützungssysteme Frequent Pattern Analysis Frequent pattern: a pattern (a set of items, subsequences, substructures, etc.) that occurs frequently in a data set

More information

BCB 713 Module Spring 2011

BCB 713 Module Spring 2011 Association Rule Mining COMP 790-90 Seminar BCB 713 Module Spring 2011 The UNIVERSITY of NORTH CAROLINA at CHAPEL HILL Outline What is association rule mining? Methods for association rule mining Extensions

More information

Outline. Project Update Data Mining: Answers without Queries. Principles of Information and Database Management 198:336 Week 12 Apr 25 Matthew Stone

Outline. Project Update Data Mining: Answers without Queries. Principles of Information and Database Management 198:336 Week 12 Apr 25 Matthew Stone Outline Principles of Information and Database Management 198:336 Week 12 Apr 25 Matthew Stone Project Update Data Mining: Answers without Queries Patterns and statistics Finding frequent item sets Classification

More information

Nesnelerin İnternetinde Veri Analizi

Nesnelerin İnternetinde Veri Analizi Bölüm 4. Frequent Patterns in Data Streams w3.gazi.edu.tr/~suatozdemir What Is Pattern Discovery? What are patterns? Patterns: A set of items, subsequences, or substructures that occur frequently together

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu 2/25/2013 Jure Leskovec, Stanford CS246: Mining Massive Datasets, http://cs246.stanford.edu 3 In many data mining

More information

Mining Association Rules in Large Databases

Mining Association Rules in Large Databases Mining Association Rules in Large Databases Association rules Given a set of transactions D, find rules that will predict the occurrence of an item (or a set of items) based on the occurrences of other

More information

2. Discovery of Association Rules

2. Discovery of Association Rules 2. Discovery of Association Rules Part I Motivation: market basket data Basic notions: association rule, frequency and confidence Problem of association rule mining (Sub)problem of frequent set mining

More information

Pattern Mining. Knowledge Discovery and Data Mining 1. Roman Kern KTI, TU Graz. Roman Kern (KTI, TU Graz) Pattern Mining / 42

Pattern Mining. Knowledge Discovery and Data Mining 1. Roman Kern KTI, TU Graz. Roman Kern (KTI, TU Graz) Pattern Mining / 42 Pattern Mining Knowledge Discovery and Data Mining 1 Roman Kern KTI, TU Graz 2016-01-14 Roman Kern (KTI, TU Graz) Pattern Mining 2016-01-14 1 / 42 Outline 1 Introduction 2 Apriori Algorithm 3 FP-Growth

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS46: Mining Massive Datasets Jure Leskovec, Stanford University http://cs46.stanford.edu /7/ Jure Leskovec, Stanford C46: Mining Massive Datasets Many real-world problems Web Search and Text Mining Billions

More information

Data Structures. Notes for Lecture 14 Techniques of Data Mining By Samaher Hussein Ali Association Rules: Basic Concepts and Application

Data Structures. Notes for Lecture 14 Techniques of Data Mining By Samaher Hussein Ali Association Rules: Basic Concepts and Application Data Structures Notes for Lecture 14 Techniques of Data Mining By Samaher Hussein Ali 2009-2010 Association Rules: Basic Concepts and Application 1. Association rules: Given a set of transactions, find

More information

Association Rule Discovery

Association Rule Discovery Association Rule Discovery Association Rules describe frequent co-occurences in sets an item set is a subset A of all possible items I Example Problems: Which products are frequently bought together by

More information

Data Mining Clustering

Data Mining Clustering Data Mining Clustering Jingpeng Li 1 of 34 Supervised Learning F(x): true function (usually not known) D: training sample (x, F(x)) 57,M,195,0,125,95,39,25,0,1,0,0,0,1,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0 0

More information

Association Rule Discovery

Association Rule Discovery Association Rule Discovery Association Rules describe frequent co-occurences in sets an itemset is a subset A of all possible items I Example Problems: Which products are frequently bought together by

More information

Data Warehousing and Data Mining. Announcements (December 1) Data integration. CPS 116 Introduction to Database Systems

Data Warehousing and Data Mining. Announcements (December 1) Data integration. CPS 116 Introduction to Database Systems Data Warehousing and Data Mining CPS 116 Introduction to Database Systems Announcements (December 1) 2 Homework #4 due today Sample solution available Thursday Course project demo period has begun! Check

More information

Roadmap DB Sys. Design & Impl. Association rules - outline. Citations. Association rules - idea. Association rules - idea.

Roadmap DB Sys. Design & Impl. Association rules - outline. Citations. Association rules - idea. Association rules - idea. 15-721 DB Sys. Design & Impl. Association Rules Christos Faloutsos www.cs.cmu.edu/~christos Roadmap 1) Roots: System R and Ingres... 7) Data Analysis - data mining datacubes and OLAP classifiers association

More information

CHAPTER 5 WEIGHTED SUPPORT ASSOCIATION RULE MINING USING CLOSED ITEMSET LATTICES IN PARALLEL

CHAPTER 5 WEIGHTED SUPPORT ASSOCIATION RULE MINING USING CLOSED ITEMSET LATTICES IN PARALLEL 68 CHAPTER 5 WEIGHTED SUPPORT ASSOCIATION RULE MINING USING CLOSED ITEMSET LATTICES IN PARALLEL 5.1 INTRODUCTION During recent years, one of the vibrant research topics is Association rule discovery. This

More information

CS570 Introduction to Data Mining

CS570 Introduction to Data Mining CS570 Introduction to Data Mining Frequent Pattern Mining and Association Analysis Cengiz Gunay Partial slide credits: Li Xiong, Jiawei Han and Micheline Kamber George Kollios 1 Mining Frequent Patterns,

More information

2 CONTENTS

2 CONTENTS Contents 5 Mining Frequent Patterns, Associations, and Correlations 3 5.1 Basic Concepts and a Road Map..................................... 3 5.1.1 Market Basket Analysis: A Motivating Example........................

More information

Association Rules. Berlin Chen References:

Association Rules. Berlin Chen References: Association Rules Berlin Chen 2005 References: 1. Data Mining: Concepts, Models, Methods and Algorithms, Chapter 8 2. Data Mining: Concepts and Techniques, Chapter 6 Association Rules: Basic Concepts A

More information

Data Mining Algorithms

Data Mining Algorithms Algorithms Fall 2017 Big Data Tools and Techniques Basic Data Manipulation and Analysis Performing well-defined computations or asking well-defined questions ( queries ) Looking for patterns in data Machine

More information

Supervised and Unsupervised Learning (II)

Supervised and Unsupervised Learning (II) Supervised and Unsupervised Learning (II) Yong Zheng Center for Web Intelligence DePaul University, Chicago IPD 346 - Data Science for Business Program DePaul University, Chicago, USA Intro: Supervised

More information

CS 6093 Lecture 7 Spring 2011 Basic Data Mining. Cong Yu 03/21/2011

CS 6093 Lecture 7 Spring 2011 Basic Data Mining. Cong Yu 03/21/2011 CS 6093 Lecture 7 Spring 2011 Basic Data Mining Cong Yu 03/21/2011 Announcements No regular office hour next Monday (March 28 th ) Office hour next week will be on Tuesday through Thursday by appointment

More information

Machine Learning: Symbolische Ansätze

Machine Learning: Symbolische Ansätze Machine Learning: Symbolische Ansätze Unsupervised Learning Clustering Association Rules V2.0 WS 10/11 J. Fürnkranz Different Learning Scenarios Supervised Learning A teacher provides the value for the

More information

Mining Association Rules in Large Databases

Mining Association Rules in Large Databases Mining Association Rules in Large Databases Vladimir Estivill-Castro School of Computing and Information Technology With contributions fromj. Han 1 Association Rule Mining A typical example is market basket

More information

Association mining rules

Association mining rules Association mining rules Given a data set, find the items in data that are associated with each other. Association is measured as frequency of occurrence in the same context. Purchasing one product when

More information

Frequent Pattern Mining

Frequent Pattern Mining Frequent Pattern Mining...3 Frequent Pattern Mining Frequent Patterns The Apriori Algorithm The FP-growth Algorithm Sequential Pattern Mining Summary 44 / 193 Netflix Prize Frequent Pattern Mining Frequent

More information

Association Rules. A. Bellaachia Page: 1

Association Rules. A. Bellaachia Page: 1 Association Rules 1. Objectives... 2 2. Definitions... 2 3. Type of Association Rules... 7 4. Frequent Itemset generation... 9 5. Apriori Algorithm: Mining Single-Dimension Boolean AR 13 5.1. Join Step:...

More information

13 Frequent Itemsets and Bloom Filters

13 Frequent Itemsets and Bloom Filters 13 Frequent Itemsets and Bloom Filters A classic problem in data mining is association rule mining. The basic problem is posed as follows: We have a large set of m tuples {T 1, T,..., T m }, each tuple

More information

Chapter 4 Data Mining A Short Introduction

Chapter 4 Data Mining A Short Introduction Chapter 4 Data Mining A Short Introduction Data Mining - 1 1 Today's Question 1. Data Mining Overview 2. Association Rule Mining 3. Clustering 4. Classification Data Mining - 2 2 1. Data Mining Overview

More information

What Is Data Mining? CMPT 354: Database I -- Data Mining 2

What Is Data Mining? CMPT 354: Database I -- Data Mining 2 Data Mining What Is Data Mining? Mining data mining knowledge Data mining is the non-trivial process of identifying valid, novel, potentially useful, and ultimately understandable patterns in data CMPT

More information

Association Analysis: Basic Concepts and Algorithms

Association Analysis: Basic Concepts and Algorithms 5 Association Analysis: Basic Concepts and Algorithms Many business enterprises accumulate large quantities of data from their dayto-day operations. For example, huge amounts of customer purchase data

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu /2/8 Jure Leskovec, Stanford CS246: Mining Massive Datasets 2 Task: Given a large number (N in the millions or

More information

Production rule is an important element in the expert system. By interview with

Production rule is an important element in the expert system. By interview with 2 Literature review Production rule is an important element in the expert system By interview with the domain experts, we can induce the rules and store them in a truth maintenance system An assumption-based

More information

Association Rules Outline

Association Rules Outline Association Rules Outline Goal: Provide an overview of basic Association Rule mining techniques Association Rules Problem Overview Large/Frequent itemsets Association Rules Algorithms Apriori Sampling

More information

Association rules. Marco Saerens (UCL), with Christine Decaestecker (ULB)

Association rules. Marco Saerens (UCL), with Christine Decaestecker (ULB) Association rules Marco Saerens (UCL), with Christine Decaestecker (ULB) 1 Slides references Many slides and figures have been adapted from the slides associated to the following books: Alpaydin (2004),

More information

Association Rule Mining (ARM) Komate AMPHAWAN

Association Rule Mining (ARM) Komate AMPHAWAN Association Rule Mining (ARM) Komate AMPHAWAN 1 J-O-K-E???? 2 What can be inferred? I purchase diapers I purchase a new car I purchase OTC cough (ไอ) medicine I purchase a prescription medication (ใบส

More information

Warehousing. Data Mining

Warehousing. Data Mining On Line Application Processing Warehousing Data Cubes Data Mining 1 Overview Traditional database systems are tuned to many, small, simple queries. Some new applications use fewer, more timeconsuming,

More information

CPSC 340: Machine Learning and Data Mining. Finding Similar Items Fall 2018

CPSC 340: Machine Learning and Data Mining. Finding Similar Items Fall 2018 CPSC 340: Machine Learning and Data Mining Finding Similar Items Fall 2018 Assignment 2 is due tonight. Admin Make sure that answers are in the PDF where requested. Otherwise the TA can give 0 for the

More information

Introduction to Data Mining

Introduction to Data Mining Introduction to Data Mining Lecture #6: Mining Data Streams Seoul National University 1 Outline Overview Sampling From Data Stream Queries Over Sliding Window 2 Data Streams In many data mining situations,

More information

CompSci 516 Data Intensive Computing Systems

CompSci 516 Data Intensive Computing Systems CompSci 516 Data Intensive Computing Systems Lecture 20 Data Mining and Mining Association Rules Instructor: Sudeepa Roy CompSci 516: Data Intensive Computing Systems 1 Reading Material Optional Reading:

More information

Lecture notes for April 6, 2005

Lecture notes for April 6, 2005 Lecture notes for April 6, 2005 Mining Association Rules The goal of association rule finding is to extract correlation relationships in the large datasets of items. Many businesses are interested in extracting

More information

Chapter 6: Association Rules

Chapter 6: Association Rules Chapter 6: Association Rules Association rule mining Proposed by Agrawal et al in 1993. It is an important data mining model. Transaction data (no time-dependent) Assume all data are categorical. No good

More information

Data Mining: Concepts and Techniques. Chapter 5. SS Chung. April 5, 2013 Data Mining: Concepts and Techniques 1

Data Mining: Concepts and Techniques. Chapter 5. SS Chung. April 5, 2013 Data Mining: Concepts and Techniques 1 Data Mining: Concepts and Techniques Chapter 5 SS Chung April 5, 2013 Data Mining: Concepts and Techniques 1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road

More information

PFPM: Discovering Periodic Frequent Patterns with Novel Periodicity Measures

PFPM: Discovering Periodic Frequent Patterns with Novel Periodicity Measures PFPM: Discovering Periodic Frequent Patterns with Novel Periodicity Measures 1 Introduction Frequent itemset mining is a popular data mining task. It consists of discovering sets of items (itemsets) frequently

More information

Data Warehousing & Mining. Data integration. OLTP versus OLAP. CPS 116 Introduction to Database Systems

Data Warehousing & Mining. Data integration. OLTP versus OLAP. CPS 116 Introduction to Database Systems Data Warehousing & Mining CPS 116 Introduction to Database Systems Data integration 2 Data resides in many distributed, heterogeneous OLTP (On-Line Transaction Processing) sources Sales, inventory, customer,

More information

Association rule mining

Association rule mining Association rule mining Association rule induction: Originally designed for market basket analysis. Aims at finding patterns in the shopping behavior of customers of supermarkets, mail-order companies,

More information

Efficient Frequent Itemset Mining Mechanism Using Support Count

Efficient Frequent Itemset Mining Mechanism Using Support Count Efficient Frequent Itemset Mining Mechanism Using Support Count 1 Neelesh Kumar Kori, 2 Ramratan Ahirwal, 3 Dr. Yogendra Kumar Jain 1 Department of C.S.E, Samrat Ashok Technological Institute, Vidisha,

More information

Homework 3: Map-Reduce, Frequent Itemsets, LSH, Streams (due March 16 th, 9:30am in class hard-copy please)

Homework 3: Map-Reduce, Frequent Itemsets, LSH, Streams (due March 16 th, 9:30am in class hard-copy please) Virginia Tech. Computer Science CS 5614 (Big) Data Management Systems Spring 2017, Prakash Homework 3: Map-Reduce, Frequent Itemsets, LSH, Streams (due March 16 th, 9:30am in class hard-copy please) Reminders:

More information

Data Mining: Concepts and Techniques. (3 rd ed.) Chapter 6

Data 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-2017 Han, Kamber & Pei. All

More information

Mining Frequent Patterns without Candidate Generation

Mining Frequent Patterns without Candidate Generation Mining Frequent Patterns without Candidate Generation Outline of the Presentation Outline Frequent Pattern Mining: Problem statement and an example Review of Apriori like Approaches FP Growth: Overview

More information

CS246: Mining Massive Data Sets Winter Final

CS246: Mining Massive Data Sets Winter Final CS246: Mining Massive Data Sets Winter 2013 Final These questions require thought, but do not require long answers. Be as concise as possible. You have three hours to complete this final. The exam has

More information

Lecture 2 Wednesday, August 22, 2007

Lecture 2 Wednesday, August 22, 2007 CS 6604: Data Mining Fall 2007 Lecture 2 Wednesday, August 22, 2007 Lecture: Naren Ramakrishnan Scribe: Clifford Owens 1 Searching for Sets The canonical data mining problem is to search for frequent subsets

More information

Association Rule Learning

Association Rule Learning Association Rule Learning 16s1: COMP9417 Machine Learning and Data Mining School of Computer Science and Engineering, University of New South Wales March 15, 2016 COMP9417 ML & DM (CSE, UNSW) Association

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University.

CS246: Mining Massive Datasets Jure Leskovec, Stanford University. CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu 3/9/20 Jure Leskovec, Stanford C246: Mining Massive Datasets 2 Overlaps with machine learning, statistics, artificial

More information

Data Mining Course Overview

Data Mining Course Overview Data Mining Course Overview 1 Data Mining Overview Understanding Data Classification: Decision Trees and Bayesian classifiers, ANN, SVM Association Rules Mining: APriori, FP-growth Clustering: Hierarchical

More information

OPTIMISING ASSOCIATION RULE ALGORITHMS USING ITEMSET ORDERING

OPTIMISING ASSOCIATION RULE ALGORITHMS USING ITEMSET ORDERING OPTIMISING ASSOCIATION RULE ALGORITHMS USING ITEMSET ORDERING ES200 Peterhouse College, Cambridge Frans Coenen, Paul Leng and Graham Goulbourne The Department of Computer Science The University of Liverpool

More information

On-Line Application Processing

On-Line Application Processing On-Line Application Processing WAREHOUSING DATA CUBES DATA MINING 1 Overview Traditional database systems are tuned to many, small, simple queries. Some new applications use fewer, more time-consuming,

More information

Model for Load Balancing on Processors in Parallel Mining of Frequent Itemsets

Model for Load Balancing on Processors in Parallel Mining of Frequent Itemsets American Journal of Applied Sciences 2 (5): 926-931, 2005 ISSN 1546-9239 Science Publications, 2005 Model for Load Balancing on Processors in Parallel Mining of Frequent Itemsets 1 Ravindra Patel, 2 S.S.

More information

Shingling Minhashing Locality-Sensitive Hashing. Jeffrey D. Ullman Stanford University

Shingling Minhashing Locality-Sensitive Hashing. Jeffrey D. Ullman Stanford University Shingling Minhashing Locality-Sensitive Hashing Jeffrey D. Ullman Stanford University 2 Wednesday, January 13 Computer Forum Career Fair 11am - 4pm Lawn between the Gates and Packard Buildings Policy for

More information

Knowledge Discovery and Data Mining

Knowledge Discovery and Data Mining Knowledge Discovery and Data Mining Unit # 1 1 Acknowledgement Several Slides in this presentation are taken from course slides provided by Han and Kimber (Data Mining Concepts and Techniques) and Tan,

More information

CSE547: Machine Learning for Big Data Spring Problem Set 1. Please read the homework submission policies.

CSE547: Machine Learning for Big Data Spring Problem Set 1. Please read the homework submission policies. CSE547: Machine Learning for Big Data Spring 2019 Problem Set 1 Please read the homework submission policies. 1 Spark (25 pts) Write a Spark program that implements a simple People You Might Know social

More information

DATA MINING APRIORI ALGORITHM IMPLEMENTATION USING R

DATA MINING APRIORI ALGORITHM IMPLEMENTATION USING R DATA MINING APRIORI ALGORITHM IMPLEMENTATION USING R D Kalpana Assistant Professor, Dept. Of Computer Science and Engineering, Vivekananda Institute of Technology and Science, Telangana, India ---------------------------------------------------------------------***---------------------------------------------------------------------

More information

CSE 5243 INTRO. TO DATA MINING

CSE 5243 INTRO. TO DATA MINING CSE 53 INTRO. TO DATA MINING Locality Sensitive Hashing (LSH) Huan Sun, CSE@The Ohio State University Slides adapted from Prof. Jiawei Han @UIUC, Prof. Srinivasan Parthasarathy @OSU MMDS Secs. 3.-3.. Slides

More information

Scalable Parallel Data Mining for Association Rules

Scalable Parallel Data Mining for Association Rules IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, VOL. 12, NO. 3, MAY/JUNE 2000 337 Scalable arallel Data Mining for Association Rules Eui-Hong (Sam) Han, George Karypis, Member, IEEE, and Vipin Kumar,

More information

CS246: Mining Massive Datasets Jure Leskovec, Stanford University

CS246: Mining Massive Datasets Jure Leskovec, Stanford University CS246: Mining Massive Datasets Jure Leskovec, Stanford University http://cs246.stanford.edu HITS (Hypertext Induced Topic Selection) Is a measure of importance of pages or documents, similar to PageRank

More information

From SQL-query to result Have a look under the hood

From SQL-query to result Have a look under the hood From SQL-query to result Have a look under the hood Classical view on RA: sets Theory of relational databases: table is a set Practice (SQL): a relation is a bag of tuples R π B (R) π B (R) A B 1 1 2

More information