Top Banner
Data Mining by Charu C. Aggarwal Chapter 4 – Association Pattern Mining
16

Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Sep 22, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Data Mining by Charu C. Aggarwal

Chapter 4 – Association Pattern Mining

Page 2: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Agenda

• Target Case study• What is Association Mining?• Association Mining Details• Terminologies• Apriori Principle• Applications• Q&A

Page 3: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Target Case ( Circa 2012)

• The guest marketing analytics team at Target inferred based on purchasing data (involving elevated rates of buying unscented lotion, mineral supplements, and cotton balls) that one of its customers—a teenage girl in Minnesota, was pregnant.

Page 4: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

What is Association Mining?

• Finding frequent patterns, associations, correlations, or causal structures among sets of items or objects in transactional and/or relational databases, and other information repositories.

Page 5: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Association Mining

Page 6: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Terminologies frequently

used

Page 7: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Example

1. Consider the following association{Milk, Diapers} -> {Beer}

2. The support count for the above mentioned association

{Milk, Diapers, Beer} is 23. Total number of transactions is 54. The Rule’s support is 2/5 = 0.45. The rule’s confidence is obtained by

dividing the support count for {Milk, Diapers, Beer} by the support count for {Milk, Diapers}.

6. The confidence for this rule is 2/3 = 0.67

Page 8: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Why Use Support and Confidence?

Support• Support is an important measure

because a rule that has very low support may occur by chance.• A low support may also be less

enticing from business point of view.• Support is used to eliminate

uninteresting rules.

Confidence• Confidence measures the reliability of

the inference made by a rule.• Example: X -> Y, the higher the

confidence the more likelihood that Y will be present in transactions that contain X.

• Provides an estimate of the conditional probability of Y given X

Page 9: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Please Note…

Association analysis results should be interpreted with Caution!

Inference made by an association rule does not necessarily imply causality.

It suggests a strong co-occurrence relationship between items in the antecedent and consequent of the rule.

Page 10: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

•Brute Force Algorithms• List all possible association rules.• Compute the support and confidence for

each rule.• Prune rules that fail the ‘minsup’ and

‘minconf’ thresholds.• Not pragmatic.

Page 11: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Apriori principle

• Apriori is the first association rule mining algorithm that pioneered the use of support-based pruning to systematically control the exponential growth of candidate item-sets.

• If an item-set is frequent, then all of its subsets must also be frequent.

Page 12: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

How does the Apriori

principle work?

Page 13: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Applications

Page 14: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Market Basket Analysis

• A typical and widely-used example of association rule mining is Market basket analysis• Commercial world always want to know more

about your purchasing patterns and everything about you!• Brand Promotions• Inventory Management• Customer Relationship Management

Page 15: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Other applications

• Medical Diagnosis • Protein sequences• Census Data• Customer Relationship Management of

Credit card business

Page 16: Chapter 4 – Association Pattern Mining · Market Basket Analysis •A typical and widely-used example of association rule mining is Market basket analysis •Commercial world always

Thank you!Rita Chowdhury