SlideShare a Scribd company logo
1 of 19
Frequent Itemset Pattern &
Apriori Principle
Srijana Bhusal (072/BEX/440)
Sunidhi Amatya (072/BEX/443)
Madhusudan Mainali (072/BEX/449)
Anil Kumar Sah (072/BEX/450)
Frequent Itemsets
Itemset : A collection of one or more items
Example: {Milk, Bread, Diaper}
k-itemset : An itemset that contains k items
Support count (σ):Frequency of occurrence of
an itemset
E.g. σ({Milk, Bread,Diaper}) = 2
Support:Fraction of transactions that contain an itemset
E.g. s({Milk, Bread, Diaper}) = 2/5
Fig: Transactions of items
Support(s) = (Transactions containing (Milk, Bread, Diaper))/(Total Transactions)
Here,
s({Milk, Bread, Diaper}) = 2/5
Frequent pattern: a pattern (a set of items, subsequences, substructures,
etc.) that occurs frequently in a data set
Confidence
• Confidence refers to the likelihood that an item B is also bought if
item A is bought. It can be calculated by finding the number of
transactions where A and B are bought together, divided by total
number of transactions where A is bought.
• It is a conditional probability.
• Mathematically, it can be represented as:
Confidence(A→B) = (Transactions containing both (A and
B))/(Transactions containing A)
Candidate Generation & Test
• Apriori property: Any subset of a frequent itemset must also
be frequent
• A transaction containing {milk, bread, diaper} also contains
{milk, diaper}
• {beer, diaper, bread} is frequent then,{beer, diaper} must
also be frequent
• In other words, any superset of an infrequent itemset must
also be infrequent – No superset of any infrequent itemset
should be generated or tested
• Frequent Itemset: All the sets which contain the item with the minimum
support (denoted by 𝐿𝑖 for 𝑖 𝑡ℎ itemset).
• Join Operation: To find L k , a set of candidate k-itemsets is generated by
joining Lk-1 with itself.
The Apriori Algorithm
• Apriori Algorithm is one of the basic and famous approach used in mining
frequent patterns.
• Apriori uses a "bottom up" approach, where frequent subsets are
extended one item at a time (a step known as candidate generation, and
groups of candidates are tested against the data.
The Apriori Algorithm
• Apriori is designed to operate on database containing transactions
(for example, collections of items bought by customers, or details of a
website frequentation).
• There are three major components of Apriori algorithm:
• Support
• Confidence
• Lift
Already talk about support and confidence
lift• Lift(A -> B) refers to the increase in the ratio of sale of B when A is
sold. Lift(A –> B) can be calculated by dividing Confidence(A -> B)
divided by Support(B)
Mathematcally,
Lift(A->B)=(confidence(A->B))/ )=(support(B))
• Apriori-Pruning Principal
“If there is any item set which is infrequent, its superset should not be
generated or tested.”
This simply means if A is infrequent we can avoid checking A,B as a
frequent item set.
Generating Association Rules from Frequent
Itemsets
• Let minimum confidence threshold is , say 70%.
• In previous example,We have ,L3={B,C,E}
• The resulting association rules are shown below, each listed with its
confidence.
R1: B^C ->E
Confidence = s{B,C,E}/occurance of{B,C} = 2/2= 100% So,(R1 is SELECTED)
R2: B^E ->C
Confidence = s{B,C,E}/occurance of{B,E}=2/3=66.66%
R3: C^E ->B
Confidence = s{B,C,E}/occurance of{C,E}=2/2=100% so,(R3 is selected)
Similarly, we get
R4:B->C^E
Confidence = s{B,C,E}/occurance of{B}=2/3=66.66%
R5:C->B^E
Confidence = s{B,C,E}/occurance of{C}=2/3=66.66%
R5:E->B^C
Confidence = s{B,C,E}/occurance of{E}=2/3=66.66%
LIMITATIONS
• Apriori algorithm can be very slow and the bottleneck is candidate
generation.
For example,
if the transaction DB has 10^4 frequent 1-itemsets, they will generate
10^7 candidate 2-itemsets even after employing the downward closure.
• To compute those with sup more than min sup, the database need to
be scanned at every level. It needs (n +1 ) scans, where n is the length
of the longest pattern.
Frequent itemset  pattern & apriori principle (1)
Frequent itemset  pattern & apriori principle (1)
Frequent itemset  pattern & apriori principle (1)
Frequent itemset  pattern & apriori principle (1)
Frequent itemset  pattern & apriori principle (1)
Frequent itemset  pattern & apriori principle (1)

More Related Content

What's hot

What's hot (20)

Latent Semantic Indexing For Information Retrieval
Latent Semantic Indexing For Information RetrievalLatent Semantic Indexing For Information Retrieval
Latent Semantic Indexing For Information Retrieval
 
NAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIERNAIVE BAYES CLASSIFIER
NAIVE BAYES CLASSIFIER
 
Apriori Algorithm
Apriori AlgorithmApriori Algorithm
Apriori Algorithm
 
Scaling and Normalization
Scaling and NormalizationScaling and Normalization
Scaling and Normalization
 
Logistic Regression in R | Machine Learning Algorithms | Data Science Trainin...
Logistic Regression in R | Machine Learning Algorithms | Data Science Trainin...Logistic Regression in R | Machine Learning Algorithms | Data Science Trainin...
Logistic Regression in R | Machine Learning Algorithms | Data Science Trainin...
 
Apriori algorithm
Apriori algorithmApriori algorithm
Apriori algorithm
 
Association rule mining and Apriori algorithm
Association rule mining and Apriori algorithmAssociation rule mining and Apriori algorithm
Association rule mining and Apriori algorithm
 
ML - Multiple Linear Regression
ML - Multiple Linear RegressionML - Multiple Linear Regression
ML - Multiple Linear Regression
 
Lect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithmLect6 Association rule & Apriori algorithm
Lect6 Association rule & Apriori algorithm
 
Naive Bayes Classifier
Naive Bayes ClassifierNaive Bayes Classifier
Naive Bayes Classifier
 
Classification in data mining
Classification in data mining Classification in data mining
Classification in data mining
 
Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?Cross-validation Tutorial: What, how and which?
Cross-validation Tutorial: What, how and which?
 
Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)Machine Learning lecture4(logistic regression)
Machine Learning lecture4(logistic regression)
 
DATA PREPROCESSING AND DATA CLEANSING
DATA PREPROCESSING AND DATA CLEANSINGDATA PREPROCESSING AND DATA CLEANSING
DATA PREPROCESSING AND DATA CLEANSING
 
Python - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) ParametreleriPython - Rastgele Orman(Random Forest) Parametreleri
Python - Rastgele Orman(Random Forest) Parametreleri
 
Lect7 Association analysis to correlation analysis
Lect7 Association analysis to correlation analysisLect7 Association analysis to correlation analysis
Lect7 Association analysis to correlation analysis
 
Sequential Pattern Mining and GSP
Sequential Pattern Mining and GSPSequential Pattern Mining and GSP
Sequential Pattern Mining and GSP
 
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
Data Mining: Concepts and Techniques chapter 07 : Advanced Frequent Pattern M...
 
Fp growth algorithm
Fp growth algorithmFp growth algorithm
Fp growth algorithm
 
Association rule mining.pptx
Association rule mining.pptxAssociation rule mining.pptx
Association rule mining.pptx
 

Similar to Frequent itemset pattern & apriori principle (1)

Similar to Frequent itemset pattern & apriori principle (1) (20)

AssociationRule.pdf
AssociationRule.pdfAssociationRule.pdf
AssociationRule.pdf
 
Data mining techniques unit III
Data mining techniques unit IIIData mining techniques unit III
Data mining techniques unit III
 
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 rule mining
Association rule miningAssociation rule mining
Association rule mining
 
Association 04.03.14
Association   04.03.14Association   04.03.14
Association 04.03.14
 
apriori.pptx
apriori.pptxapriori.pptx
apriori.pptx
 
Rules of data mining
Rules of data miningRules of data mining
Rules of data mining
 
Market Basket Analysis
Market Basket AnalysisMarket Basket Analysis
Market Basket Analysis
 
Association Analysis in Data Mining
Association Analysis in Data MiningAssociation Analysis in Data Mining
Association Analysis in Data Mining
 
Association rules
Association rulesAssociation rules
Association rules
 
Association rules by arpit_sharma
Association rules by arpit_sharmaAssociation rules by arpit_sharma
Association rules by arpit_sharma
 
BAS 250 Lecture 4
BAS 250 Lecture 4BAS 250 Lecture 4
BAS 250 Lecture 4
 
The comparative study of apriori and FP-growth algorithm
The comparative study of apriori and FP-growth algorithmThe comparative study of apriori and FP-growth algorithm
The comparative study of apriori and FP-growth algorithm
 
MODULE 5 _ Mining frequent patterns and associations.pptx
MODULE 5 _ Mining frequent patterns and associations.pptxMODULE 5 _ Mining frequent patterns and associations.pptx
MODULE 5 _ Mining frequent patterns and associations.pptx
 
Apriori Algorithm.pptx
Apriori Algorithm.pptxApriori Algorithm.pptx
Apriori Algorithm.pptx
 
Frequent Pattern Analysis, Apriori and FP Growth Algorithm
Frequent Pattern Analysis, Apriori and FP Growth AlgorithmFrequent Pattern Analysis, Apriori and FP Growth Algorithm
Frequent Pattern Analysis, Apriori and FP Growth Algorithm
 
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...
 
Mining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association RulesMining Frequent Patterns And Association Rules
Mining Frequent Patterns And Association Rules
 
ASSOCIATION Rule plus MArket basket Analysis.pptx
ASSOCIATION Rule plus MArket basket Analysis.pptxASSOCIATION Rule plus MArket basket Analysis.pptx
ASSOCIATION Rule plus MArket basket Analysis.pptx
 
Mining Association Rules in Large Database
Mining Association Rules in Large DatabaseMining Association Rules in Large Database
Mining Association Rules in Large Database
 

Recently uploaded

原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
pwgnohujw
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
acoha1
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
23050636
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Valters Lauzums
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
fztigerwe
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
pwgnohujw
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
yulianti213969
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
yulianti213969
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
dq9vz1isj
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
great91
 
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
ju0dztxtn
 

Recently uploaded (20)

Predictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting TechniquesPredictive Precipitation: Advanced Rain Forecasting Techniques
Predictive Precipitation: Advanced Rain Forecasting Techniques
 
Bios of leading Astrologers & Researchers
Bios of leading Astrologers & ResearchersBios of leading Astrologers & Researchers
Bios of leading Astrologers & Researchers
 
社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction社内勉強会資料_Object Recognition as Next Token Prediction
社内勉強会資料_Object Recognition as Next Token Prediction
 
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor NetworksSensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
Sensing the Future: Anomaly Detection and Event Prediction in Sensor Networks
 
The Significance of Transliteration Enhancing
The Significance of Transliteration EnhancingThe Significance of Transliteration Enhancing
The Significance of Transliteration Enhancing
 
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
原件一样(UWO毕业证书)西安大略大学毕业证成绩单留信学历认证
 
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(UPenn毕业证书)宾夕法尼亚大学毕业证成绩单本科硕士学位证留信学历认证
 
Displacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second DerivativesDisplacement, Velocity, Acceleration, and Second Derivatives
Displacement, Velocity, Acceleration, and Second Derivatives
 
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
Data Analytics for Digital Marketing Lecture for Advanced Digital & Social Me...
 
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
如何办理哥伦比亚大学毕业证(Columbia毕业证)成绩单原版一比一
 
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
Identify Customer Segments to Create Customer Offers for Each Segment - Appli...
 
原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证原件一样伦敦国王学院毕业证成绩单留信学历认证
原件一样伦敦国王学院毕业证成绩单留信学历认证
 
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
obat aborsi Tarakan wa 081336238223 jual obat aborsi cytotec asli di Tarakan9...
 
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam DunksNOAM AAUG Adobe Summit 2024: Summit Slam Dunks
NOAM AAUG Adobe Summit 2024: Summit Slam Dunks
 
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
obat aborsi Bontang wa 081336238223 jual obat aborsi cytotec asli di Bontang6...
 
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
1:1原版定制伦敦政治经济学院毕业证(LSE毕业证)成绩单学位证书留信学历认证
 
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...Genuine love spell caster )! ,+27834335081)   Ex lover back permanently in At...
Genuine love spell caster )! ,+27834335081) Ex lover back permanently in At...
 
edited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdfedited gordis ebook sixth edition david d.pdf
edited gordis ebook sixth edition david d.pdf
 
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
如何办理英国卡迪夫大学毕业证(Cardiff毕业证书)成绩单留信学历认证
 
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
Data Visualization Exploring and Explaining with Data 1st Edition by Camm sol...
 

Frequent itemset pattern & apriori principle (1)

  • 1. Frequent Itemset Pattern & Apriori Principle Srijana Bhusal (072/BEX/440) Sunidhi Amatya (072/BEX/443) Madhusudan Mainali (072/BEX/449) Anil Kumar Sah (072/BEX/450)
  • 2. Frequent Itemsets Itemset : A collection of one or more items Example: {Milk, Bread, Diaper} k-itemset : An itemset that contains k items Support count (σ):Frequency of occurrence of an itemset E.g. σ({Milk, Bread,Diaper}) = 2 Support:Fraction of transactions that contain an itemset E.g. s({Milk, Bread, Diaper}) = 2/5 Fig: Transactions of items
  • 3. Support(s) = (Transactions containing (Milk, Bread, Diaper))/(Total Transactions) Here, s({Milk, Bread, Diaper}) = 2/5 Frequent pattern: a pattern (a set of items, subsequences, substructures, etc.) that occurs frequently in a data set
  • 4. Confidence • Confidence refers to the likelihood that an item B is also bought if item A is bought. It can be calculated by finding the number of transactions where A and B are bought together, divided by total number of transactions where A is bought. • It is a conditional probability. • Mathematically, it can be represented as: Confidence(A→B) = (Transactions containing both (A and B))/(Transactions containing A)
  • 5. Candidate Generation & Test • Apriori property: Any subset of a frequent itemset must also be frequent • A transaction containing {milk, bread, diaper} also contains {milk, diaper} • {beer, diaper, bread} is frequent then,{beer, diaper} must also be frequent • In other words, any superset of an infrequent itemset must also be infrequent – No superset of any infrequent itemset should be generated or tested
  • 6. • Frequent Itemset: All the sets which contain the item with the minimum support (denoted by 𝐿𝑖 for 𝑖 𝑡ℎ itemset). • Join Operation: To find L k , a set of candidate k-itemsets is generated by joining Lk-1 with itself. The Apriori Algorithm • Apriori Algorithm is one of the basic and famous approach used in mining frequent patterns. • Apriori uses a "bottom up" approach, where frequent subsets are extended one item at a time (a step known as candidate generation, and groups of candidates are tested against the data.
  • 7. The Apriori Algorithm • Apriori is designed to operate on database containing transactions (for example, collections of items bought by customers, or details of a website frequentation). • There are three major components of Apriori algorithm: • Support • Confidence • Lift Already talk about support and confidence
  • 8. lift• Lift(A -> B) refers to the increase in the ratio of sale of B when A is sold. Lift(A –> B) can be calculated by dividing Confidence(A -> B) divided by Support(B) Mathematcally, Lift(A->B)=(confidence(A->B))/ )=(support(B)) • Apriori-Pruning Principal “If there is any item set which is infrequent, its superset should not be generated or tested.” This simply means if A is infrequent we can avoid checking A,B as a frequent item set.
  • 9.
  • 10.
  • 11. Generating Association Rules from Frequent Itemsets • Let minimum confidence threshold is , say 70%. • In previous example,We have ,L3={B,C,E} • The resulting association rules are shown below, each listed with its confidence. R1: B^C ->E Confidence = s{B,C,E}/occurance of{B,C} = 2/2= 100% So,(R1 is SELECTED) R2: B^E ->C Confidence = s{B,C,E}/occurance of{B,E}=2/3=66.66% R3: C^E ->B Confidence = s{B,C,E}/occurance of{C,E}=2/2=100% so,(R3 is selected)
  • 12. Similarly, we get R4:B->C^E Confidence = s{B,C,E}/occurance of{B}=2/3=66.66% R5:C->B^E Confidence = s{B,C,E}/occurance of{C}=2/3=66.66% R5:E->B^C Confidence = s{B,C,E}/occurance of{E}=2/3=66.66%
  • 13. LIMITATIONS • Apriori algorithm can be very slow and the bottleneck is candidate generation. For example, if the transaction DB has 10^4 frequent 1-itemsets, they will generate 10^7 candidate 2-itemsets even after employing the downward closure. • To compute those with sup more than min sup, the database need to be scanned at every level. It needs (n +1 ) scans, where n is the length of the longest pattern.