First of all, if you are not familiar with the concept of Market Basket Analysis (MBA), Association Rules or Affinity Analysis and related metrics such as Support, Confidence and Lift, please read this article first.
Here is how we can do it in Python. We will look at two examples-
Data used for this example can be found here Retail_Data.csv
3 thoughts on “Market Basket Analysis or Association Rules or Affinity Analysis or Apriori Algorithm”
Pingback: Learn Data Science using Python Step by Step | RP's Blog on data science
This is nice to know few points.
I need to know detailed case study of affinity analysis in python
Hi Senthil:Here is a real world casestudy. Hope this is helpful