ML Report
ML Report
Introduction
1
1.1. Problem Statement 1
1.2. Objectives
2
Methodology 3
2
3 Solutions 6
CHAPTER 1
INTRODUCTION
• Market Basket Analysis (MBA) is a data mining technique used to understand the
purchase behavior of customers by identifying products that are frequently bought
together.
• It helps retailers and e-commerce platforms discover hidden patterns in transaction
data, enabling data-driven business decisions.
• The technique is based on the principle that if customers buy a certain group of
items, they are likely to buy another group of items as well.
• Example: A customer buying bread and butter may also purchase milk.
Recognizing such patterns allows businesses to recommend products effectively.
• MBA is widely used to:
• Optimize product placements in stores.
• Design effective bundle offers and cross-selling strategies.
• Run targeted promotions to boost sales.
1.1PROBLEM STATEMENT
A retail store collects a significant amount of transaction data through its Point-of-Sale
(POS) systems, but currently lacks insight into the relationships between products that
customers frequently purchase together. This gap limits the store’s ability to make data-
driven decisions that could enhance customer experience and boost sales.
The primary goal is to analyze this transaction data to uncover patterns and associations
among different products. By identifying frequently bought item combinations, the store
aims to improve various aspects of its business operations. These include creating effective
product bundles, optimizing shelf arrangements, and designing targeted promotional offers.
Through the application of Market Basket Analysis, the store seeks to convert raw
transactional data into actionable insights that will support strategic marketing,
merchandising, and inventory planning decisions.
1
“Market basket analysis”
1.2 OBJECTIVES
2
“Market basket analysis”
CHAPTER 2
METHODOLOGY
System architecture:
3
“Market basket analysis”
Features used:
TRAINING PROCESS:
Although Market Basket Analysis is unsupervised learning, there is still a "training-like"
phase where patterns are learned from data:
4
“Market basket analysis”
Testing/Evaluation:
While there's no "test set" like in supervised ML, rule evaluation is done using statistical
metrics:
• Support:
Frequency of the itemset in all transactions.
Example: {milk, bread} in 100 of 1,000 transactions → Support = 10%
• Confidence:
Conditional probability of Y given X.
Example: {bread} → {butter} appears in 70% of bread transactions → Confidence
= 0.7
• Lift:
Measures the strength of a rule beyond chance.
Formula: Lift = Confidence / (Support of RHS)
5
“Market basket analysis”
CHAPTER 3
SOLUTION
6. Market Segmentation
• Analyze different segments (e.g., weekday vs. weekend shoppers) and tailor
strategies.
o Offer custom bundles or promotions depending on customer behavior
patterns.
6
“Market basket analysis”
CHAPTER 4
RESULTS AND FUTURE ENHANCEMENTS
4.1 RESULTS:
7
“Market basket analysis”
CHAPTER 5
CHALLENGES AND CONCLUSION
5.1 CHALLENGES
• When using one-hot encoding, the resulting matrix is often sparse (mostly zeros),
leading to high memory usage and lower efficiency.
• The algorithm often produced a large volume of rules, many of which were redundant
or not actionable.
5.2 CONCLUSION
Market Basket Analysis is a powerful unsupervised data mining technique that reveals
hidden relationships between products in customer transactions. By applying algorithms like
Apriori and FP-Growth, it becomes possible to extract frequent itemsets and association
rules that support business strategies such as product bundling, targeted promotions, and
store layout optimization.
This project demonstrated how analyzing purchase patterns can provide actionable insights
that lead to increased sales, improved customer satisfaction, and efficient inventory
management. Despite certain limitations and challenges, MBA remains an essential tool in
the retail and e-commerce domains.
8
“Market basket analysis”
With future enhancements such as real-time analysis, integration with customer profiling,
and more advanced algorithms, Market Basket Analysis can become even more impactful in
driving intelligent business decisions.