BDA LabReport-9
BDA LabReport-9
Lab Report - 9
Introduction
Apriori Algorithm
The Apriori Algorithm is a simple method used to find items that are
often bought together in shopping data. It looks for patterns in
transactions to find groups of items that appear frequently.
What is Support?
For example, the algorithm might show that people often buy "Milk
and Bread" together.
Association Rules
Parts of a Rule:
Visualization
Scatter plots are used to show the results. They make it easy to spot
the best rules with high support and confidence.
2. Making a Dataset
5. Finding Rules
6. Showing Results
7. Making a Chart
2. StandardScaler
3. Elbow Method
The Elbow Method helps you find the right number of groups
(clusters).
2. Create a Dataset
3. Select Features
We only use two columns, Annual Income and Spending Score, for
clustering because these are the most relevant.
4. Normalize Features
6. Apply K-Means
Key Takeaways:
1. Standardization: Ensures that income and spending score
contribute equally to clustering.
2. Elbow Method: Helps pick the best number of clusters.
3. K-Means: Groups customers based on their income and
spending.
4. Visualization: Shows how well customers are grouped.