View on GitHub

Predict-Future-Product-Sales

Predict-Future-Product-Sales


Project Overview


About Project

Predicitive models are developed for companies to forecast sales in future which helps them to grow in competitive and sky-rocketing markets. These models aim to forecast sales based on historical trends while taking into account promos, school holidays and state holidays.


Code and Resources used


Web Scraping

Dataset URL: https://www.kaggle.com/c/rossmann-store-sales/data

Historical sales data for 1,115 Rossmann stores. The task is to forecast the “Sales” column for the test set. Note that some stores in the dataset were temporarily closed for refurbishment.

Data fields

Most of the fields are self-explanatory. The following are descriptions for those that aren’t.


Data Cleaning

I made the following changes and created the following variables:


EDA

I looked at the distributions of the data and the value counts for the various categorical variables. Below are a few highlights :


Model Building

Facebook prophet

Prophet is a procedure for forecasting time series data based on an additive model where non-linear trends are fit with yearly, weekly, and daily seasonality, plus holiday effects. It works best with time series that have strong seasonal effects and several seasons of historical data. Prophet is robust to missing data and shifts in the trend, and typically handles outliers well.

Advantages:

Model Prediction

Facebook prophet model for store Id 10 to forecast its sales


Conclusion

This was an interesting study and it’ll be great to analyse the results when I get the actual views. Having said that, Prophet does make the entire forecasting process easy and intuitive and also gives a lot of options. The actual advantage of this model can only be assessed on large datasets but Prophet does enable forecasting a large number and a variety of time series problems — which is truly forecasting at scale.