SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Association rule mining
Association rule miningAssociation rule mining
Association rule miningAcad
 
Association rule mining.pptx
Association rule mining.pptxAssociation rule mining.pptx
Association rule mining.pptxmaha797959
 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Edureka!
 
Classification in data mining
Classification in data mining Classification in data mining
Classification in data mining Sulman Ahmed
 
Data mining: Classification and prediction
Data mining: Classification and predictionData mining: Classification and prediction
Data mining: Classification and predictionDataminingTools Inc
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket AnalysisSandeep Prasad
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalramya marichamy
 
Exploratory data analysis with Python
Exploratory data analysis with PythonExploratory data analysis with Python
Exploratory data analysis with PythonDavis David
 
Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...Simplilearn
 
Apriori algorithm
Apriori algorithm Apriori algorithm
Apriori algorithm DHIVYADEVAKI
 

Tendances (20)

Lecture13 - Association Rules
Lecture13 - Association RulesLecture13 - Association Rules
Lecture13 - Association Rules
 
Association rule mining
Association rule miningAssociation rule mining
Association rule mining
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
Association rule mining.pptx
Association rule mining.pptxAssociation rule mining.pptx
Association rule mining.pptx
 
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
Scikit Learn Tutorial | Machine Learning with Python | Python for Data Scienc...
 
Classification in data mining
Classification in data mining Classification in data mining
Classification in data mining
 
APRIORI ALGORITHM -PPT.pptx
APRIORI ALGORITHM -PPT.pptxAPRIORI ALGORITHM -PPT.pptx
APRIORI ALGORITHM -PPT.pptx
 
Data Preprocessing
Data PreprocessingData Preprocessing
Data Preprocessing
 
3. mining frequent patterns
3. mining frequent patterns3. mining frequent patterns
3. mining frequent patterns
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Data mining: Classification and prediction
Data mining: Classification and predictionData mining: Classification and prediction
Data mining: Classification and prediction
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket Analysis
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactional
 
Data preprocessing
Data preprocessingData preprocessing
Data preprocessing
 
Exploratory data analysis with Python
Exploratory data analysis with PythonExploratory data analysis with Python
Exploratory data analysis with Python
 
Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...Data Science With Python | Python For Data Science | Python Data Science Cour...
Data Science With Python | Python For Data Science | Python Data Science Cour...
 
Machine Learning
Machine LearningMachine Learning
Machine Learning
 
Apriori algorithm
Apriori algorithm Apriori algorithm
Apriori algorithm
 
Fp growth
Fp growthFp growth
Fp growth
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Boston Institute of Analytics
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryJeremy Anderson
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Cathrine Wilhelmsen
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxMike Bennett
 
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...KarteekMane1
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...Dr Arash Najmaei ( Phd., MBA, BSc)
 
Cyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataCyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataTecnoIncentive
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Thomas Poetter
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxHaritikaChhatwal1
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxaleedritatuxx
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPTBoston Institute of Analytics
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingsocarem879
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024Susanna-Assunta Sansone
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxSimranPal17
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsVICTOR MAESTRE RAMIREZ
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Boston Institute of Analytics
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBoston Institute of Analytics
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxTasha Penwell
 

Dernier (20)

Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
Data Analysis Project : Targeting the Right Customers, Presentation on Bank M...
 
Defining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data StoryDefining Constituents, Data Vizzes and Telling a Data Story
Defining Constituents, Data Vizzes and Telling a Data Story
 
Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)Data Factory in Microsoft Fabric (MsBIP #82)
Data Factory in Microsoft Fabric (MsBIP #82)
 
Data Analysis Project: Stroke Prediction
Data Analysis Project: Stroke PredictionData Analysis Project: Stroke Prediction
Data Analysis Project: Stroke Prediction
 
Semantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptxSemantic Shed - Squashing and Squeezing.pptx
Semantic Shed - Squashing and Squeezing.pptx
 
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
wepik-insightful-infographics-a-data-visualization-overview-20240401133220kwr...
 
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
6 Tips for Interpretable Topic Models _ by Nicha Ruchirawat _ Towards Data Sc...
 
Cyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded dataCyber awareness ppt on the recorded data
Cyber awareness ppt on the recorded data
 
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
Minimizing AI Hallucinations/Confabulations and the Path towards AGI with Exa...
 
SMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptxSMOTE and K-Fold Cross Validation-Presentation.pptx
SMOTE and K-Fold Cross Validation-Presentation.pptx
 
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptxmodul pembelajaran robotic Workshop _ by Slidesgo.pptx
modul pembelajaran robotic Workshop _ by Slidesgo.pptx
 
Insurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis ProjectInsurance Churn Prediction Data Analysis Project
Insurance Churn Prediction Data Analysis Project
 
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default  Presentation : Data Analysis Project PPTPredictive Analysis for Loan Default  Presentation : Data Analysis Project PPT
Predictive Analysis for Loan Default Presentation : Data Analysis Project PPT
 
INTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processingINTRODUCTION TO Natural language processing
INTRODUCTION TO Natural language processing
 
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
FAIR, FAIRsharing, FAIR Cookbook and ELIXIR - Sansone SA - Boston 2024
 
What To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptxWhat To Do For World Nature Conservation Day by Slidesgo.pptx
What To Do For World Nature Conservation Day by Slidesgo.pptx
 
Advanced Machine Learning for Business Professionals
Advanced Machine Learning for Business ProfessionalsAdvanced Machine Learning for Business Professionals
Advanced Machine Learning for Business Professionals
 
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
Decoding the Heart: Student Presentation on Heart Attack Prediction with Data...
 
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis ProjectBank Loan Approval Analysis: A Comprehensive Data Analysis Project
Bank Loan Approval Analysis: A Comprehensive Data Analysis Project
 
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptxThe Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
The Power of Data-Driven Storytelling_ Unveiling the Layers of Insight.pptx
 

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