Skip to content

Retail Sales Forecasting Dashboard is a Flask-based web application that predicts future sales and optimizes inventory using Prophet and ARIMA models. It offers store-wise performance insights, trend analysis, interactive forecasting charts, and smart inventory recommendations. With dashboards for sales history, store analytics, KPIs, and 12-week.

Notifications You must be signed in to change notification settings

Pragyan2004/Retail-Sales-Forecasting-Dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

7 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›๏ธ Retail Sales Forecasting Dashboard

A comprehensive web application for retail sales forecasting and inventory optimization using machine learning models.


๐Ÿ“Š Overview

This application provides retail businesses with powerful sales forecasting capabilities using time series analysis and machine learning.
It helps optimize inventory management, identify sales trends, and make data-driven decisions through an intuitive Flask-based web interface.


โœจ Features

๐Ÿ  Dashboard Overview

  • Key performance indicators and metrics
  • Store distribution analytics
  • Recent sales performance tracking
  • Quick access to all features
Screenshot 2025-10-23 190634 Screenshot 2025-10-23 190702

๐Ÿช Store Analysis

  • Store type distribution visualization
  • Size analysis and statistics
  • Performance metrics by store type
  • Comparative analytics
Screenshot 2025-10-23 190644

๐Ÿ“ˆ Sales Trends

  • Historical sales trend visualization
  • Store type comparison over time
  • Monthly seasonal patterns
  • Interactive time series charts
Screenshot 2025-10-23 190655 Screenshot 2025-10-23 190713

๐Ÿ”ฎ Sales Forecasting

  • 12-week sales predictions using Prophet and ARIMA models
  • Confidence interval visualization
  • Model performance comparison
  • Interactive forecast charts

๐Ÿ“ฆ Inventory Recommendations

  • Optimal inventory level calculations
  • Safety stock and reorder point recommendations
  • Seasonal adjustment factors
  • Store-type specific strategies

๐Ÿ› ๏ธ Technology Stack

Backend

  • Flask โ€“ Web framework
  • Pandas โ€“ Data manipulation
  • NumPy โ€“ Numerical computing
  • Matplotlib โ€“ Data visualization

Machine Learning

  • Prophet โ€“ Time series forecasting
  • ARIMA โ€“ Statistical forecasting model
  • Scikit-learn โ€“ Model evaluation metrics

Frontend

  • Bootstrap 5 โ€“ Responsive UI framework
  • Chart.js โ€“ Interactive charts
  • Font Awesome โ€“ Icons

๐Ÿ“‹ Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

Prepare Data Files

Ensure you have the following files in the project root:

stores.csv โ€“ Store information (provided)

(Optional) Pre-trained model files from Jupyter notebook

๐Ÿš€ Installation

Clone the Repository

git clone https://github.com/pragyan2004/retail-sales-forecasting.git
cd retail-sales-forecasting

Prepare Data Files

Ensure you have the following files in the project root:

stores.csv โ€“ Store information (provided)

(Optional) Pre-trained model files from Jupyter notebook

๐ŸŽฏ Usage

1. Start the Application

python app.py

2. Access the Dashboard

Open your browser and go to:

http://localhost:5000

3. Navigate Through Pages

Home โ€“ Dashboard overview with key metrics

Stores โ€“ Store distribution and analysis

Sales Trends โ€“ Historical sales patterns

Forecast โ€“ Future sales predictions

Inventory โ€“ Stock optimization recommendations


๐Ÿ“Š Data Processing Pipeline

Data Loading & Preprocessing

Load store information from CSV

Generate synthetic sales data (if needed)

Handle missing values and validation

Time Series Analysis

Weekly aggregation of sales

Seasonal decomposition

Trend identification

Stationarity testing

Model Training

Prophet and ARIMA models

Evaluate with MAE, RMSE, MAPE

Forecasting & Visualization

12-week predictions

Confidence intervals

Interactive charts

๐Ÿง  Machine Learning Models

Prophet Model

Handles seasonality and holidays

Robust to missing data

Automatic changepoint detection

ARIMA Model

Statistical time series analysis

Handles trend and seasonality

Configurable parameters (p, d, q)

Model Evaluation Metrics

MAE โ€“ Mean Absolute Error

RMSE โ€“ Root Mean Square Error

MAPE โ€“ Mean Absolute Percentage Error


๐Ÿ“ˆ Business Insights

Inventory Optimization

Safety stock and reorder point recommendations

Seasonal adjustments

Store-type strategies

Sales Predictions

Weekly forecasts

Confidence intervals

Trend and seasonality insights

Store Performance

Type-based analytics

Size correlation analysis

Performance benchmarking

Growth opportunities

About

Retail Sales Forecasting Dashboard is a Flask-based web application that predicts future sales and optimizes inventory using Prophet and ARIMA models. It offers store-wise performance insights, trend analysis, interactive forecasting charts, and smart inventory recommendations. With dashboards for sales history, store analytics, KPIs, and 12-week.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published