Market Basket Analysis Using Association Rules

Apriori Algorithm

  • 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

--

--

--

Data Science Enthusiast — For more information check out my LinkedIn page here: www.linkedin.com/in/berkayihsandeniz

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What do we (not) know about Domain-Driven Design?

In collaboration with Rishi Singhal, Mehul Jani & Ashmita Kapoor

INVESTIGATING MISSING MIGRANTS

What is new in Geopandas 0.70?

How Learning posterior probability can help you stay out of trouble(AI Series)

Things you need to do before taking Machine Learning or Data Science course

Nepal Earthquake Damage Grade Modeling

Workflow management system and Intermediate States

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Berkay

Berkay

Data Science Enthusiast — For more information check out my LinkedIn page here: www.linkedin.com/in/berkayihsandeniz

More from Medium

Customer, Sales & Demand Analytics with SAP Analytics Cloud (SAC)

Predicting Diamond Prices

The perfect internship for people who want to work as Data Analyst- Analyzing Quantium Analytics…

Exploring Supply Chain Dataset