48
June 23, 2022 Data Mining: Concepts and Techniques 1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient and scalable frequent itemset mining methods Mining various kinds of association rules From association mining to correlation analysis Constraint-based association mining Summary

November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Embed Size (px)

Citation preview

Page 1: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 1

Chapter 5: Mining Frequent Patterns, Association and

Correlations Basic concepts and a road map Efficient and scalable frequent itemset

mining methods Mining various kinds of association rules From association mining to correlation

analysis Constraint-based association mining Summary

Page 2: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 2

Mining Various Kinds of Association Rules

Mining multilevel association

Miming multidimensional association

Mining quantitative association

Mining interesting correlation patterns

Page 3: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Mining multilevel association

Association rules generated from mining data at multiple levels of abstraction are called multiple-level or multilevel association rules

Multilevel association rules can be mined efficiently using concept hierarchies under a support-confidence framework

April 20, 2023Data Mining: Concepts and

Techniques 3

Page 4: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Concept hierarchy

April 20, 2023Data Mining: Concepts and

Techniques 4

•A concept hierarchy defines a sequence of mappings from a set of low-level concepts to higher-level, more general concepts•Data can be generalized by replacing low-level concepts within the data by their higher-level concepts, or ancestors, from a concept hierarchy

Page 5: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Approaches to mining multilevel association rules

Using uniform minimum support for all levels (referred to as uniform support) The same minimum support threshold is

used when mining at each level of abstraction

April 20, 2023Data Mining: Concepts and

Techniques 5

Page 6: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Using reduced minimum support at lower levels (referred to as reduced support) Each level of abstraction has its own minimum

support threshold. The deeper the level of abstraction, the smaller the corresponding threshold is

April 20, 2023Data Mining: Concepts and

Techniques 6

Page 7: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Using item or group-based minimum support (referred to as group-based support) Which groups are more important than

others? It is sometimes more desirable to set up

user-specific, item, or group based minimal support thresholds when mining multilevel rules

April 20, 2023Data Mining: Concepts and

Techniques 7

Page 8: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 8

Multi-level Association: Redundancy Filtering

Concept hierarchies are useful in data mining since they permit the discovery of knowledge at different levels of abstraction, such as multilevel association rules

Some rules may be redundant due to “ancestor” relationships between items.

Example milk wheat bread [support = 8%, confidence = 70%]

2% milk wheat bread [support = 2%, confidence = 72%]

The first rule is an ancestor of the second rule. A rule is redundant if its support is close to the

“expected” value, based on the rule’s ancestor.

Page 9: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Checking for redundant multilevel association rules

April 20, 2023Data Mining: Concepts and

Techniques 9

Page 10: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 10

Mining Multi-Dimensional Association rule

Single-dimensional rules/ intra-dimensional rules:buys(X, “milk”) buys(X, “bread”)

Multi-dimensional rules: 2 dimensions or predicates Inter-dimension assoc. rules (no repeated predicates)

age(X,”19-25”) occupation(X,“student”) buys(X, “coke”)

hybrid-dimension assoc. rules (repeated predicates)age(X,”19-25”) buys(X, “popcorn”) buys(X, “coke”)

Categorical Attributes: finite number of possible values, no ordering among values (e.g., occupation, brand, color)

Quantitative Attributes: numeric, implicit ordering among values (e.g., age, income)

Page 11: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 11

Mining Quantitative Associations

Techniques can be categorized by how numerical or quantitative attributes, such as age or salary are treated

Descretization occurs before mining

1. Static discretization based on predefined concept hierarchies (data cube methods)

Quantitative attributes are discretized using predefined concept hierarchies

2. Dynamic discretization based on data distribution (quantitative rules)

Quantitative attributes are discretized or clustered in to “bins” based on the distribution of the data

Page 12: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 12

Static Discretization of Quantitative Attributes

Discretized prior to mining using concept hierarchy.

Numeric values are replaced by ranges. In relational database, finding all frequent k-

predicate sets will require k or k+1 table scans. A k-predicate set is a set containing k conjunctive

predicates Example: 3-predicate set {age, occupation, buys}

Data cube is well suited for mining. The cells of an n-dimensional cuboid can

be used to store support counts of the

corresponding n-predicate sets.

Mining from data cubescan be much faster.

(income)

(age)

()

(buys)

(age, income) (age,buys)(income,buys)

(age,income,buys)

Page 13: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 13

Mining Quantitative Association Rules

age(X,”34-35”) income(X,”30-50K”) buys(X,”high resolution TV”)

Numeric attributes are dynamically discretized Such that the confidence or compactness of the

rules mined is maximized 2-D quantitative association rules: Aquan1 Aquan2

Acat

How can we find such rules? Cluster adjacent

association rules to form general rules using a 2-D grid

Example

Page 14: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Approach used in a system called ARCS (Association Rule Clustering System)

Steps: Binning partitioning process – intervals

are considered “bins” Equal-width binning interval size of each bin

is the same // ARCS employs Equal-frequency binning bin has

approximately the same number of tuples associated to it

Clustering-based binning clustering is performed on the quantitative attributes to group neighboring points into the same bin

April 20, 2023Data Mining: Concepts and

Techniques 14

Page 15: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

… A 2-D array for each possible bin combination

involving both quantitative attributes is created

Finding frequent predicate sets 2-D array containing the count distribution It can be scanned to find the frequent

predicate sets (those satisfy min_sup) Clustering the association rules

The strong association rules obtained in the previous step are then mapped to a 2-D grid

April 20, 2023Data Mining: Concepts and

Techniques 15

Page 16: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

2-D Grid

April 20, 2023Data Mining: Concepts and

Techniques 16

Page 17: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 17

Mining Other Interesting Patterns

Flexible support constraints Some items (e.g., diamond) may occur rarely

but are valuable Customized supmin specification and application

Top-K closed frequent patterns Hard to specify supmin, but top-k with lengthmin is

more desirable Dynamically raise supmin in FP-tree construction

and mining, and select most promising path to mine

Page 18: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 18

Chapter 5: Mining Frequent Patterns, Association and

Correlations Basic concepts and a road map Efficient and scalable frequent itemset

mining methods Mining various kinds of association rules From association mining to correlation

analysis Constraint-based association mining Summary

Page 19: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

From association analysis to correlation analysis

Support-confidence framework association rules Correlation rule is measured not only by its

support and confidence but also by the correlation between itemsets A and B

Lift is a simple correlation measure The occurrence of itemset A is independent of the

occurrence of itemset B if P(AUB)=P(A)P(B) Otherwise, itemsets A and B are dependent and

correlated as events =1 A and B are independent <1 occurrence of A is negatively correlated

with the occurrence of B >1 A and B are positively correlated

April 20, 2023Data Mining: Concepts and

Techniques 19

Page 20: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 20

Interestingness Measure: Correlations (Lift)

play basketball eat cereal [40%, 66.7%] is misleading

The overall % of students eating cereal is 75% > 66.7%.

play basketball not eat cereal [20%, 33.3%] is more

accurate, although with lower support and confidence

Measure of dependent/correlated events: lift

89.05000/3750*5000/3000

5000/2000),( CBlift

Basketball

Not basketball Sum (row)

Cereal 2000 1750 3750

Not cereal 1000 250 1250

Sum(col.) 3000 2000 5000)()(

)(

BPAP

BAPlift

33.15000/1250*5000/3000

5000/1000),( CBlift

Page 21: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Correlation analysis using 2

The observed value and expected value

April 20, 2023Data Mining: Concepts and

Techniques 21

Page 22: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 22

Are lift and 2 Good Measures of Correlation?

“Buy walnuts buy milk [1%, 80%]” is misleading

if 85% of customers buy milk

Support and confidence are not good to represent correlations

So many interestingness measures?

)()(

)(

BPAP

BAPlift

)sup(_max_

)sup(_

Xitem

Xconfall

|)(|

)sup(

Xuniverse

Xcoh

Page 23: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 23

Page 24: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 24

Which Measures Should Be Used?

lift and 2 are not good measures for correlations in large transactional DBs

all-conf or coherence could be good measures Both all-conf and coherence have the downward

closure property The downward closure property of frequent patterns

Any subset of a frequent itemset must be frequent If {beer, diaper, nuts} is frequent, so is {beer,

diaper} i.e., every transaction having {beer, diaper, nuts}

also contains {beer, diaper} Efficient algorithms can be derived for mining

Page 25: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 25

Page 26: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 26

Chapter 5: Mining Frequent Patterns, Association and

Correlations Basic concepts and a road map Efficient and scalable frequent itemset

mining methods Mining various kinds of association rules From association mining to correlation

analysis Constraint-based association mining Summary

Page 27: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 27

Constraint-based (Query-Directed) Mining

Finding all the patterns in a database autonomously? — unrealistic! The patterns could be too many but not focused!

Data mining should be an interactive process User directs what to be mined using a data mining

query language (or a graphical user interface) Constraint-based mining

User flexibility: provides constraints on what to be mined

System optimization: explores such constraints for efficient mining—constraint-based mining

Page 28: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 28

Constraints in Data Mining Knowledge type constraint:

classification, association, etc. Data constraint — using SQL-like queries

find product pairs sold together in stores in Chicago in Dec.’02

Dimension/level constraint levels of concept hierarchy in relevance to region, price, brand, customer

category Rule (or pattern) constraint

Specify the form of rules to be mined Constraints are expressed as metarules (rule templates) small sales (price < $10) triggers big sales (sum > $200)

Interestingness constraint strong rules: min_support 3%, min_confidence

60%

Page 29: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 29

Constrained Mining

Constrained mining Aimed at reducing search space Finding all patterns satisfying constraints Constraint-pushing

Constrained mining vs. query processing in DBMS Database query processing requires to find all Constrained pattern mining shares a similar

philosophy as pushing selections deeply in query processing

Page 30: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

Rule constraints

Rule constraints can be classified into the following five categories w.r.t frequent itemset mining: Anti-monotonic Monotonic Succinct Convertible In-convertible

April 20, 2023Data Mining: Concepts and

Techniques 30

Page 31: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 31

Anti-Monotonicity in Constraint Pushing

Anti-monotonicity When an intemset S violates the

constraint, so does any of its superset

sum(S.Price) v is anti-monotone sum(S.Price) v is not anti-

monotone Example. C: range(S.profit) 15 is

anti-monotone Itemset ab violates C So does every superset of ab

TID Transaction

10 a, b, c, d, f

20 b, c, d, f, g, h

30 a, c, d, e, f

40 c, e, f, g

TDB (min_sup=2)

Item Profit

a 40

b 0

c -20

d 10

e -30

f 30

g 20

h -10

Page 32: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 32

Monotonicity for Constraint Pushing

Monotonicity When an itemset S satisfies

the constraint, so does any of its superset

sum(S.Price) v is monotone min(S.Price) v is monotone

Example. C: range(S.profit) 15 Itemset ab satisfies C So does every superset of ab

TID Transaction

10 a, b, c, d, f

20 b, c, d, f, g, h

30 a, c, d, e, f

40 c, e, f, g

TDB (min_sup=2)

Item Profit

a 40

b 0

c -20

d 10

e -30

f 30

g 20

h -10

Page 33: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 33

Succinctness

Succinctness:

Given A1, the set of items satisfying a succinctness

constraint C, then any set S satisfying C is based

on A1 , i.e., S contains a subset belonging to A1

Idea: Without looking at the transaction database, whether an itemset S satisfies constraint C can be determined based on the selection of items

min(S.Price) v is succinct sum(S.Price) v is not succinct

Optimization: If C is succinct, C is pre-counting pushable

Page 34: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 34

The Apriori Algorithm — Example

TID Items100 1 3 4200 2 3 5300 1 2 3 5400 2 5

Database D itemset sup.{1} 2{2} 3{3} 3{4} 1{5} 3

itemset sup.{1} 2{2} 3{3} 3{5} 3

Scan D

C1L1

itemset{1 2}{1 3}{1 5}{2 3}{2 5}{3 5}

itemset sup{1 2} 1{1 3} 2{1 5} 1{2 3} 2{2 5} 3{3 5} 2

itemset sup{1 3} 2{2 3} 2{2 5} 3{3 5} 2

L2

C2 C2Scan D

C3 L3itemset{2 3 5}

Scan D itemset sup{2 3 5} 2

Page 35: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 35

Naïve Algorithm: Apriori + Constraint

TID Items100 1 3 4200 2 3 5300 1 2 3 5400 2 5

Database D itemset sup.{1} 2{2} 3{3} 3{4} 1{5} 3

itemset sup.{1} 2{2} 3{3} 3{5} 3

Scan D

C1L1

itemset{1 2}{1 3}{1 5}{2 3}{2 5}{3 5}

itemset sup{1 2} 1{1 3} 2{1 5} 1{2 3} 2{2 5} 3{3 5} 2

itemset sup{1 3} 2{2 3} 2{2 5} 3{3 5} 2

L2

C2 C2Scan D

C3 L3itemset{2 3 5}

Scan D itemset sup{2 3 5} 2

Constraint:

Sum{S.price} < 5

Page 36: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 36

The Constrained Apriori Algorithm: Push an Anti-monotone Constraint

Deep

TID Items100 1 3 4200 2 3 5300 1 2 3 5400 2 5

Database D itemset sup.{1} 2{2} 3{3} 3{4} 1{5} 3

itemset sup.{1} 2{2} 3{3} 3{5} 3

Scan D

C1L1

itemset{1 2}{1 3}{1 5}{2 3}{2 5}{3 5}

itemset sup{1 2} 1{1 3} 2{1 5} 1{2 3} 2{2 5} 3{3 5} 2

itemset sup{1 3} 2{2 3} 2{2 5} 3{3 5} 2

L2

C2 C2Scan D

C3 L3itemset{2 3 5}

Scan D itemset sup{2 3 5} 2

Constraint:

Sum{S.price} < 5

Page 37: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 37

The Constrained Apriori Algorithm: Push a Succinct Constraint Deep

TID Items100 1 3 4200 2 3 5300 1 2 3 5400 2 5

Database D itemset sup.{1} 2{2} 3{3} 3{4} 1{5} 3

itemset sup.{1} 2{2} 3{3} 3{5} 3

Scan D

C1L1

itemset{1 2}{1 3}{1 5}{2 3}{2 5}{3 5}

itemset sup{1 2} 1{1 3} 2{1 5} 1{2 3} 2{2 5} 3{3 5} 2

itemset sup{1 3} 2{2 3} 2{2 5} 3{3 5} 2

L2

C2 C2Scan D

C3 L3itemset{2 3 5}

Scan D itemset sup{2 3 5} 2

Constraint:

min{S.price } <= 1

not immediately to be used

Page 38: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 38

Converting “Tough” Constraints

Convert tough constraints into anti-monotone or monotone by properly ordering items

Examine C: avg(S.profit) 25 Order items in value-descending

order <a, f, g, d, b, h, c, e>

If an itemset afb violates C So does afbh, afb* It becomes anti-monotone!

TID Transaction

10 a, b, c, d, f

20 b, c, d, f, g, h

30 a, c, d, e, f

40 c, e, f, g

TDB (min_sup=2)

Item Profit

a 40

b 0

c -20

d 10

e -30

f 30

g 20

h -10

Page 39: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 39

Strongly Convertible Constraints

avg(X) 25 is convertible anti-monotone w.r.t. item value descending order R: <a, f, g, d, b, h, c, e> If an itemset af violates a constraint C,

so does every itemset with af as prefix, such as afd

avg(X) 25 is convertible monotone w.r.t. item value ascending order R-1: <e, c, h, b, d, g, f, a> If an itemset d satisfies a constraint C,

so does itemsets df and dfa, which having d as a prefix

Thus, avg(X) 25 is strongly convertible

Item Profit

a 40

b 0

c -20

d 10

e -30

f 30

g 20

h -10

Page 40: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 40

Can Apriori Handle Convertible Constraint?

A convertible, not monotone nor anti-monotone nor succinct constraint cannot be pushed deep into the an Apriori mining algorithm Within the level wise framework, no direct

pruning based on the constraint can be made

Itemset df violates constraint C: avg(X)>=25 Since adf satisfies C, Apriori needs df to

assemble adf, df cannot be pruned But it can be pushed into frequent-pattern

growth framework!

Item Value

a 40

b 0

c -20

d 10

e -30

f 30

g 20

h -10

Page 41: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 41

Mining With Convertible Constraints

C: avg(X) >= 25, min_sup=2 List items in every transaction in value

descending order R: <a, f, g, d, b, h, c, e> C is convertible anti-monotone w.r.t. R

Scan TDB once remove infrequent items

Item h is dropped Itemsets a and f are good, …

Projection-based mining Imposing an appropriate order on item

projection Many tough constraints can be converted

into (anti)-monotone

TID Transaction

10 a, f, d, b, c

20 f, g, d, b, c

30 a, f, d, c, e

40 f, g, h, c, e

TDB (min_sup=2)

Item Value

a 40

f 30

g 20

d 10

b 0

h -10

c -20

e -30

Page 42: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 42

Handling Multiple Constraints

Different constraints may require different or even conflicting item-ordering

If there exists an order R s.t. both C1 and C2 are

convertible w.r.t. R, then there is no conflict between the two convertible constraints

If there exists conflict on order of items Try to satisfy one constraint first Then using the order for the other constraint

to mine frequent itemsets in the corresponding projected database

Page 43: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 43

What Constraints Are Convertible?

Constraint Convertible anti-monotone

Convertible monotone

Strongly convertible

avg(S) , v Yes Yes Yes

median(S) , v Yes Yes Yes

sum(S) v (items could be of any value, v 0)

Yes No No

sum(S) v (items could be of any value, v 0)

No Yes No

sum(S) v (items could be of any value, v 0)

No Yes No

sum(S) v (items could be of any value, v 0)

Yes No No

……

Page 44: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 44

Constraint-Based Mining—A General Picture

Constraint Antimonotone Monotone Succinct

v S no yes yes

S V no yes yes

S V yes no yes

min(S) v no yes yes

min(S) v yes no yes

max(S) v yes no yes

max(S) v no yes yes

count(S) v yes no weakly

count(S) v no yes weakly

sum(S) v ( a S, a 0 ) yes no no

sum(S) v ( a S, a 0 ) no yes no

range(S) v yes no no

range(S) v no yes no

avg(S) v, { , , } convertible convertible no

support(S) yes no no

support(S) no yes no

Page 45: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 45

A Classification of Constraints

Convertibleanti-monotone

Convertiblemonotone

Stronglyconvertible

Inconvertible

Succinct

Antimonotone

Monotone

Page 46: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 46

Chapter 5: Mining Frequent Patterns, Association and

Correlations Basic concepts and a road map Efficient and scalable frequent itemset

mining methods Mining various kinds of association rules From association mining to correlation

analysis Constraint-based association mining Summary

Page 47: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 47

Frequent-Pattern Mining: Summary

Frequent pattern mining—an important task in data

mining

Scalable frequent pattern mining methods

Apriori (Candidate generation & test)

Projection-based (FPgrowth)

Vertical format approach

Mining a variety of rules and interesting patterns

Constraint-based mining

Mining sequential and structured patterns

Extensions and applications

Page 48: November 3, 2015Data Mining: Concepts and Techniques1 Chapter 5: Mining Frequent Patterns, Association and Correlations Basic concepts and a road map Efficient

April 20, 2023Data Mining: Concepts and

Techniques 48

Frequent-Pattern Mining: Research Problems

Mining fault-tolerant frequent, sequential and structured patterns Patterns allows limited faults (insertion,

deletion, mutation) Mining truly interesting patterns

Surprising, novel, concise, … Application exploration

E.g., DNA sequence analysis and bio-pattern classification

“Invisible” data mining