Association Rule
Association Rule
Learning Objectives
After studying this module, you will be able to:
1. Understand the concept of frequent pattern mining and how it Is
used;
2. Know different mining procedures to discover interesting associations
and correlations;
Lesson 1: Market Basket Analysis
Rule Form:
Example 1:
[0.5%, 60%]
[1%,75%]
Example 2:
The store has recorded the following transactions over a certain period:
Step 3: Interpretation
- Customers who buy bread are highly likely to buy milk and vice
versa (75% confidence).
(75% confidence).
(50% confidence).
(50% confidence).
(66.67% confidence).
These insights can help the store in various ways, such as optimizing
product placement, running targeted promotions, and improving inventory
management.
Apriori says:
Example:
Transaction Items
1 A, B, C
2 A, B, D, E
3 A, C, E
4 B, D, E
5 C, E
Item Support
A 3
B 3
C 3
D 2
E 3
Candidate 2-itemsets: {A, B}, {A, C}, {A, E}, {B, C},
{B, E}, {C, E}
Pruned Candidate 2-itemsets: {A, B}, {A, C}, {A, E}, {B, C},
{B, E}, {C, E}
Item Support
{A, B} 2
{A, C} 2
{A, E} 2
{B, C} 1
{B, E} 1
{C, E} 2
Item Support
{A, B,C} 1
{A, C, E} 1
ASSESSMENT TASK
A. Consider the following dataset and we will find frequent itemsets and
generate association rules for them.
Transaction Items
ID
T1 I1, I2, I5
T2 I2, I4
T3 I2, I3
T4 I1, I2, I4
T5 I1, I3
T6 I2, I3
T7 I1, I3
T8 I1, I2, I3, I5
T9 I1, I2, I3
Textbooks / References
Jiawei Han and Micheline Kamber. (2006). “Data Mining: Concepts and