Appriori algorithm of ten algorithms for data mining

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.