SlideShare a Scribd company logo
1 of 25
BUSINESS INTELLIGENCE
&
DATA MINING
Association Rules- Support; Confidence;
Lift; Conviction.
1
Geo S. Mariyan
(Master of Computer Science)
University of Mumbai.
2. Association Rules: Introduction
 Introduction : - Association rules are created by analyzing data for frequent if/then
patterns and using the criteria support and confidence to identify the most important
relationships.
- The purchase of one product when another product is purchased represents an
association rules.
- Association rules are used in retail stores in marketing advertising floor placements and
inventory control.
2
 Support is an indication of how frequently the items appear in the database. Confidence
indicates the number of times the if/then statements have been found to be true.
 In data mining, association rules are useful for analyzing and predicting customer
behavior.
 They play an important part in shopping basket data analysis, product clustering, catalog
design and store layout.
 Example: "If a customer buys a dozen eggs, he is 80% likely to also purchase
milk."
3
Frequent Item Set
 The most common approach to finding association rule is to break up
problem into two parts:
1)Find Large Itemsets.
2)Generate rules from frequent itemsets.
 A set is called frequent if its support is no less than a given absolute
minimal support threshold.
 An itemset is any subset of the set of all items.
 A frequent itemset is an itemset whose number of occurrence is above
a threshold. We use the notation L to indicate the complete set of large
item sets and l to indicate a specific large itemsets.
 The original motivation for searching frequent sets came from the need
to analyse so called supermarket transaction data, that is, to examine
customer behaviour in terms of the purchased products. 4
5
6
Association Rule Notation
7
Association Rule Definitions
8
Association Rule Example:
9
Algorithm to Generate Association Rules:
In this algorithm we use a function support , which
returns the support for the input itemset.
10
Example
Table1.1 Sample data to IllustrateAssociation Rule
A database in which an association rule is to be found in viewed as a set of tuples ,
where each tuple contains a set of items. For example, a tuple could be {Bread,Jelly,
Peanut,Butter} which consists of this three item.
Table 1.1 is used throughout this topic to illustrate different algorithms. Here,
there are five transaction and five items.
11
Support (s)
12
Support of All Sets of Items
Support: This says how popular an itemset is, as measured by the proportion of transactions
in which an itemset appears. In Table 1 below, the support of {apple} is 4 out of 8, or 50%.
Itemsets can also contain multiple items. For instance, the support of {apple, beer, rice} is 2
out of 8, or 25%.
13
Confidence
Every association rule has a support and a confidence.
An association rule is of the form: X => Y
 X => Y: if someone buys X, he also buys Y
The confidence is the conditional probability that, given X
present in a transition , Y will also be present.
Confidence measure, by definition:
Confidence(X=>Y) equals support(X,Y) / support(X)
14
Support and Confidence for Some association Rule
15
This says how likely item Y is purchased when item X is purchased,
expressed as {X -> Y}.
This is measured by the proportion of transactions with item X, in
which item Y also appears.
Lift
•
16
17
This says how likely item Y is purchased when item X is purchased,
while controlling for how popular item Y is. In Table 1, the lift of
{apple -> beer} is 1, which implies no. association between items.
A lift value greater than 1 means that item Y is likely to be bought
if item X is bought, while a value less than 1 means that item Y is
unlikely to be bought if item X is bought.
Conviction
•
18
•
19
20
Confidence or Support :
 The confidence or Support (a) for a association rule X=> Y is the ratio
of the number of transaction that contain X U Y to the transaction that
contain X.
The selection of association rule is based on these two values as
describe in the definition of the association rule problem in definition.
Confidence measure the Support of the rule where as supports
measures how often it should occur in the database.
21
22
23
24
25

More Related Content

Viewers also liked

Association Mining
Association Mining Association Mining
Association Mining Edureka!
 
Data/File Security & Control
Data/File Security & ControlData/File Security & Control
Data/File Security & ControlAdetula Bunmi
 
2012 M&A Deal Terms Study
2012 M&A Deal Terms Study2012 M&A Deal Terms Study
2012 M&A Deal Terms StudyMMMTechLaw
 
Descripcion de nuestros servicios de Inteligencia Comercial
Descripcion de nuestros servicios de Inteligencia ComercialDescripcion de nuestros servicios de Inteligencia Comercial
Descripcion de nuestros servicios de Inteligencia ComercialLourdes Gómez
 
Understanding Your Organisation
Understanding Your Organisation   Understanding Your Organisation
Understanding Your Organisation Eneni Oduwole
 
Abby Covert – How to make sense of any mess
Abby Covert – How to make sense of any mess Abby Covert – How to make sense of any mess
Abby Covert – How to make sense of any mess inUse
 
1.11.association mining 3
1.11.association mining 31.11.association mining 3
1.11.association mining 3Krish_ver2
 
A practical approach to securing embedded and io t platforms
A practical approach to securing embedded and io t platformsA practical approach to securing embedded and io t platforms
A practical approach to securing embedded and io t platformsArm
 
File system security
File system securityFile system security
File system securityAmmAr mobark
 
Secure Data Transmission
Secure Data TransmissionSecure Data Transmission
Secure Data Transmissionbjp4642
 
COMPUTER SECURITY AND OPERATING SYSTEM
COMPUTER SECURITY AND OPERATING SYSTEMCOMPUTER SECURITY AND OPERATING SYSTEM
COMPUTER SECURITY AND OPERATING SYSTEMfaraz hussain
 
Operating system security
Operating system securityOperating system security
Operating system securitySarmad Makhdoom
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems Haitham Ahmed
 

Viewers also liked (17)

Association Mining
Association Mining Association Mining
Association Mining
 
File Security System_2
File Security System_2File Security System_2
File Security System_2
 
Data/File Security & Control
Data/File Security & ControlData/File Security & Control
Data/File Security & Control
 
2012 M&A Deal Terms Study
2012 M&A Deal Terms Study2012 M&A Deal Terms Study
2012 M&A Deal Terms Study
 
Descripcion de nuestros servicios de Inteligencia Comercial
Descripcion de nuestros servicios de Inteligencia ComercialDescripcion de nuestros servicios de Inteligencia Comercial
Descripcion de nuestros servicios de Inteligencia Comercial
 
Ss problemebi i wereteli
Ss problemebi i   wereteliSs problemebi i   wereteli
Ss problemebi i wereteli
 
Understanding Your Organisation
Understanding Your Organisation   Understanding Your Organisation
Understanding Your Organisation
 
Abby Covert – How to make sense of any mess
Abby Covert – How to make sense of any mess Abby Covert – How to make sense of any mess
Abby Covert – How to make sense of any mess
 
1.11.association mining 3
1.11.association mining 31.11.association mining 3
1.11.association mining 3
 
Mobile Cyber Security
Mobile Cyber SecurityMobile Cyber Security
Mobile Cyber Security
 
A practical approach to securing embedded and io t platforms
A practical approach to securing embedded and io t platformsA practical approach to securing embedded and io t platforms
A practical approach to securing embedded and io t platforms
 
File system security
File system securityFile system security
File system security
 
Secure Data Transmission
Secure Data TransmissionSecure Data Transmission
Secure Data Transmission
 
Kgdb kdb modesetting
Kgdb kdb modesettingKgdb kdb modesetting
Kgdb kdb modesetting
 
COMPUTER SECURITY AND OPERATING SYSTEM
COMPUTER SECURITY AND OPERATING SYSTEMCOMPUTER SECURITY AND OPERATING SYSTEM
COMPUTER SECURITY AND OPERATING SYSTEM
 
Operating system security
Operating system securityOperating system security
Operating system security
 
Security in distributed systems
Security in distributed systems Security in distributed systems
Security in distributed systems
 

Similar to Business intelligence

6. Association Rule.pdf
6. Association Rule.pdf6. Association Rule.pdf
6. Association Rule.pdfJyoti Yadav
 
Association rule mining and Apriori algorithm
Association rule mining and Apriori algorithmAssociation rule mining and Apriori algorithm
Association rule mining and Apriori algorithmhina firdaus
 
5Association AnalysisBasic Concepts an.docx
 5Association AnalysisBasic Concepts an.docx 5Association AnalysisBasic Concepts an.docx
5Association AnalysisBasic Concepts an.docxShiraPrater50
 
big data seminar.pptx
big data seminar.pptxbig data seminar.pptx
big data seminar.pptxAmenahAbbood
 
What goes with what (Market Basket Analysis)
What goes with what (Market Basket Analysis)What goes with what (Market Basket Analysis)
What goes with what (Market Basket Analysis)Kumar P
 
2023 Supervised_Learning_Association_Rules
2023 Supervised_Learning_Association_Rules2023 Supervised_Learning_Association_Rules
2023 Supervised_Learning_Association_RulesFEG
 
1. Introduction to Association Rule 2. Frequent Item Set Mining 3. Market Bas...
1. Introduction to Association Rule2. Frequent Item Set Mining3. Market Bas...1. Introduction to Association Rule2. Frequent Item Set Mining3. Market Bas...
1. Introduction to Association Rule 2. Frequent Item Set Mining 3. Market Bas...Surabhi Gosavi
 
Mining Negative Association Rules
Mining Negative Association RulesMining Negative Association Rules
Mining Negative Association RulesIOSR Journals
 
Market Basket Analysis of bakery Shop
Market Basket Analysis of bakery ShopMarket Basket Analysis of bakery Shop
Market Basket Analysis of bakery ShopVarunSahdev2
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket AnalysisNarayan Vyas
 
Association Rule mining
Association Rule miningAssociation Rule mining
Association Rule miningMegha Sharma
 
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...Smarten Augmented Analytics
 
Association Rule Mining || Data Mining
Association Rule Mining || Data MiningAssociation Rule Mining || Data Mining
Association Rule Mining || Data MiningIffat Firozy
 
Lect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmLect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmhktripathy
 
Association and Classification Algorithm
Association and Classification AlgorithmAssociation and Classification Algorithm
Association and Classification AlgorithmMedicaps University
 

Similar to Business intelligence (20)

6. Association Rule.pdf
6. Association Rule.pdf6. Association Rule.pdf
6. Association Rule.pdf
 
Unit 4_ML.pptx
Unit 4_ML.pptxUnit 4_ML.pptx
Unit 4_ML.pptx
 
Association rule mining and Apriori algorithm
Association rule mining and Apriori algorithmAssociation rule mining and Apriori algorithm
Association rule mining and Apriori algorithm
 
BAS 250 Lecture 4
BAS 250 Lecture 4BAS 250 Lecture 4
BAS 250 Lecture 4
 
5Association AnalysisBasic Concepts an.docx
 5Association AnalysisBasic Concepts an.docx 5Association AnalysisBasic Concepts an.docx
5Association AnalysisBasic Concepts an.docx
 
Assignment #3 10.19.14
Assignment #3 10.19.14Assignment #3 10.19.14
Assignment #3 10.19.14
 
big data seminar.pptx
big data seminar.pptxbig data seminar.pptx
big data seminar.pptx
 
What goes with what (Market Basket Analysis)
What goes with what (Market Basket Analysis)What goes with what (Market Basket Analysis)
What goes with what (Market Basket Analysis)
 
2023 Supervised_Learning_Association_Rules
2023 Supervised_Learning_Association_Rules2023 Supervised_Learning_Association_Rules
2023 Supervised_Learning_Association_Rules
 
1. Introduction to Association Rule 2. Frequent Item Set Mining 3. Market Bas...
1. Introduction to Association Rule2. Frequent Item Set Mining3. Market Bas...1. Introduction to Association Rule2. Frequent Item Set Mining3. Market Bas...
1. Introduction to Association Rule 2. Frequent Item Set Mining 3. Market Bas...
 
Association rules
Association rulesAssociation rules
Association rules
 
Mining Negative Association Rules
Mining Negative Association RulesMining Negative Association Rules
Mining Negative Association Rules
 
Market Basket Analysis of bakery Shop
Market Basket Analysis of bakery ShopMarket Basket Analysis of bakery Shop
Market Basket Analysis of bakery Shop
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket Analysis
 
Association Rule mining
Association Rule miningAssociation Rule mining
Association Rule mining
 
G0364347
G0364347G0364347
G0364347
 
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...
What is FP Growth Analysis and How Can a Business Use Frequent Pattern Mining...
 
Association Rule Mining || Data Mining
Association Rule Mining || Data MiningAssociation Rule Mining || Data Mining
Association Rule Mining || Data Mining
 
Lect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmLect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithm
 
Association and Classification Algorithm
Association and Classification AlgorithmAssociation and Classification Algorithm
Association and Classification Algorithm
 

Recently uploaded

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 

Business intelligence

  • 1. BUSINESS INTELLIGENCE & DATA MINING Association Rules- Support; Confidence; Lift; Conviction. 1 Geo S. Mariyan (Master of Computer Science) University of Mumbai.
  • 2. 2. Association Rules: Introduction  Introduction : - Association rules are created by analyzing data for frequent if/then patterns and using the criteria support and confidence to identify the most important relationships. - The purchase of one product when another product is purchased represents an association rules. - Association rules are used in retail stores in marketing advertising floor placements and inventory control. 2
  • 3.  Support is an indication of how frequently the items appear in the database. Confidence indicates the number of times the if/then statements have been found to be true.  In data mining, association rules are useful for analyzing and predicting customer behavior.  They play an important part in shopping basket data analysis, product clustering, catalog design and store layout.  Example: "If a customer buys a dozen eggs, he is 80% likely to also purchase milk." 3
  • 4. Frequent Item Set  The most common approach to finding association rule is to break up problem into two parts: 1)Find Large Itemsets. 2)Generate rules from frequent itemsets.  A set is called frequent if its support is no less than a given absolute minimal support threshold.  An itemset is any subset of the set of all items.  A frequent itemset is an itemset whose number of occurrence is above a threshold. We use the notation L to indicate the complete set of large item sets and l to indicate a specific large itemsets.  The original motivation for searching frequent sets came from the need to analyse so called supermarket transaction data, that is, to examine customer behaviour in terms of the purchased products. 4
  • 5. 5
  • 6. 6
  • 10. Algorithm to Generate Association Rules: In this algorithm we use a function support , which returns the support for the input itemset. 10
  • 11. Example Table1.1 Sample data to IllustrateAssociation Rule A database in which an association rule is to be found in viewed as a set of tuples , where each tuple contains a set of items. For example, a tuple could be {Bread,Jelly, Peanut,Butter} which consists of this three item. Table 1.1 is used throughout this topic to illustrate different algorithms. Here, there are five transaction and five items. 11
  • 13. Support of All Sets of Items Support: This says how popular an itemset is, as measured by the proportion of transactions in which an itemset appears. In Table 1 below, the support of {apple} is 4 out of 8, or 50%. Itemsets can also contain multiple items. For instance, the support of {apple, beer, rice} is 2 out of 8, or 25%. 13
  • 14. Confidence Every association rule has a support and a confidence. An association rule is of the form: X => Y  X => Y: if someone buys X, he also buys Y The confidence is the conditional probability that, given X present in a transition , Y will also be present. Confidence measure, by definition: Confidence(X=>Y) equals support(X,Y) / support(X) 14
  • 15. Support and Confidence for Some association Rule 15 This says how likely item Y is purchased when item X is purchased, expressed as {X -> Y}. This is measured by the proportion of transactions with item X, in which item Y also appears.
  • 17. 17 This says how likely item Y is purchased when item X is purchased, while controlling for how popular item Y is. In Table 1, the lift of {apple -> beer} is 1, which implies no. association between items. A lift value greater than 1 means that item Y is likely to be bought if item X is bought, while a value less than 1 means that item Y is unlikely to be bought if item X is bought.
  • 20. 20
  • 21. Confidence or Support :  The confidence or Support (a) for a association rule X=> Y is the ratio of the number of transaction that contain X U Y to the transaction that contain X. The selection of association rule is based on these two values as describe in the definition of the association rule problem in definition. Confidence measure the Support of the rule where as supports measures how often it should occur in the database. 21
  • 22. 22
  • 23. 23
  • 24. 24
  • 25. 25