1. Introduction
What is the Appriori algorithm used for? The main thing is to solve a problem like this: if a customer buys a beer, does he still buy diapers?
The core of the theory:
A subset of frequent itemsets is still a frequent project set, and a superset of a non-frequent item set is a non-frequent project set. This theory has been applied as a classical data mining theory.
Theorem (Appriori attribute 1).
If the project set X is a frequent project set, then all of its non-empty-empty sets are frequent project sets.
Theorem (Appriori attribute 2).
If the project set X is a non-frequent project set, all of its superset are non-frequent project sets.
2, an example to illustrate the Appriori algorithm
Title: The database has 5 transactions. Set min_sup=60%,min_conf=80%.
(1) Use the Apriori algorithm to find all frequent itemsets.
(2) List Two strong association rules.
Solution: (1) Determine the minimum thing support degree count is 5*60%=3.
(2) Determine the minimum confidence level of 80%.
A. There are {e,k},{e,o},{k,o},{e},{k},{o} S1 for the non-empty set of frequent itemsets l1={e,k,o},l1, which can be associated with the following rules:
E∧k->o cf=3/4=75%
E∧o->k cf=3/3=100%
K∧o->e cf=3/3=100%
E->k∧o cf=3/4=75%
K->e∧o cf=3/5=60%
O->e∧k cf=3/3=100%
The Association rules for the final output are:
E∧o->k cf=3/3=100%
K∧o->e cf=3/3=100%
O->e∧k cf=3/3=100%
B. For frequent project set {E,m,o}.
3. Word Document Download
(1)
Original Joe Chael
Original address: http://blog.csdn.net/qingdujun/article/details/46586721
Appriori algorithm of ten algorithms for data mining