This repository contains an analysis of monthly sales data using machine learning and big data processing tools.
- Forecast future sales using XGBoost regression
- Visualize trends with 3-month moving averages
- Use PySpark for scalable data preprocessing and transformation
- 3-Month Moving Average: To visualize trends and reduce noise
- XGBoost Regressor: To forecast the next 3 months of sales
- PySpark: For efficient big data preprocessing and table joins
- Matplotlib: For clear, annotated visualization
forecast.py— Full script for preprocessing, modeling, and plottingforecast_xgb_plot.png— Output chart with actual, smoothed, and predicted valuesmonthly_sales.csv— Input datasetSales Forecast - Summary.pdf— Single-page summary of the project
- Python 3.8+
- Libraries:
xgboost,pandas,matplotlib,scikit-learn,pyspark
Install them using:
pip install -r requirements.txtMehmet Ozturk
📅 April 2025