This project demonstrates demand forecasting for retail products using the "Historical Product Demand" dataset. The workflow covers data cleaning, aggregation, visualization, ARIMA modeling, and forecast evaluation.
- Source: Kaggle - Product Demand Forecasting
- File:
Historical Product Demand.csv - Fields:
Product_CodeWarehouseProduct_CategoryDateOrder_Demand
- Clone or download this repository.
- Open
demand_forecasting.ipynbin Jupyter Notebook or VS Code. - Run all cells in order.
Required libraries:pandas,numpy,matplotlib,statsmodels.
To install dependencies: pip install pandas numpy matplotlib statsmodels
- Data Loading: Read and preview the dataset.
- Data Cleaning: Handle missing values and convert data types.
- Aggregation: Aggregate demand by date and resample to weekly totals.
- Visualization: Plot trends in daily and weekly demand.
- Forecasting: Fit an ARIMA model to the training data.
- Evaluation: Forecast and compare to actual demand for the test period.
- The ARIMA model provides a baseline forecast for weekly demand.
- The model captures overall trends but may miss sudden spikes or drops.
- Further improvements could include using advanced models or more granular features.
- Nitin Nandan
- Internship Project for CodeClause