Analyze and predict sales for a fast food restaurant using linear regression and K-Means clustering to enhance inventory and sales strategies.
- Data Preprocessing: Clean and prepare sales data.
- Visualization: Insights on orders by day, time, and customer demographics.
- Customer Segmentation: Cluster customers based on purchasing behavior.
- Sales Prediction: Predict item sales using linear regression.
- Source: Fast Food Sales Dataset
- Key Columns:
order_id
: Unique identifier for each orderdate
: Date of the orderitem_name
: Name of the food itemitem_type
: Type of item (e.g., Fastfood, Beverages)item_price
: Price of the itemquantity
: Quantity soldtransaction_amount
: Total transaction amounttransaction_type
: Type of transaction (e.g., Cash, Online)gender
: Gender of the customertime_of_sale
: Time when the order was placed
Install the following libraries:
pip install pandas numpy matplotlib seaborn scikit-learn statsmodels