An open API service indexing awesome lists of open source software.

https://github.com/tuni56/retail_transaction_analysis

Ever wondered why some products are frequently bought together? Using the Apriori algorithm, I analyzed real-world retail transactions to uncover hidden shopping patterns and enhance product recommendations.
https://github.com/tuni56/retail_transaction_analysis

apriori-algorithm machine-learning-algorithms python streamlit

Last synced: 8 months ago
JSON representation

Ever wondered why some products are frequently bought together? Using the Apriori algorithm, I analyzed real-world retail transactions to uncover hidden shopping patterns and enhance product recommendations.

Awesome Lists containing this project

README

          

# 🛍️ Retail Market Basket Analysis with Apriori

## 📌 Overview
Discover purchasing patterns and optimize product recommendations using the **Apriori algorithm**! This project analyzes retail transactions to identify frequently bought-together items and generate personalized suggestions for customers.

## 🎯 Objectives
- Extract valuable **associations** between products.
- Identify **top-selling items** and trends.
- Create an **interactive dashboard** for visualizing insights.
- Provide **personalized product recommendations**.

## 📂 Dataset
We use the **Online Retail Dataset**, which contains real-world transactions from a UK-based retailer. It includes:
✔️ Transaction IDs
✔️ Products Purchased
✔️ Customer Information
✔️ Purchase Date & Payment Method
✔️ Discounts & Promotions

## 🚀 Tech Stack
- **Python** 🐍
- **Pandas** for data processing 📊
- **Mlxtend** for Apriori algorithm 🛒
- **Plotly** & **Seaborn** for visualization 📈
- **Streamlit** for an interactive dashboard ⚡

## 📊 Key Insights
✅ **Top 10 Best-Selling Products**
✅ **Product Associations** (e.g., "Customers who buy A also buy B")
✅ **Seasonal Shopping Trends**
✅ **Personalized Product Recommendations**

## 🏗️ How to Run the Project
### 1️⃣ Install Dependencies
```bash
pip install -r requirements.txt
```

### 2️⃣ Run Streamlit Dashboard
```bash
streamlit run app.py
```

### 3️⃣ Explore the Insights!
The dashboard will open in your browser, allowing you to analyze shopping trends and recommendations interactively.

## 💡 Future Improvements
- Implement **Deep Learning** for enhanced recommendations 🤖
- Integrate with **E-commerce APIs** for real-time data 🌍
- Deploy the dashboard as a web app 🚀

## 🙌 Contributing
Want to improve this project? Fork it, create a branch, and submit a PR! 🤝

## 📬 Contact
📧 **Email:** tunidev56@gmail.com
🔗 **LinkedIn:** https://linkedin.com/in/rociobaigorria
📂 **Portfolio:** https://tuni56.netlify.app/

---

⭐ **If you like this project, don't forget to give it a star!** ⭐