You are on page 1of 9

Association Rule Mining

Large retailers employ market basket analysis and association rule mining as important methods to find
relationships between products. It operates by searching for sets of items that commonly appear together
in transactions. Stated differently, it enables retailers to determine the connections between the products
that customers purchase.
Association Rules are designed to detect strong rules found in transaction data using metrics of
interestingness, based on the concept of strong rules. They are commonly used to analyze retail basket or
transaction data.

Details of the dataset


The collection contains 38765 rows containing customer purchase orders from food retailers. Market
Basket Analysis can be used to analyze these orders and develop association rules using algorithms such
as the Apriori Algorithm.

An example of Association Rules


Assume there are 100 customers
10 of them bought milk, 8 bought butter and 6 bought both of them.
bought milk => bought butter
support = P(Milk & Butter) = 6/100 = 0.06
confidence = support/P(Butter) = 0.06/0.08 = 0.75
lift = confidence/P(Milk) = 0.75/0.10 = 7.5

Code and Outputs

You might also like