Git Product home page Git Product logo

project_2's Introduction

Project 2

FireSale

Retail, Machine Learning, and the Power of Sales

How to predict sales and quanitfy results using machine learning .

Premise

We have been hired by a Wal-Mart competitor to determine the best sales strategy and pricing for in-store tolietry projects. So by running the data provided to us through machine learning (ARIMA, LTSM, SARIMA, SVR) we will be able to provide an answer on what items sell best win, what items are most effected by sales promotions and the best way to allocate resources.

DATA

Data Origin

  • Data provided by an E-commerce company.

Data Included

Years Type of Data
2019-2021 Sales Data
2019-2020 Promotion Campaign Data
  • Data compiled from 5 Major Retailers in the United States.

Cleaning Data

  • Data condensed into 9 categories
  • Acne, Bath, Body Wash, Hair, Lotion, Makeup, Shaving, Sunscreen, Tanner
  • Removed 2021 Sales Data as we did not have corresponding promotional data to use with it.
  • Combined Sales Data and Promotional Data into one .csv file. e
  • Further Data Cleaning such as changing column names and transposing was accomplished in our program.

Finalised Data: Sales & Promotional Data 2019/20

Process

  • Decompose the data in order to detect the trends in it. See if it is additive or mutiplicative.
  • Used Three Main Types of Machine Learning
    • ARIMA
    • LTSM
    • SVR
  • ARIMA is used to see the "change since last time." Since it has a moving average the predictions for it will run a bit smoother and likely closely match the actual sales.
  • LTSM is the "longest" of our machine learning that we used. The one that sees the biggest picture. While ARIMA takes a snapshot we used LTSM to give us an idea of any greater trends there might be.
  • SVR is used to try to establish if there is any link between a specific week of the year and sales in any of our three ideas.
  • In our models we kept to 6 as our window and ran 10 Epochs when building the LSTM models. After experimentation we felt this gave us the best results.

Analysis

AcneSales

  • The Sales graph here shows the breadth of our data. All three of the graphs show the same basic pattern of dropping massively during the lockdown, bouncing back up higher then settling down.

LotionScatter

  • Lotion is our best looking example of a trend in scatter, with it we can see why it has greater than 80% in Seasonality and is our best looking of the SVR predictor.

AcneArima

  • As seen here, Arima predicted sales follows the actual sales pretty closely.

LotionPromo

  • Lotion is the best example of how promotions work. The bulk of the red "no-promo" is on the left side of the graph, smaller sales and the blue "promo" area populates the right side of the graph.

AcneSVR

  • We rain SVR to see if there was any relation between the sales and any specific week. There did not appear to be any relation to specific weeks on the sales

LotionLTSM

  • All three of the LTSM models predicted that the sales would be consistetenly higher than what it was, likely due to the normal data from 2019/early 2020 and pre-Covid and the massive drop in March 2020 being so outside the normal realm that LTSM did not want to fully commit to the new info.

GIFs of Data & Dashboard

  • Place to put Dashboard/GIFs whenever we design it.

SalesData

ScatterPlot

ArimaGif

PromtionalData

LSTM Data

SVR Data

Conclusion

Program

  • The Code worked to our expectations. While some data had to be cleaned properly to make sure that the Machine Learning" parts were fed good data everything held up and all the different types of machine learning we ran the info through painted the same general picture.
  • We believe that it would be easy to scale the program up to a larger size, or plug and play with any sort of information that you have.

Results

  • All three of the items that we closely studied were affected by the COVID-19 Lockdowns of 2020.
  • The drastic drop in sales during the COVID-19 lockdown did affect our models, as we can see with the LSTM the predicted sales were consistently above the actual sales, but both sales did follow closely on the same trend lines.
  • ARIMA model followed the actual sales the closest in the prediction mode.
  • There is no seasonality with Acne or Makeup products, there is slight seasonality with Lotion.
  • Promotions were the most effective for Lotion and not very effective for Makeup.
  • Even with Lotion having more seasonality than the other you still cannot know for certain what level of sales there will be in a specific week of the year.

Project Worked on By

project_2's People

Contributors

crusadinggroundhog avatar benmccright avatar jfrog242 avatar wil-bro0824 avatar

Stargazers

Hansel Joaquim D'souza avatar

Watchers

 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.