Professional Documents
Culture Documents
Introduction to
Advanced Analytics - Theory and
Methods
Association Rules
2
Association Rules
Association Rules is another unsupervised learning
method. There is no “prediction” performed but is used
to discover relationships , find similarities among large
sets of data items.
The example questions are :
- Which of my products tend to be purchased together?
- What will other people who are like this product tend
to buy/watch or click on for other products we may
have to offer?
3
Association Rules
• rules show how frequently the item set occurs in a
transaction.
• Discover "interesting" relationships among
variables in a large database
Rules of the form “If X is observed, then Y is
also observed"
The definition of "interesting“ varies with the
algorithm used for discovery
4
- Association Rules being most common technique used
in market basket analysis, that focus on point-of-sale (p-
o-s) transaction data
- 3 types of market basket data (p-o-s data)
* Customers
* Orders (basic purchase data)
* Items (merchandise or goods/services purchased)
-AR can be automatically generated
- AR represent patterns in the data without a specified
target variable
5
Rule Induction: Sequential Covering
Algorithm
•Steps:
Rules are learned one at a time
Each time a rule is learned, the
tuples covered by the rules are
removed
Repeat the process on the
remaining tuples until termination
condition.
6
Sequential Covering Algorithm
Examples covered
by Rule 2
Examples covered
Examples covered
by Rule 3
by Rule 1
Data items
7
How to generating Association
Rules?
Using IF-THEN Rules for Classification
• Represent the knowledge in the form of IF-THEN rules
R: IF age = youth AND student = yes
9
Traditional rules VS. Association
rules
• Traditional rules usually limit a consequent of a rule
to a single attribute.
10
Example
12
Possible associations include the following:
14
Rule Confidence
Given a rule of the form “If A then B”, rule
confidence is the conditional probability that B is
true when A is known to be true.