Giter Club home page Giter Club logo

sales-forecasting's Introduction

Sales Forecasting

Problem Statement

Rossmann is a European drug distributor which operates over 3,000 drug stores across seven European countries. Since a lot of drugs come with a short shelf life, that is, they do not have a long expiry date, it becomes imperative for Rossmann to accurately forecast sales at their individual stores. Currently, the forecasting is taken care of by the store managers who are tasked with forecasting daily sales for the next six weeks.

As expected, store sales are influenced by many factors, including promotional campaigns, competition, state holidays, seasonality, and locality.

With thousands of individual managers predicting sales based on their unique circumstances and intuitions, the accuracy of the forecasts is quite varied. To overcome this problem, the company has decided to build a forecasting model to forecast the daily sales for the next six weeks.

Note - Since the company is just embarking on this project, the scope has been kept to nine key stores across Europe. The stores are key for the company keeping in mind the revenue and historical prestige associated with them. These stores are numbered - 1,3,8,9,13,25,29,31 and 46.

Model Building Approach

  • Data Loading

  • Exploratory data analysis (EDA)

    • Merge the datasets.
    • Filter nine key stores data.
    • Create Derived Metrics
    • Perform basic sanity checks.
    • Remove outliers.
    • Visualise the sales data for every store.
  • Create User Define Function(UDF) and perform preprocessing of data before model building.

  • Model Building for all 9 stores

    • Visualise Trend, Seasonality, and Residuals for stores.
    • Perform Adfuller Test to check the stationarity of the sales data.
    • Perform data Difference if time series data is not stationary.
    • Perform Johansen Test to check cointegration between two variales.
    • Split the data into Train and Test.
    • Build ARIMA Model.
    • Build SARIMA MODEL.
    • Build SARIMAX Model.
    • Build VARMAX Model.
    • Perform Model Evaluation to chek which is the best model from the above is predicting the sales more accurately.

sales-forecasting's People

Contributors

kshitij-raj avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

abhisrvstv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.