Giter Site home page Giter Site logo

sales_forecasting's Introduction

Sales/Demand forecasting

Dataset

The initial purpose of the dataset was to forecast the total amount of products sold in every shop for the test set. The test set must be created using the train dataset's last month (October) without the target (item_cnt_day). You need to forecast the sales for the shops and products of the resulting dataset for October 2015. This allows you to compare each method's predicted data with actual data. Note that the list of shops and products slightly changes every month. Creating a robust model to handle such situations is part of the challenge.

While keeping the initial purpose in mind, here I am using daily historical sales data to learn time series forecasting methods. Instead of using the test dataset provided ( which does not contain the target data), I am using the last month of the training dataset as the test/validation data for the model.

CSV files

  1. sales_train.csv - the training set. Daily historical data from January 2013 to October 2015.

  2. items.csv - supplemental information about the items/products.

  3. item_categories.csv - supplemental information about the items categories.

  4. shops.csv- supplemental information about the shops.

Data fields

  1. shop_id - unique identifier of a shop
  2. item_id - unique identifier of a product
  3. item_category_id - unique identifier of item category
  4. item_cnt_day - number of products sold. You are predicting a monthly amount of this measure
  5. item_price - current price of an item
  6. date - date in format dd/mm/yyyy
  7. date_block_num - a consecutive month number, used for convenience. January 2013 is 0, February 2013 is 1,..., October 2015 is 33
  8. item_name - name of item ( In Russian)
  9. shop_name - name of shop ( In Russian)
  10. item_category_name - name of item category (In Russian)

Process

  1. Exploratory Data Analysis
  2. Feature Engineering
  3. Post-Feature-Engineering EDA
  4. Prediction accuracy measurement
  5. Forecasting
    1. Moving average
    2. ARIMA
    3. SARIMA
    4. Exponential Smoothing
    5. Regression

Tools and libraries

  • Python / Pandas / Numpy / matplotlib
  • Jupyter-Lab
  • sklearn.metrics
  • statsmodels
  • pmdarima

References

sales_forecasting's People

Contributors

zzzhenya avatar foawziah avatar

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.