Market Basket Analysis Using Python
Market Basket Analysis Using Python
Python
Market Basket Analysis using Python is a project focused on uncovering shopping patterns within retail transaction
data. It utilizes Python's data science toolkit to extract, process, and analyze data, uncovering associations between
different products bought together.
2 Data Characteristics
Cover how the data was gathered, its characteristics, and preprocessing steps like cleaning and
transformation for analysis readiness.
3 Preprocessing Steps
Cover how the data was gathered, its characteristics, and preprocessing steps like cleaning and
transformation for analysis readiness.
Methodology
Apriori Algorithm Association Rules Data Science Toolkit
Utilization of the Apriori Generation of association rules Python libraries (Pandas, Plotly,
algorithm for finding frequent to understand product affinities. etc.) used in the process.
item sets.
Python libraries (Pandas, Plotly,
Python libraries (Pandas, Plotly, etc.) used in the process.
etc.) used in the process.
Analysis and Findings
1 Antecedents 2 Consequents
These are the items that are considered These are the items that tend to be
as the starting point or “if” part of the purchased along with the antecedents or
association rule. the “then” part of the association rule.
3 Support
Support measures how frequently a particular combination of items appears in the dataset.
Patterns and Trends
The confidence levels in both directions are around 28% and 30%, suggesting a moderate
likelihood that purchasing one will result in purchasing the other.
2 Lift Values
The lift values exceeding 1 imply a strong positive association between these items.
Similar patterns are observed with other item pairs like 'Apples' and 'Butter', 'Apples' and 'Cereal',
and 'Apples' and 'Cheese'.
3 Strategic Decision-Making
These findings are crucial for strategic decision-making in product placement and promotional
activities.