SlideShare a Scribd company logo
1 of 41
Association
Rule Mining
Understanding
Association
Rules Mining
Concepts
Association Rule Mining
Association rule mining is a
procedure which is meant to find
frequent patterns, correlations,
associations, or causal structures
from datasets found in various
kinds of databases such as
relational databases, transactional
databases, and other forms of data
repositories.
Simply; when this, then also this
Association Rule Mining
Used to identify -
● Frequent Patterns
● Correlations
● Associations
● Causal Structures
where these are applied → movie recommendations, grocery item placements, product recommendations, etc.
Algorithm - Apriori - Metrics
Following three metrics are generally used -
Support: The percentage of transactions that contain all of the items in an item set.
● The higher the support the more frequently the item set occurs.
● Rules with a high support are preferred since they are likely to be applicable to a large number of future transactions.
Confidence: The probability that a transaction that contains the items on the left hand side of the rule also
contains the item on the right hand side.
● The higher the confidence, the greater the likelihood that the item on the right hand side will be purchased or, in other
words, the greater the return rate we can expect for a given rule.
Lift: The probability of all of the items in a rule occurring together divided by the product of the probabilities
of the items on the left and right hand side occurring as if there was no association between them.
● Overall, lift summarizes the strength of association between the products on the left and right hand
side of the rule; the larger the lift the greater the link between the two products.
Apriori - Support
Apriori - Support
Apriori - Confidence
Apriori - Confidence
Apriori - Confidence
Apriori - Confidence
Apriori - Lift
Apriori - Lift
Apriori - Lift
Algorithm
Step 1 Set a minimum & maximum Support and Confidence.
Step 2 Take all the subsets in transactions having higher support than
minimum support.
Step 3 Take all the rules of these subsets having higher confidence than
minimum confidence.
Step 4 Generate other rule assessment measures for the rules.
Step 5 Sort the rules by using an appropriate filter.
Cons → Slow Algorithm as it’s a bottom up approach and makes pair from all
available factors and compute related statistics
Another Example
Other Rule Assessment Measures
● Added Value
● All-confidence
● Casual Confidence
● Casual Support
● Certainty Factor
● Chi-Squared
● Cross-Support Ratio
● Collective Strength
● Confidence
● Conviction
● Cosine
● Coverage
● Descriptive Confirmed Confidence
● Difference of Confidence
● Example & Counter-Example Rate
● Fisher's Exact Test
● Gini Index
● Hyper-Confidence
● Hyper-Lift
● Imbalance Ratio
● Improvement
● Jaccard Coefficient
● J-Measure
● Kappa
● Klosgen
● Kulczynski
● Goodman-Kruskal Lambda
● Laplace Corrected Confidence
● Least Contradiction
● Lerman Similarity
● Leverage
● Lift
● MaxConf
● Mutual Information
● Odds Ratio
● Phi Correlation Coefficient
● Ralambrodrainy Measure
● Relative Linkage Disequilibrium
● Relative Support
● Rule Power Factor
● Sebag-Schoenauer Measure
● Support
● Varying Rates Liaison
● Yule's Q
● Yule's Y
Support, Relative Support
Support:
● Support of a rule is defined as the number of transactions that contain both X and Y.
● Used as a measure of significance of a rule.
Symmetric Measure
Range: [0, INF)
Formula:
Relative Support:
● Relative Support is the fraction of transactions that contain both X and Y.
● ⇒ Empirical Joint Probability of the items comprising the rule.
● Used as a measure of significance of a rule.
Symmetric Measure
Range: [0, 1]
Formula:
Support, Relative Support
Confidence (a.k.a. Strength)
Confidence:
● Confidence of a rule is the conditional probability that a transaction contains the
consequent Y given that it contains the antecedent X.
● Problem with Confidence is that it is sensitive to the frequency of the consequent Y in the
database.
● Caused by the way the confidence is calculated, consequents with higher support will
automatically produce higher confidence values even if there is no association b/w the
items.
Asymmetric Measure
Range: [0, 1]
Formula:
Confidence (a.k.a. Strength)
Lift (a.k.a. Interest)
Lift:
● Lift is defined as the ratio of the observed joint probability of X and Y to the expected joint
probability if they were statistically independent.
● Lift is susceptible to noise in small databases.
● Caused by the way the confidence is calculated, rare itemsets with low counts (low
probability) which by chance occur a few times (or only once) together will produce
enormous lift values.
Symmetric Measure
Range: [0, INF) (1 means independence)
Formula:
Lift (a.k.a. Interest)
Coverage (a.k.a. antecedent support or LHS support)
Coverage:
● Coverage is defined as the relative support of the antecedent X i.e. it is is the fraction of
transactions that contain X.
● ⇒ Empirical Probability of the item X.
● Used as a measure of significance of a rule.
Asymmetric Measure
Range: [0, 1]
Formula:
Difference of Confidence
Difference of Confidence:
● .
● .
● .
Asymmetric Measure
Range: [-1, 1]
Formula:
Certainty Factor (a.k.a. Loevinger)
Certainty Factor:
● It is a measure of variation of the probability that Y is in transaction when only
considering transactions with X.
● An increasing CF means a decrease of the probability that Y is not in a transaction that X
is in. Negative CFs have a similar interpretation.
Asymmetric Measure
Range: [-1, 1] (0 means independence)
Formula:
Leverage
Leverage:
● Leverage measures the difference between the observed and expected joint probability of
XY assuming that X and Y are independent.
● Leverage gives an absolute measure of how surprising a rule is and should be used
together with lift.
● Can be interpreted as gap to independence.
Symmetric Measure
Range: [-1, 1] (0 means independence)
Formula:
Leverage
Rule A→ E may be preferable over the first two because it is simpler and has higher leverage
Jaccard Coefficient (a.k.a. Coherence)
Jaccard Coefficient:
● This coefficient measure the similarity between two sets.
Symmetric Measure
Range: [-1, 1] (0 means independence)
Formula:
Jaccard Coefficient (a.k.a. Coherence)
Contingency Table for X and Y
Conviction
Conviction:
● Conviction measures the expected error of the rule i.e. how often X occurs in a
transaction where Y does not.
● Thus it can be said that it is a measure of the strength of the rule wrt the complement of
the consequent.
● If the joint probability of X!Y is less than that expected under independence of X and !Y,
then conviction is high, and vice versa.
● An alternative to confidence which was found not to capture direction of association s
adequately.
Asymmetric Measure
Range: [0, INF) (1 means independence, rule that always hold have INF)
Formula:
Conviction
Odds Ratio
Odds Ratio:
● It is defined as the odds of finding X in transactions which contain Y divided by the odds
of finding X in transactions which do not contain Y.
● Lift is susceptible to noise in small databases.
● Odds ratios greater than 1 imply higher odds of Y occurring in the presence of X as
opposed to its complement !X , whereas odds smaller than one imply higher odds of Y
occurring with !X.
Symmetric Measure
Range: [0, INF) (1 means independence)
Formula:
Odds Ratio
Mining the patterns to
Develop Rules
Filter Used
(CASE
WHEN Itemset only present on BOTH Side THEN (FLOAT(CriticalClass_oddsRatio) - 0)
WHEN Itemset present on BOTH Side THEN (FLOAT(CriticalClass_oddsRatio) - FLOAT(Gen_oddsRatio))
WHEN Itemset only present on GENERAL Side THEN (0 - FLOAT(Gen_oddsRatio)) END) AS Diff_CriticalClassGen_OddsRatio,
Diff_CriticalClassGen_Conviction,
Diff_CriticalClassGen_Supp,
Diff_CriticalClassGen_Certainty,
*
FROM {
| #Handling INFINITY value
|FROM
| Table
|WHERE
| #viewing entries ONLY present on GEN side OR viewing entries ONLY present on CriticalClass side
}
ORDER BY
#rule_rhs desc,
#rule_lhs desc,
Diff_CriticalClassGen_OddsRatio DESC,
Diff_CriticalClassGen_Conviction DESC,
Diff_CriticalClassGen_Supp DESC,
#Diff_CriticalClassGen_Certainty desc,
Mining Pattern
Step 1: Run the query.
Step 2: Be creative and with some intuition select some item.
Step 3: Modify the query so that it gives pair with selected
item and again be creative and with intuition select some
item.
Using the discovered pair for further increasing the
pattern
Step a: use the discovered pair as lhs part and run the
query on table with increased rule length.
Step b: Be creative and with some intuition select the
next item.
Using the discovered pair for further analyzing
Step a: Use the existing pair to get raw data and
analyze it.
Step b: Use the existing pair to get derived parameter
data and analyze it (also check for existing critical
class signature + location).
Step c: If discovered pair indeed is adequate and is
finding some critical class, use this signature.
- Testing for FP
- If adequate use it for blocking
Rule Developed
Mining the patterns to
Develop Rules
Limitation and Further Work
Issues and Fine tuning
● Issues b/c of the data inconsistency in streaming data
● Modifying data Preprocessing for the itemset
●
● Version on Derived Parameters
Understand Association Rule Mining Concepts & Algorithms

More Related Content

What's hot

Association rule mining
Association rule miningAssociation rule mining
Association rule miningUtkarsh Sharma
 
Introduction to Random Forests by Dr. Adele Cutler
Introduction to Random Forests by Dr. Adele CutlerIntroduction to Random Forests by Dr. Adele Cutler
Introduction to Random Forests by Dr. Adele CutlerSalford Systems
 
Mining Frequent Patterns, Association and Correlations
Mining Frequent Patterns, Association and CorrelationsMining Frequent Patterns, Association and Correlations
Mining Frequent Patterns, Association and CorrelationsJustin Cletus
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methodsKrish_ver2
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERKnoldus Inc.
 
2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classificationKrish_ver2
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision treesKnoldus Inc.
 
Data Mining: Concepts and Techniques (3rd ed.) - Chapter 3 preprocessing
Data Mining:  Concepts and Techniques (3rd ed.)- Chapter 3 preprocessingData Mining:  Concepts and Techniques (3rd ed.)- Chapter 3 preprocessing
Data Mining: Concepts and Techniques (3rd ed.) - Chapter 3 preprocessingSalah Amean
 
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Edureka!
 

What's hot (20)

Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Association rule mining
Association rule miningAssociation rule mining
Association rule mining
 
Bayesian networks
Bayesian networksBayesian networks
Bayesian networks
 
Decision tree
Decision treeDecision tree
Decision tree
 
Introduction to Random Forests by Dr. Adele Cutler
Introduction to Random Forests by Dr. Adele CutlerIntroduction to Random Forests by Dr. Adele Cutler
Introduction to Random Forests by Dr. Adele Cutler
 
Mining Frequent Patterns, Association and Correlations
Mining Frequent Patterns, Association and CorrelationsMining Frequent Patterns, Association and Correlations
Mining Frequent Patterns, Association and Correlations
 
Naive bayes
Naive bayesNaive bayes
Naive bayes
 
Data cleaning-outlier-detection
Data cleaning-outlier-detectionData cleaning-outlier-detection
Data cleaning-outlier-detection
 
Lecture13 - Association Rules
Lecture13 - Association RulesLecture13 - Association Rules
Lecture13 - Association Rules
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
3.2 partitioning methods
3.2 partitioning methods3.2 partitioning methods
3.2 partitioning methods
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
 
2.3 bayesian classification
2.3 bayesian classification2.3 bayesian classification
2.3 bayesian classification
 
Naive Bayes Presentation
Naive Bayes PresentationNaive Bayes Presentation
Naive Bayes Presentation
 
Assosiate rule mining
Assosiate rule miningAssosiate rule mining
Assosiate rule mining
 
Naive Bayes
Naive BayesNaive Bayes
Naive Bayes
 
Machine Learning with Decision trees
Machine Learning with Decision treesMachine Learning with Decision trees
Machine Learning with Decision trees
 
Data Mining: Concepts and Techniques (3rd ed.) - Chapter 3 preprocessing
Data Mining:  Concepts and Techniques (3rd ed.)- Chapter 3 preprocessingData Mining:  Concepts and Techniques (3rd ed.)- Chapter 3 preprocessing
Data Mining: Concepts and Techniques (3rd ed.) - Chapter 3 preprocessing
 
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
Naive Bayes Classifier in Python | Naive Bayes Algorithm | Machine Learning A...
 

Similar to Understand Association Rule Mining Concepts & Algorithms

Mining Negative Association Rules
Mining Negative Association RulesMining Negative Association Rules
Mining Negative Association RulesIOSR Journals
 
Marketing Research-Factor Analysis
Marketing Research-Factor AnalysisMarketing Research-Factor Analysis
Marketing Research-Factor AnalysisArun Gupta
 
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...National Cheng Kung University
 
08 - FACTOR ANALYSIS PPT.pptx
08 - FACTOR ANALYSIS PPT.pptx08 - FACTOR ANALYSIS PPT.pptx
08 - FACTOR ANALYSIS PPT.pptxRishashetty8
 
Factor Analysis - Statistics
Factor Analysis - StatisticsFactor Analysis - Statistics
Factor Analysis - StatisticsThiyagu K
 
Factor analysis
Factor analysis Factor analysis
Factor analysis Nima
 
Iso 9001 consultants uk
Iso 9001 consultants ukIso 9001 consultants uk
Iso 9001 consultants ukjondarita
 
NPTL Machine Learning Week 2.docx
NPTL Machine Learning Week 2.docxNPTL Machine Learning Week 2.docx
NPTL Machine Learning Week 2.docxMr. Moms
 
What is iso 9001 standard
What is iso 9001 standardWhat is iso 9001 standard
What is iso 9001 standardjomjintra
 
How much does iso 9001 cost
How much does iso 9001 costHow much does iso 9001 cost
How much does iso 9001 costjondarita
 
The 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptxThe 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptxChode Amarnath
 
Statistical data handling
Statistical data handling Statistical data handling
Statistical data handling Rohan Jagdale
 
BlueBookAcademy.com - Risk, Return & Diversification Techniques
BlueBookAcademy.com - Risk, Return & Diversification TechniquesBlueBookAcademy.com - Risk, Return & Diversification Techniques
BlueBookAcademy.com - Risk, Return & Diversification Techniquesbluebookacademy
 

Similar to Understand Association Rule Mining Concepts & Algorithms (20)

Assignment #3 10.19.14
Assignment #3 10.19.14Assignment #3 10.19.14
Assignment #3 10.19.14
 
Association rules and frequent pattern growth algorithms
Association rules and frequent pattern growth algorithmsAssociation rules and frequent pattern growth algorithms
Association rules and frequent pattern growth algorithms
 
Factor analysis
Factor analysisFactor analysis
Factor analysis
 
BAS 250 Lecture 4
BAS 250 Lecture 4BAS 250 Lecture 4
BAS 250 Lecture 4
 
Mining Negative Association Rules
Mining Negative Association RulesMining Negative Association Rules
Mining Negative Association Rules
 
Marketing Research-Factor Analysis
Marketing Research-Factor AnalysisMarketing Research-Factor Analysis
Marketing Research-Factor Analysis
 
G0364347
G0364347G0364347
G0364347
 
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...
Association Rule (Data Mining) - Frequent Itemset Generation, Closed Frequent...
 
08 - FACTOR ANALYSIS PPT.pptx
08 - FACTOR ANALYSIS PPT.pptx08 - FACTOR ANALYSIS PPT.pptx
08 - FACTOR ANALYSIS PPT.pptx
 
Factor Analysis - Statistics
Factor Analysis - StatisticsFactor Analysis - Statistics
Factor Analysis - Statistics
 
Unit 4_ML.pptx
Unit 4_ML.pptxUnit 4_ML.pptx
Unit 4_ML.pptx
 
Factor analysis
Factor analysis Factor analysis
Factor analysis
 
Iso 9001 consultants uk
Iso 9001 consultants ukIso 9001 consultants uk
Iso 9001 consultants uk
 
NPTL Machine Learning Week 2.docx
NPTL Machine Learning Week 2.docxNPTL Machine Learning Week 2.docx
NPTL Machine Learning Week 2.docx
 
Priya
PriyaPriya
Priya
 
What is iso 9001 standard
What is iso 9001 standardWhat is iso 9001 standard
What is iso 9001 standard
 
How much does iso 9001 cost
How much does iso 9001 costHow much does iso 9001 cost
How much does iso 9001 cost
 
The 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptxThe 10 Algorithms Machine Learning Engineers Need to Know.pptx
The 10 Algorithms Machine Learning Engineers Need to Know.pptx
 
Statistical data handling
Statistical data handling Statistical data handling
Statistical data handling
 
BlueBookAcademy.com - Risk, Return & Diversification Techniques
BlueBookAcademy.com - Risk, Return & Diversification TechniquesBlueBookAcademy.com - Risk, Return & Diversification Techniques
BlueBookAcademy.com - Risk, Return & Diversification Techniques
 

More from Mohit Rajput

Understanding known _ unknown - known _ unknown
Understanding known _ unknown - known _ unknownUnderstanding known _ unknown - known _ unknown
Understanding known _ unknown - known _ unknownMohit Rajput
 
Algorithms in Reinforcement Learning
Algorithms in Reinforcement LearningAlgorithms in Reinforcement Learning
Algorithms in Reinforcement LearningMohit Rajput
 
Understanding Bagging and Boosting
Understanding Bagging and BoostingUnderstanding Bagging and Boosting
Understanding Bagging and BoostingMohit Rajput
 
Dissertation mid evaluation
Dissertation mid evaluationDissertation mid evaluation
Dissertation mid evaluationMohit Rajput
 
For Seminar - Prospect: Development of continuous CNT path in BCP using sel...
For Seminar - Prospect:  Development of continuous CNT path in BCP using  sel...For Seminar - Prospect:  Development of continuous CNT path in BCP using  sel...
For Seminar - Prospect: Development of continuous CNT path in BCP using sel...Mohit Rajput
 
Mid-Dissertation Work Done Report
Mid-Dissertation Work Done ReportMid-Dissertation Work Done Report
Mid-Dissertation Work Done ReportMohit Rajput
 
Mid-Dissertation Work Report Presentation
Mid-Dissertation Work Report Presentation  Mid-Dissertation Work Report Presentation
Mid-Dissertation Work Report Presentation Mohit Rajput
 
SURA Final report PVDF-CNT
SURA Final report PVDF-CNTSURA Final report PVDF-CNT
SURA Final report PVDF-CNTMohit Rajput
 
R markup code to create Regression Model
R markup code to create Regression ModelR markup code to create Regression Model
R markup code to create Regression ModelMohit Rajput
 
Regression Model for movies
Regression Model for moviesRegression Model for movies
Regression Model for moviesMohit Rajput
 
Presentation- BCP self assembly meshes
Presentation- BCP self assembly meshesPresentation- BCP self assembly meshes
Presentation- BCP self assembly meshesMohit Rajput
 
Presentation- Multilayer block copolymer meshes by orthogonal self-assembly
Presentation- Multilayer block copolymer  meshes by orthogonal self-assemblyPresentation- Multilayer block copolymer  meshes by orthogonal self-assembly
Presentation- Multilayer block copolymer meshes by orthogonal self-assemblyMohit Rajput
 
Cover for report on Biofuels Generation
Cover for report on Biofuels GenerationCover for report on Biofuels Generation
Cover for report on Biofuels GenerationMohit Rajput
 
A Report on Metal Drawing Operations
A Report on Metal Drawing OperationsA Report on Metal Drawing Operations
A Report on Metal Drawing OperationsMohit Rajput
 
A technical report on BioFuels Generation
A technical report on BioFuels GenerationA technical report on BioFuels Generation
A technical report on BioFuels GenerationMohit Rajput
 
Presentation - Bio-fuels Generation
Presentation - Bio-fuels GenerationPresentation - Bio-fuels Generation
Presentation - Bio-fuels GenerationMohit Rajput
 
Status of Education in India by Mohit Rajput
Status of Education in India by Mohit RajputStatus of Education in India by Mohit Rajput
Status of Education in India by Mohit RajputMohit Rajput
 
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...Mohit Rajput
 
Posters for Exhibition
Posters for ExhibitionPosters for Exhibition
Posters for ExhibitionMohit Rajput
 

More from Mohit Rajput (20)

Understanding known _ unknown - known _ unknown
Understanding known _ unknown - known _ unknownUnderstanding known _ unknown - known _ unknown
Understanding known _ unknown - known _ unknown
 
Algorithms in Reinforcement Learning
Algorithms in Reinforcement LearningAlgorithms in Reinforcement Learning
Algorithms in Reinforcement Learning
 
Understanding Bagging and Boosting
Understanding Bagging and BoostingUnderstanding Bagging and Boosting
Understanding Bagging and Boosting
 
Dissertation mid evaluation
Dissertation mid evaluationDissertation mid evaluation
Dissertation mid evaluation
 
For Seminar - Prospect: Development of continuous CNT path in BCP using sel...
For Seminar - Prospect:  Development of continuous CNT path in BCP using  sel...For Seminar - Prospect:  Development of continuous CNT path in BCP using  sel...
For Seminar - Prospect: Development of continuous CNT path in BCP using sel...
 
Mid-Dissertation Work Done Report
Mid-Dissertation Work Done ReportMid-Dissertation Work Done Report
Mid-Dissertation Work Done Report
 
Mid-Dissertation Work Report Presentation
Mid-Dissertation Work Report Presentation  Mid-Dissertation Work Report Presentation
Mid-Dissertation Work Report Presentation
 
Sura ppt final
Sura ppt finalSura ppt final
Sura ppt final
 
SURA Final report PVDF-CNT
SURA Final report PVDF-CNTSURA Final report PVDF-CNT
SURA Final report PVDF-CNT
 
R markup code to create Regression Model
R markup code to create Regression ModelR markup code to create Regression Model
R markup code to create Regression Model
 
Regression Model for movies
Regression Model for moviesRegression Model for movies
Regression Model for movies
 
Presentation- BCP self assembly meshes
Presentation- BCP self assembly meshesPresentation- BCP self assembly meshes
Presentation- BCP self assembly meshes
 
Presentation- Multilayer block copolymer meshes by orthogonal self-assembly
Presentation- Multilayer block copolymer  meshes by orthogonal self-assemblyPresentation- Multilayer block copolymer  meshes by orthogonal self-assembly
Presentation- Multilayer block copolymer meshes by orthogonal self-assembly
 
Cover for report on Biofuels Generation
Cover for report on Biofuels GenerationCover for report on Biofuels Generation
Cover for report on Biofuels Generation
 
A Report on Metal Drawing Operations
A Report on Metal Drawing OperationsA Report on Metal Drawing Operations
A Report on Metal Drawing Operations
 
A technical report on BioFuels Generation
A technical report on BioFuels GenerationA technical report on BioFuels Generation
A technical report on BioFuels Generation
 
Presentation - Bio-fuels Generation
Presentation - Bio-fuels GenerationPresentation - Bio-fuels Generation
Presentation - Bio-fuels Generation
 
Status of Education in India by Mohit Rajput
Status of Education in India by Mohit RajputStatus of Education in India by Mohit Rajput
Status of Education in India by Mohit Rajput
 
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...
Internship Presentation on Characterization of Stainless Steel-Titanium Diffu...
 
Posters for Exhibition
Posters for ExhibitionPosters for Exhibition
Posters for Exhibition
 

Recently uploaded

Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationBoston Institute of Analytics
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/managementakshesh doshi
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computationsit20ad004
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 

Recently uploaded (20)

Data Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health ClassificationData Science Project: Advancements in Fetal Health Classification
Data Science Project: Advancements in Fetal Health Classification
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Spark3's new memory model/management
Spark3's new memory model/managementSpark3's new memory model/management
Spark3's new memory model/management
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
Data Warehouse , Data Cube Computation
Data Warehouse   , Data Cube ComputationData Warehouse   , Data Cube Computation
Data Warehouse , Data Cube Computation
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 

Understand Association Rule Mining Concepts & Algorithms

  • 3. Association Rule Mining Association rule mining is a procedure which is meant to find frequent patterns, correlations, associations, or causal structures from datasets found in various kinds of databases such as relational databases, transactional databases, and other forms of data repositories. Simply; when this, then also this
  • 4. Association Rule Mining Used to identify - ● Frequent Patterns ● Correlations ● Associations ● Causal Structures where these are applied → movie recommendations, grocery item placements, product recommendations, etc.
  • 5. Algorithm - Apriori - Metrics Following three metrics are generally used - Support: The percentage of transactions that contain all of the items in an item set. ● The higher the support the more frequently the item set occurs. ● Rules with a high support are preferred since they are likely to be applicable to a large number of future transactions. Confidence: The probability that a transaction that contains the items on the left hand side of the rule also contains the item on the right hand side. ● The higher the confidence, the greater the likelihood that the item on the right hand side will be purchased or, in other words, the greater the return rate we can expect for a given rule. Lift: The probability of all of the items in a rule occurring together divided by the product of the probabilities of the items on the left and right hand side occurring as if there was no association between them. ● Overall, lift summarizes the strength of association between the products on the left and right hand side of the rule; the larger the lift the greater the link between the two products.
  • 15. Algorithm Step 1 Set a minimum & maximum Support and Confidence. Step 2 Take all the subsets in transactions having higher support than minimum support. Step 3 Take all the rules of these subsets having higher confidence than minimum confidence. Step 4 Generate other rule assessment measures for the rules. Step 5 Sort the rules by using an appropriate filter. Cons → Slow Algorithm as it’s a bottom up approach and makes pair from all available factors and compute related statistics
  • 17. Other Rule Assessment Measures ● Added Value ● All-confidence ● Casual Confidence ● Casual Support ● Certainty Factor ● Chi-Squared ● Cross-Support Ratio ● Collective Strength ● Confidence ● Conviction ● Cosine ● Coverage ● Descriptive Confirmed Confidence ● Difference of Confidence ● Example & Counter-Example Rate ● Fisher's Exact Test ● Gini Index ● Hyper-Confidence ● Hyper-Lift ● Imbalance Ratio ● Improvement ● Jaccard Coefficient ● J-Measure ● Kappa ● Klosgen ● Kulczynski ● Goodman-Kruskal Lambda ● Laplace Corrected Confidence ● Least Contradiction ● Lerman Similarity ● Leverage ● Lift ● MaxConf ● Mutual Information ● Odds Ratio ● Phi Correlation Coefficient ● Ralambrodrainy Measure ● Relative Linkage Disequilibrium ● Relative Support ● Rule Power Factor ● Sebag-Schoenauer Measure ● Support ● Varying Rates Liaison ● Yule's Q ● Yule's Y
  • 18. Support, Relative Support Support: ● Support of a rule is defined as the number of transactions that contain both X and Y. ● Used as a measure of significance of a rule. Symmetric Measure Range: [0, INF) Formula: Relative Support: ● Relative Support is the fraction of transactions that contain both X and Y. ● ⇒ Empirical Joint Probability of the items comprising the rule. ● Used as a measure of significance of a rule. Symmetric Measure Range: [0, 1] Formula:
  • 20. Confidence (a.k.a. Strength) Confidence: ● Confidence of a rule is the conditional probability that a transaction contains the consequent Y given that it contains the antecedent X. ● Problem with Confidence is that it is sensitive to the frequency of the consequent Y in the database. ● Caused by the way the confidence is calculated, consequents with higher support will automatically produce higher confidence values even if there is no association b/w the items. Asymmetric Measure Range: [0, 1] Formula:
  • 22. Lift (a.k.a. Interest) Lift: ● Lift is defined as the ratio of the observed joint probability of X and Y to the expected joint probability if they were statistically independent. ● Lift is susceptible to noise in small databases. ● Caused by the way the confidence is calculated, rare itemsets with low counts (low probability) which by chance occur a few times (or only once) together will produce enormous lift values. Symmetric Measure Range: [0, INF) (1 means independence) Formula:
  • 24. Coverage (a.k.a. antecedent support or LHS support) Coverage: ● Coverage is defined as the relative support of the antecedent X i.e. it is is the fraction of transactions that contain X. ● ⇒ Empirical Probability of the item X. ● Used as a measure of significance of a rule. Asymmetric Measure Range: [0, 1] Formula:
  • 25. Difference of Confidence Difference of Confidence: ● . ● . ● . Asymmetric Measure Range: [-1, 1] Formula:
  • 26. Certainty Factor (a.k.a. Loevinger) Certainty Factor: ● It is a measure of variation of the probability that Y is in transaction when only considering transactions with X. ● An increasing CF means a decrease of the probability that Y is not in a transaction that X is in. Negative CFs have a similar interpretation. Asymmetric Measure Range: [-1, 1] (0 means independence) Formula:
  • 27. Leverage Leverage: ● Leverage measures the difference between the observed and expected joint probability of XY assuming that X and Y are independent. ● Leverage gives an absolute measure of how surprising a rule is and should be used together with lift. ● Can be interpreted as gap to independence. Symmetric Measure Range: [-1, 1] (0 means independence) Formula:
  • 28. Leverage Rule A→ E may be preferable over the first two because it is simpler and has higher leverage
  • 29. Jaccard Coefficient (a.k.a. Coherence) Jaccard Coefficient: ● This coefficient measure the similarity between two sets. Symmetric Measure Range: [-1, 1] (0 means independence) Formula:
  • 32. Conviction Conviction: ● Conviction measures the expected error of the rule i.e. how often X occurs in a transaction where Y does not. ● Thus it can be said that it is a measure of the strength of the rule wrt the complement of the consequent. ● If the joint probability of X!Y is less than that expected under independence of X and !Y, then conviction is high, and vice versa. ● An alternative to confidence which was found not to capture direction of association s adequately. Asymmetric Measure Range: [0, INF) (1 means independence, rule that always hold have INF) Formula:
  • 34. Odds Ratio Odds Ratio: ● It is defined as the odds of finding X in transactions which contain Y divided by the odds of finding X in transactions which do not contain Y. ● Lift is susceptible to noise in small databases. ● Odds ratios greater than 1 imply higher odds of Y occurring in the presence of X as opposed to its complement !X , whereas odds smaller than one imply higher odds of Y occurring with !X. Symmetric Measure Range: [0, INF) (1 means independence) Formula:
  • 36. Mining the patterns to Develop Rules
  • 37. Filter Used (CASE WHEN Itemset only present on BOTH Side THEN (FLOAT(CriticalClass_oddsRatio) - 0) WHEN Itemset present on BOTH Side THEN (FLOAT(CriticalClass_oddsRatio) - FLOAT(Gen_oddsRatio)) WHEN Itemset only present on GENERAL Side THEN (0 - FLOAT(Gen_oddsRatio)) END) AS Diff_CriticalClassGen_OddsRatio, Diff_CriticalClassGen_Conviction, Diff_CriticalClassGen_Supp, Diff_CriticalClassGen_Certainty, * FROM { | #Handling INFINITY value |FROM | Table |WHERE | #viewing entries ONLY present on GEN side OR viewing entries ONLY present on CriticalClass side } ORDER BY #rule_rhs desc, #rule_lhs desc, Diff_CriticalClassGen_OddsRatio DESC, Diff_CriticalClassGen_Conviction DESC, Diff_CriticalClassGen_Supp DESC, #Diff_CriticalClassGen_Certainty desc,
  • 38. Mining Pattern Step 1: Run the query. Step 2: Be creative and with some intuition select some item. Step 3: Modify the query so that it gives pair with selected item and again be creative and with intuition select some item. Using the discovered pair for further increasing the pattern Step a: use the discovered pair as lhs part and run the query on table with increased rule length. Step b: Be creative and with some intuition select the next item. Using the discovered pair for further analyzing Step a: Use the existing pair to get raw data and analyze it. Step b: Use the existing pair to get derived parameter data and analyze it (also check for existing critical class signature + location). Step c: If discovered pair indeed is adequate and is finding some critical class, use this signature. - Testing for FP - If adequate use it for blocking Rule Developed
  • 39. Mining the patterns to Develop Rules Limitation and Further Work
  • 40. Issues and Fine tuning ● Issues b/c of the data inconsistency in streaming data ● Modifying data Preprocessing for the itemset ● ● Version on Derived Parameters