GRID SD Frequent Pattern Mining Centro de Ciências e Tecnologia da Computação Departamento de Informática Escola de Engenharia Universidade do Minho PORTUGAL.

Slides:



Advertisements
Apresentações semelhantes
Presenter’s Notes Some Background on the Barber Paradox
Advertisements

RCAAP Project João Mendes Moreira, FCCN Berlin 7, Paris, 04/12/2009.
Laboratório de Sistemas Distribuídos (LSD) – Universidade Federal de Campina Grande (UFCG)EELA Grid School – December 04, 2006 Enhancing SegHidro/BRAMS.
São Paulo - November 7, 2013 Measuring the Cost of Formalization in Brazil © 2003 The Ronald Coase Institute Adopting RCI methodology to measure start.
Chapter Six Pipelining
Chapter Five The Processor: Datapath and Control (Parte B: multiciclo)
Portugal – Fraunhofer Gesellschaft Agreement
III REUNIÃO DE COORDENAÇÃO REGIONAL DA BVS Lewis Joel Greene Editor Brazilian Journal of Medical and Biological Research Medical School of Ribeirão Preto.
Ciência Robert Sheaffer: Prepared Talk for the Smithsonian UFO Symposium, Sept. 6, 1980.
Uma das tarefas descritivas da
Meeting 17 Chapter & 6-6.
Towards a Requirement Analysis Approach for Dependable Law-Governed Systems Maíra Gatti, Gustavo Carvalho May 2nd 2006.
DIRETORIA ACADÊMICA NÚCLEO DE CIÊNCIAS HUMANAS E ENGENHARIAS DISCIPLINA: INGLÊS FUNDAMENTAL - NOITE PROFESSOR: JOSÉ GERMANO DOS SANTOS PERÍODO LETIVO
Um pouco mais sobre modelos de objetos. Ray Path Categorization Ray Path Categorization. Nehab, D.; Gattass, M. Proceedings of SIBGRAPI 2000, Brazil,
Correção dos exercícios de engenharia do conhecimento em Prolog Jacques Robin, DI-UFPE
Sistemas Distribuídos Introdução: Modelos de Arquitetura de Sistemas Distribuídos Instituto de Informática – UFG Verão 2005 Baseado em: Coulouris, Cap.
A.4. Trabalhando com elementos de biblioteca STL – Standard Template Libraby Disponibiliza um conjunto de classes templates, provendo algoritmos eficientes.
Fundamentos da teoria dos semicondutores Faixas de energia no cristal semicondutor. Estatística de portadores em equilíbrio. Transporte de portadores.
GT Processo Eletrônico SG Documentos Eletrônicos Segunda reunião – 28/08/2009 Interlegis.
Data Mining: Ferramenta JAVA
Uniform Resource Identifier (URI). Uniform Resource Identifiers Uniform Resource Identifiers (URI) ou Identificador de Recursos Uniforme provê um meio.
Protocolo HTTP.
SECEX SECRETARIA DE COMÉRCIO EXTERIOR MINISTÉRIO DO DESENVOLVIMENTO, INDUSTRIA E COMÉRCIO EXTERIOR BRAZILIAN EXPORTS STATISTICAL DEPURATION SYSTEM Presentation.
IEEE PES General Meeting, Tampa FL June 24-28, 2007 Conferência Brasileira de Qualidade de Energia Santos, São Paulo, Agosto 5-8, Chapter 3 Harmonic.
OER LIFE CYCLE Andrew Moore and Tessa Welch.
Ecological Economics Lecture 6 Tiago Domingos Assistant Professor Environment and Energy Section Department of Mechanical Engineering Doctoral Program.
Tópicos Especiais em Aprendizagem Reinaldo Bianchi Centro Universitário da FEI 2012.
Part 5: Regression Algebra and Fit 5-1/34 Econometrics I Professor William Greene Stern School of Business Department of Economics.
Curso Gestão Estratégica de Dívida Pública para os Estados Workshop on Debt Management Strategies for Brazilian Subnationals Jorge Luís Tonetto CONFAZ/GEFIN.
Definição do MoC Subjacente a Aplicação Prof. Dr. César Augusto Missio Marcon Parcialmente extraído de trabalhos de Axel Jantch, Edward Lee e Alberto Sangiovanni-Vincentelli.
Universidade de Brasília Laboratório de Processamento de Sinais em Arranjos 1 Subspace based Multi-Dimensional Model Order Selection in Colored Noise Scenarios.
Universidade de Brasília Laboratório de Processamento de Sinais em Arranjos 1 Adaptive & Array Signal Processing AASP Prof. Dr.-Ing. João Paulo C. Lustosa.
Knowledge Extraction from the Web (ISEWO)
Avaliação Constituição dos grupos de trabalho:
Lecture 4 Pressure distribution in fluids. Pressure and pressure gradient. Hydrostatic pressure 1.
Lecture 2 Properties of Fluids Units and Dimensions 1.
Usabilidade Competitividade e Inovação. Agenda  Definição  Valor  Testemunhos  Métodos e técnicas  Padrões  No mundo… no Brasil  Em Pernambuco.
Introdução à Criptografia Moderna – 2ª Lista de Exercícios
Metodologia de Desenvolvimento de Software Hermano Moura Alexandre Vasconcelos, André Santos, Augusto Sampaio, Hermano Moura, Paulo.
2010 New Years Trip to Argentina and Brazil Trip Sponsored by.
Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento em Lisboa Ontology Building Process: The Wine Domain João Graça, Márcio.
Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento em Lisboa Understanding Epidemic Quorum Systems INESC-ID Lisbon/Technical.
Faculdade de Ciências Económicas e Empresariais Universidade Católica Portuguesa 15/09/2014Ricardo F Reis 6 th session: Financial Measures.
IEEE PES General Meeting, Tampa FL June 24-28, 2007 Conferência Brasileira de Qualidade de Energia Santos, São Paulo, Agosto 5-8, Chapter 5: Harmonic.
Socio-technical approaches for Safety STAMP/STPA
GRID SD Extracção de padrões em bases de dados de grandes dimensões Centro de Ciências e Tecnologia da Computação Departamento de Informática Escola de.
Cigré/Brasil CE B5 – Proteção e Automação Seminário Interno de Preparação para a Bienal 2006 Rio de Janeiro, setembro/06.
Lei de Cotas: Looking at the Implementation of the Brazilian Employment Quota in São Paulo, Brazil Anna C. O’Kelly.
RELATÓRIO CEMEC 06 COMPARAÇÕES INTERNACIONAIS Novembro 2013.
Ambrósio et al e-POSTER Enhanced Screening for Refractive Candidates based on Corneal Tomography and Biomechanics Renato Ambrósio Jr., MD, PhD Ruiz Alonso,
Aula Teórica 18 & 19 Adimensionalização. Nº de Reynolds e Nº de Froude. Teorema dos PI’s , Diagrama de Moody, Equação de Bernoulli Generalizada e Coeficientes.
VOCÊ JÁ FALA INGLÊS FLUENTEMENTE?
Faculdade de Ciências Económicas e Empresariais Universidade Católica Portuguesa 17/12/2014Ricardo F Reis 2 nd session: Principal –
IEEE PES General Meeting, Tampa FL June 24-28, 2007 Conferência Brasileira de Qualidade de Energia Santos, São Paulo, Agosto 5-8, Chapter 8: Procedure.
Abstract This study aimed to present a survey with the reference values from 254 Brazilian male judokas hand grip strength according to their age, weight.
Limit Equlibrium Method. Limit Equilibrium Method Failure mechanisms are often complex and cannot be modelled by single wedges with plane surfaces. Analysis.
Abril 2016 Gabriel Mormilho Faculdade de Economia, Administração e Contabilidade da Universidade de São Paulo Departamento de Administração EAD5853 Análise.
Pesquisa Operacional aplicada à Gestão de Produção e Logística Prof. Eng. Junior Buzatto Case 3.
Part I Object of Plasma Physics BACK. I. Object of Plasma Physics 1. Characterization of the Plasma State 2. Plasmas in Nature 3. Plasmas in the Laboratory.
Phases of Hackers. Module 1: Today’s Threat Landscape Module 2: Key Principles of Security Module 3: Understanding your enemy! Module 4: Phases of Hackers.
Equação de Evolução e método do volume-finito.
Visão geral do Aprendizado de máquina
Teste e Qualidade de Software
TQS - Teste e Qualidade de Software (Software Testing and Quality) Geração Automática de Casos de Teste com a Ferramenta.
Three analogies to explain reactive power Why an analogy? Reactive power is an essential aspect of the electricity system, but one that is difficult to.
Introduction to Machine learning
Introduction to density estimation Modelação EcoLÓGICA
Pesquisadores envolvidos Recomenda-se Arial 20 ou Times New Roman 21.
Data Users Data Owners. Data Users Data Owners.
The following are the CSD Responses in relation to the IEEE P802
Transcrição da apresentação:

GRID SD Frequent Pattern Mining Centro de Ciências e Tecnologia da Computação Departamento de Informática Escola de Engenharia Universidade do Minho PORTUGAL Departamento de Informática, Universidade do Minho Braga, 16 de Março de 2005 Ronnie Alves

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Outline What is frequent pattern mining? Frequent pattern mining algorithms – Apriori – FP-Growth – A multi-dimensional view of frequent pattern mining – Constraint-based frequent pattern mining

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados What is frequent pattern mining? What is a frequent pattern? – Pattern (set of items, sequence, etc.) that occurs together frequently in a database [AIS93] Frequent pattern: an important form of regularity – What products were often purchased together? — beers and diapers! – What are the consequences of a hurricane? – What is the next target after buying a PC?

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Application Examples Market Basket Analysis – *  Maintenance Agreement What the store should do to boost Maintenance Agreement sales – Home Electronics  * What other products should the store stocks up on if the store has a sale on Home Electronics Attached mailing in direct marketing

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Association Rule Mining Given – A database of customer transactions – Each transaction is a list of items (purchased by a customer in a visit) Find all rules that correlate the presence of one set of items with that of another set of items – Example: 98% of people who purchase tires and auto accessories also get automotive services done – Any number of items in the consequent/antecedent of rule – Possible to specify constraints on rules (e.g., find only rules involving Home Laundry Appliances).

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Basic Concepts Rule form: “A  [support s, confidence c]”. Support: usefulness of discovered rules Confidence: certainty of the detected association Rules that satisfy both min_sup and min_conf are called strong. Examples: – buys(x, “diapers”)  buys(x, “beers”) [0.5%, 60%] – age(x, “30-34”) ^ income(x,“42K-48K”)  buys(x, “high resolution TV”) [2%,60%] – major(x, “CS”) ^ takes(x, “DB”)  grade(x, “A”) [1%, 75%]

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Rule Measures: Support and Confidence Find all the rules X & Y  Z with minimum confidence and support – support, s, probability that a transaction contains {X, Y, Z} – confidence, c, conditional probability that a transaction having {X, Y} also contains Z. Let minimum support 50%, and minimum confidence 50%, we have – A  C (50%, 66.6%) – C  A (50%, 100%) Customer buys diaper Customer buys both Customer buys beer

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados The Apriori Algorithm The Apriori method: – Proposed by Agrawal & Srikant 1994 – A similar level-wise algorithm by Mannila et al Major idea: – A subset of a frequent itemset must be frequent E.g., if {beer, diaper, nuts} is frequent, {beer, diaper} must be. Anyone is infrequent, its superset cannot be! – A powerful, scalable candidate set pruning technique: It reduces candidate k-itemsets dramatically (for k > 2)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Association Rules — Example For rule A  C: – support = support({A  C}) = 50% – confidence = support({A  C})/support({A}) = 66% The Apriori principle: – Any subset of a frequent itemset must be frequent. Min. support 50% Min. confidence 50%

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados The Apriori Algorithm Join Step C k is generated by joining L k-1 with itself Prune Step Any (k-1)-itemset that is not frequent cannot be a subset of a frequent k-itemset, hence should be removed. (C k : Candidate itemset of size k) (L k : frequent itemset of size k)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados The Apriori Algorithm — Example Database D Scan D C1C1 L1L1 L2L2 C2C2 C2C2 C3C3 L3L3

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Example of Generating Candidates L 3 ={abc, abd, acd, ace, bcd} Self-joining: L 3 *L 3 – abcd from abc and abd – acde from acd and ace Pruning: – acde is removed because ade is not in L 3 C 4 ={abcd}

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Apriori—Pseudocode C k : Candidate itemset of size k L k : frequent itemset of size k L 1 = {frequent items}; for (k = 1; L k !=  ; k++) do begin C k+1 = candidates generated from L k ; for each transaction t in database do increment the count of all candidates in C k+1 that are contained in t L k+1 = candidates in C k+1 with min_support end return  k L k ;

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Example: Counting Supports of Candidates 1,4,7 2,5,8 3,6,9 Subset function Transaction:

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Generating Strong Association Rules Confidence(A  B) = Prob(B|A) = support(A  B)/support(A) Example: L3={2,3,5} 2^3  5, confidence=2/2=100% 2^5  3, confidence=2/3=67% 3^5  2, confidence=2/2=100% 2  3^5, confidence=2/3=67% 3  2^5, confidence=2/3=67% 5  3^2, confidence=2/3=67%

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Improvements of Apriori General ideas – Scan the transaction database as fewer passes as possible – Reduce number of candidates – Facilitate support counting of candidates

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Is Apriori Fast Enough? — Performance Bottlenecks The core of the Apriori algorithm: – Use frequent (k – 1)-itemsets to generate candidate frequent k-itemsets – Use database scan and pattern matching to collect counts for the candidate itemsets The bottleneck of Apriori: candidate generation – Huge candidate sets: 10 4 frequent 1-itemset will generate 10 7 candidate 2- itemsets To discover a frequent pattern of size 100, e.g., {a 1, a 2, …, a 100 }, one needs to generate  candidates. – Multiple scans of database: Needs (n +1 ) scans, n is the length of the longest pattern

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Frequent Patterns Without Candidate Generation Compress a large database into a compact, Frequent-Pattern tree (FP-tree) structure – highly condensed, but complete for frequent pattern mining – avoid costly database scans Develop an efficient, FP-tree-based frequent pattern mining method – A divide-and-conquer methodology: decompose mining tasks into smaller ones – Avoid candidate generation: sub-database test only!

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados How to Construct FP-tree from a Transactional Database? {} f:4c:1 b:1 p:1 b:1c:3 a:3 b:1m:2 p:2m:1 Header Table Item frequency head f4 c4 a3 b3 m3 p3 min_support = 0.5 TIDItems bought (ordered) frequent items 100{f, a, c, d, g, i, m, p}{f, c, a, m, p} 200{a, b, c, f, l, m, o}{f, c, a, b, m} 300 {b, f, h, j, o}{f, b} 400 {b, c, k, s, p}{c, b, p} 500 {a, f, c, e, l, p, m, n}{f, c, a, m, p} Steps: 1.Scan DB once, find frequent 1-itemset (single item pattern) 2.Order frequent items in frequency descending order 3.Scan DB again, construct FP-tree

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Frequent Patterns Using FP-tree General idea (divide-and-conquer) – Recursively grow frequent pattern path using the FP-tree Method – For each item, construct its conditional pattern-base, and then its conditional FP-tree – Repeat the process on each newly created conditional FP- tree – Until the resulting FP-tree is empty, or it contains only one path (single path will generate all the combinations of its sub- paths, each of which is a frequent pattern)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Major Steps to Mine FP-tree Construct conditional pattern base for each node in the FP-tree Construct conditional FP-tree from each conditional pattern- base Recursively mine conditional FP-trees and grow frequent patterns obtained so far If the conditional FP-tree contains a single path, simply enumerate all the patterns

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Step 1: From FP-tree to Conditional Pattern Base Starting at the frequent header table in the FP-tree Traverse the FP-tree by following the link of each frequent item Accumulate all of transformed prefix paths of that item to form a conditional pattern base Conditional pattern bases itemcond. pattern base cf:3 afc:3 bfca:1, f:1, c:1 mfca:2, fcab:1 pfcam:2, cb:1 {} f:4c:1 b:1 p:1 b:1c:3 a:3 b:1m:2 p:2m:1 Header Table Item frequency head f4 c4 a3 b3 m3 p3

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Properties of FP-tree for Conditional Pattern Base Construction Node-link property – For any frequent item a i, all the possible frequent patterns that contain a i can be obtained by following a i 's node-links, starting from a i 's head in the FP-tree header Prefix path property – To calculate the frequent patterns for a node a i in a path P, only the prefix sub-path of a i in P need to be accumulated, and its frequency count should carry the same count as node a i.

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Step 2: Construct Conditional FP-tree For each pattern-base – Accumulate the count for each item in the base – Construct the FP-tree for the frequent items of the pattern base m-conditional pattern base: fca:2, fcab:1 All frequent patterns concerning m m, fm, cm, am, fcm, fam, cam, fcam   {} f:4c:1 b:1 p:1 b:1c:3 a:3 b:1m:2 p:2m:1 Header Table Item frequency head f4 c4 a3 b3 m3 p3

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Frequent Patterns by Creating Conditional Pattern-Bases Empty f {(f:3)}|c{(f:3)}c {(f:3, c:3)}|a{(fc:3)}a Empty{(fca:1), (f:1), (c:1)}b {(f:3, c:3, a:3)}|m{(fca:2), (fcab:1)}m {(c:3)}|p{(fcam:2), (cb:1)}p Cond. FP-treeCond. pattern-base Item

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Step 3: recursively mine the conditional FP-tree {} f:3 c:3 a:3 m-conditional FP-tree Cond. pattern base of “am”: (fc:3) Cond. pattern base of “cm”: (f:3) {} f:3 cm-conditional FP-tree Cond. pattern base of “cam”: (f:3) {} f:3 cam-conditional FP-tree

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Single FP-tree Path Generation Suppose an FP-tree T has a single path P The complete set of frequent pattern of T can be generated by enumeration of all the combinations of the sub-paths of P {} f:3 c:3 a:3 All frequent patterns concerning m m, fm, cm, am, fcm, fam, cam, fcam 

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Principles of Frequent Pattern Growth Pattern growth property – Let  be a frequent itemset in DB, B be  's conditional pattern base, and  be an itemset in B. Then    is a frequent itemset in DB iff  is frequent in B. “abcdef ” is a frequent pattern, if and only if – “abcde ” is a frequent pattern, and – “f ” is frequent in the set of transactions containing “abcde ”

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Why Is Frequent Pattern Growth Fast? Performance studies show – FP-growth is an order of magnitude faster than Apriori, and is also faster than tree-projection Reasoning – No candidate generation, no candidate test – Use compact data structure – Eliminate repeated database scan – Basic operation is counting and FP-tree building

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados FP-growth vs. Apriori: Scalability With Number of Transactions

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Multi-Dimensional Associations Single-dimensional rules (Transaction based) – Involve a single distinct predicate with >1 occurrences. – Example: buys(X, “milk”)  buys(X, “bread”) Multi-dimensional rules (Relational Database) – Involve 2 or more dimensions or predicates – Inter-dimension association rules (no repeated predicates) age(X,”19-25”)  occupation(X,“student”)  buys(X,“coke”) – hybrid-dimension association rules (repeated predicates) age(X,”19-25”)  buys(X, “popcorn”)  buys(X, “coke”)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Multi-Dimensional Associations Categorical Attributes – have finite number of possible values – no ordering among values Quantitative Attributes – numeric – implicit ordering among values Multi-dimensional association rules often include both types of attributes!

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Multi-Dimensional Associations How to mine multi-dimensional associations: – Search for frequent predicatesets. – k-predicateset: A set of k conjunctive predicates. Example: {age, occupation, buys} is a 3-predicateset. Techniques can be categorized by how quantitative attributes such as age are treated.

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Three Techniques for Mining MD Associations 1. Static discretization of quantitative attributes – Quantitative attributes are statically discretized by using predefined concept hierarchies. 2. Quantitative association rules – Quantitative attributes are dynamically discretized into “bins”based on the distribution of the data. 3. Distance-based association rules – This is a dynamic discretization process that considers the distance between data points.

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Static Discretization of Quantitative Attributes Discretized prior to mining using predefined concept hierarchy. Numeric values are replaced by ranges. On Relational Database, finding all frequent k-predicatesets will require k or k+1 table scans. Data cube is well suited for mining. The cells of an n-dimensional cuboid correspond to the predicatesets. (income)(age) () (buys) (age, income)(age,buys)(income,buys) (age,income,buys)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Quantitative Association Rules Numeric attributes are dynamically discretized – Such that the confidence or compactness of the rules mined is maximized. We will discuss 2-D quantitative association rules:A quan1  A quan2  A cat age(X,”30-34”)  income(X,”24K - 48K”)  buys(X,”high resolution TV”)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Interestingness Measures Objective measures Two popular measurements: ¶support; and ·confidence Subjective measures (Silberschatz & Tuzhilin, KDD95) A rule (pattern) is interesting if ¶it is unexpected (surprising to the user); and/or ·actionable (the user can do something with it)

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Criticism to Support and Confidence Example 1: (Aggarwal & Yu, PODS98) – Among 5000 students 3000 play basketball 3750 eat cereal 2000 both play basket ball and eat cereal – play basketball  eat cereal [40%, 66.7%] is misleading because the overall percentage of students eating cereal is 75% which is higher than 66.7%. – play basketball  not eat cereal [20%, 33.3%] is far more accurate, although with lower support and confidence

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Criticism to Support and Confidence (Cont.) Example 2: – X and Y: positively correlated, – X and Z, negatively related – support and confidence of – X=>Z dominates

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Other Interestingness Measures: Interest Interest (Lift) – taking both P(A) and P(B) in consideration – P(A^B)=P(B)*P(A), if A and B are independent events – A and B negatively correlated, if the value is less than 1; otherwise A and B positively correlated. – The interest of a rule measures how dependent A and B are – It tells us how much better the rule predicts the consequent than the random prediction

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Other Interestingness Measures: Conviction Conviction – from implication: A  B  A  (  B) – factors in both P(A) and P(B) and has value 1 when the relevant items are completely unrelated (confidence does not) – rules which hold 100% of the time have the highest possible value  (interest does not) – The higher the conviction, the more often B occurs with A

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Collective Strength Collective strength is a number between 0 and  with 1 as the break- even point where v(I) is the violation ratio of itemset I. An itemset is said to be in violation of a transaction if some of the items are present in the transaction, and others are not. v(I) is equal to the fraction of transactions which contain a proper non-null subset of I Recasting collective strength as:

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Collective Strength (2) Let I be a set of items {i1, i2, … ik}. Let pr denote the frequency of the item ir in the database. – the probability that the itemset I occurs in a transaction is – the probability that none of the items in I occurs in the transaction is – the expected fraction of transactions that contains at least one item in I, and where at least one item is absent:

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Collective Strength (3) Example: Collective Strength of I {X,Y}:

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados DMQL

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Mining Multi-dimensional Association Rules _ Framework (v1) Intra-AR interactive incremental Inter-AR task data miner pmml export pmml visor data cubes

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados Sites Jiawei Han – Bart Goethals – Frequent Itemset Mining Implementations Repository – Weka 3: Data Mining Software in Java –

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados References(1) G. Grahne, L. Lakshmanan, and X. Wang. Efficient mining of constrained correlated sets. ICDE'00, , San Diego, CA, Feb Y. Fu and J. Han. Meta-rule-guided mining of association rules in relational databases. KDOOD'95, 39-46, Singapore, Dec T. Fukuda, Y. Morimoto, S. Morishita, and T. Tokuyama. Data mining using two- dimensional optimized association rules: Scheme, algorithms, and visualization. SIGMOD'96, 13-23, Montreal, Canada. E.-H. Han, G. Karypis, and V. Kumar. Scalable parallel data mining for association rules. SIGMOD'97, , Tucson, Arizona. J. Han, G. Dong, and Y. Yin. Efficient mining of partial periodic patterns in time series database. ICDE'99, Sydney, Australia. J. Han and Y. Fu. Discovery of multiple-level association rules from large databases. VLDB'95, , Zurich, Switzerland. J. Han, J. Pei, and Y. Yin. Mining frequent patterns without candidate generation. SIGMOD'00, 1-12, Dallas, TX, May T. Imielinski and H. Mannila. A database perspective on knowledge discovery. Communications of ACM, 39:58-64, M. Kamber, J. Han, and J. Y. Chiang. Metarule-guided mining of multi- dimensional association rules using data cubes. KDD'97, , Newport Beach, California. M. Klemettinen, H. Mannila, P. Ronkainen, H. Toivonen, and A.I. Verkamo. Finding interesting rules from large sets of discovered association rules. CIKM'94, , Gaithersburg, Maryland.

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados References(2) F. Korn, A. Labrinidis, Y. Kotidis, and C. Faloutsos. Ratio rules: A new paradigm for fast, quantifiable data mining. VLDB'98, , New York, NY. B. Lent, A. Swami, and J. Widom. Clustering association rules. ICDE'97, , Birmingham, England. H. Lu, J. Han, and L. Feng. Stock movement and n-dimensional inter-transaction association rules. SIGMOD Workshop on Research Issues on Data Mining and Knowledge Discovery (DMKD'98), 12:1-12:7, Seattle, Washington. H. Mannila, H. Toivonen, and A. I. Verkamo. Efficient algorithms for discovering association rules. KDD'94, , Seattle, WA, July H. Mannila, H Toivonen, and A. I. Verkamo. Discovery of frequent episodes in event sequences. Data Mining and Knowledge Discovery, 1: , R. Meo, G. Psaila, and S. Ceri. A new SQL-like operator for mining association rules. VLDB'96, , Bombay, India. R.J. Miller and Y. Yang. Association rules over interval data. SIGMOD'97, , Tucson, Arizona. R. Ng, L. V. S. Lakshmanan, J. Han, and A. Pang. Exploratory mining and pruning optimizations of constrained associations rules. SIGMOD'98, 13-24, Seattle, Washington. N. Pasquier, Y. Bastide, R. Taouil, and L. Lakhal. Discovering frequent closed itemsets for association rules. ICDT'99, , Jerusalem, Israel, Jan

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados References(3) J.S. Park, M.S. Chen, and P.S. Yu. An effective hash-based algorithm for mining association rules. SIGMOD'95, , San Jose, CA, May J. Pei, J. Han, and R. Mao. CLOSET: An Efficient Algorithm for Mining Frequent Closed Itemsets. DMKD'00, Dallas, TX, 11-20, May J. Pei and J. Han. Can We Push More Constraints into Frequent Pattern Mining? KDD'00. Boston, MA. Aug G. Piatetsky-Shapiro. Discovery, analysis, and presentation of strong rules. In G. Piatetsky-Shapiro and W. J. Frawley, editors, Knowledge Discovery in Databases, AAAI/MIT Press, B. Ozden, S. Ramaswamy, and A. Silberschatz. Cyclic association rules. ICDE'98, , Orlando, FL. J.S. Park, M.S. Chen, and P.S. Yu. An effective hash-based algorithm for mining association rules. SIGMOD'95, , San Jose, CA. S. Ramaswamy, S. Mahajan, and A. Silberschatz. On the discovery of interesting patterns in association rules. VLDB'98, , New York, NY.. S. Sarawagi, S. Thomas, and R. Agrawal. Integrating association rule mining with relational database systems: Alternatives and implications. SIGMOD'98, , Seattle, WA. A. Savasere, E. Omiecinski, and S. Navathe. An efficient algorithm for mining association rules in large databases. VLDB'95, , Zurich, Switzerland. A. Savasere, E. Omiecinski, and S. Navathe. Mining for strong negative associations in a large database of customer transactions. ICDE'98, , Orlando, FL, Feb

Departamento de Informática, Universidade do Minho 1 GRID - Grupo de Investigação e Desenvolvimento em Sistemas de Dados References(4) R. Agarwal, C. Aggarwal, and V. V. V. Prasad. A tree projection algorithm for generation of frequent itemsets. In Journal of Parallel and Distributed Computing (Special Issue on High Performance Data Mining), R. Agrawal, T. Imielinski, and A. Swami. Mining association rules between sets of items in large databases. SIGMOD'93, , Washington, D.C. R. Agrawal and R. Srikant. Fast algorithms for mining association rules. VLDB' , Santiago, Chile. R. Agrawal and R. Srikant. Mining sequential patterns. ICDE'95, 3-14, Taipei, Taiwan. R. J. Bayardo. Efficiently mining long patterns from databases. SIGMOD'98, 85-93, Seattle, Washington. S. Brin, R. Motwani, and C. Silverstein. Beyond market basket: Generalizing association rules to correlations. SIGMOD'97, , Tucson, Arizona. S. Brin, R. Motwani, J. D. Ullman, and S. Tsur. Dynamic itemset counting and implication rules for market basket analysis. SIGMOD'97, , Tucson, Arizona, May K. Beyer and R. Ramakrishnan. Bottom-up computation of sparse and iceberg cubes. SIGMOD'99, , Philadelphia, PA, June D.W. Cheung, J. Han, V. Ng, and C.Y. Wong. Maintenance of discovered association rules in large databases: An incremental updating technique. ICDE'96, , New Orleans, LA. M. Fang, N. Shivakumar, H. Garcia-Molina, R. Motwani, and J. D. Ullman. Computing iceberg queries efficiently. VLDB'98, , New York, NY, Aug

GRID SD Frequent Pattern Mining Centro de Ciências e Tecnologia da Computação Departamento de Informática Escola de Engenharia Universidade do Minho PORTUGAL Ronnie Alves Departamento de Informática, Universidade do Minho Belém, 10 de Janeiro de 2005