Customer Market Basket Analysis using Apriori and Fpgrowth algorithms

Customer Market Basket Analysis using Apriori and Fpgrowth algorithms

In this NLP AI application, we build the core conversational engine for a chatbot. We use the popular NLTK text classification library to achieve this.


Each project comes with 2-5 hours of micro-videos explaining the solution.

Code & Dataset

Get access to 50+ solved projects with iPython notebooks and datasets.

Project Experience

Add project experience to your Linkedin/Github profiles.

Customer Love

Read All Reviews

Camille St. Omer

Artificial Intelligence Researcher, Quora 'Most Viewed Writer in 'Data Mining'

I came to the platform with no experience and now I am knowledgeable in Machine Learning with Python. No easy thing I must say, the sessions are challenging and go to the depths. I looked at graduate... Read More

Mohamed Yusef Ahmed

Software Developer at Taske

Recently I became interested in Hadoop as I think its a great platform for storing and analyzing large structured and unstructured data sets. The experts did a great job not only explaining the... Read More

What will you learn

Introduction to Market Basket Analysis
Association rules
Parameters of association rules
Apriori algorithm
Fpgrowth algorithm
Exploratory Data Analysis
Univariate analysis
Bivariate analysis
Identifying top selling products & departments
Creating baskets for analysis
Feature engineering
One hot encoding
Difference between apriori and fpgrowth algorithm
Support, lift, confidence in relation to association rules
Comparing time taken to run apriori and fpgrowth algorithms

Project Description

Analysis of historical customer data can highlight if a certain combination of products purchased makes an additional purchase more likely. This is called market basket analysis (also called as MBA). It is a widely used technique to identify the best possible mix of frequently bought products or services. This is also called product association analysis. The set of items a customer buys is referred to as an itemset, and market basket analysis seeks to find relationships between purchases. Market Basket Analysis creates If-Then scenario rules, for example, if item A is purchased then item B is likely to be purchased. The rules are probabilistic in nature or, in other words, they are derived from the frequencies of co-occurrence in the observations. Market Basket analysis is particularly useful for physical retail stores as it can help in planning floor space and product placement amongst many other benefits.

Similar Projects

In this data science project, we will predict internal failures of Bosch using thousands of measurements and tests made for each component along the assembly line.

Given a customer's search query and the returned product in text format, your predictive model needs to tell whether it is what the customer was looking for.

Data Science Project-Predict the car insurance policy a customer buys after receiving a number of quotes.

Curriculum For This Mini Project

Introduction to Market Basket Analysis
Introduction To Association Rules
Loading And Understanding the Dataset
Exploratory Data Analysis
Univariate Analysis
Bivariate Analysis
Creating Order Products
Department wise featured products
Theory About Apriori And Fpgrowth
Filtering And One Hot Encoding
Apriori Algorithm
Deeper Understanding Of Association Rules
General Function Using Apriori Association Rules
Fpgrowth Algorithm
General Function Using Fpgrowth
Comparison Of Apriori And Fpgrowth Conclusion