Coder Social home page Coder Social logo

capstone's Introduction

Capstone

LOGO

Business Overview & Understanding

Business Overview

Fire Maul Tools is a firefighter-owned company serving firefighters, tactical teams, and military personnel worldwide by providing innovative tools that were designed for what they do. The company started by producing handmade firefighting tools such as axes and halligan bars, but since then has expanded their product breadth to include items such as tool lube and grip kits. The grip kits are just what they sound like, it is a fiber tape that comes with a lacing ring system that greatly improves grip on the tools. The item has proved to be very popular and the business owner wants to make sure he is getting the most out of the product while keeping his cost down. That is why Fire Maul Tools has tasked me with forecasting the future demand of the grip kits. This way the company can plan its purchasing and inventory levels more effeciently which will lead to lower costs associated with excessive inventory or stockouts. The business owner has stated that since he is a start-up small business his shop is relatively small and does not have a lot of room to inventory the grip kit materials which are shipped to him by the box on pallets. In the past he has been short on supplies when orders come in, but can not afford to take up excess space by over stocking. By following the Data Science methodology and utilizing time-series machine learning techniques, I plan to accomplish solve this problem and help Fire Maul Tools grow as a company so that they can continue to serve First Responders.


Data Understanding

To complete this task, I have been given a dataset with the needed information that will be used with our models. Again, the standard Data Science methodology will be followed:

  • Obtain the Data
  • Clean the Data
  • Exploration
  • Model
  • Interpret

A look at the distribution of grip kits sold('Qty)by color: Screen Shot 2023-01-29 at 8 36 27 PM

Data Prep

After the data was cleaned and we had a grasp of what the data entailed we began to prepare for the modeling process. I was attempting to be able to predict the average number of units sold per week using the quantity column. After an initial run at it, it was decided to remove the outliers and to split the data into a 80/20 train test set. With the dataset being 5 years long it was easy enough to make the most recent year as the test set. After that the dataset had be entered into datimetimeindex, formatted to W-sat, which sets the dates to weeks beginning on Saturday

Screen Shot 2023-01-29 at 8 53 03 PM

Screen Shot 2023-01-29 at 9 14 12 PM

Models

The method used for the models was based off the SARIMA appendix from Phas3 4. A range of parameters were set for (p,d,q) and (P,D,Q,s) and a SARIMAX grid search was performed to find the optimal paramters. These parameters were fit to the model and then checked that they did not violate assumptions. Screen Shot 2023-01-29 at 9 19 20 PM

After the data was fit we used prediction methods such as 'One-step ahead', 'Dynamic' and 'get_forecast' to visualize and print out predicted values and confidence intervals for 'Qty' which is the number of units sold.

Screen Shot 2023-01-29 at 9 25 02 PM

This method was performed 3 times for the top selling grip kit colors, which were Black, Red, and Blue, these 3 made up over 60% of sales. Therefore there are 3 SARIMA time series models in the notebook.

Evaluation

After the models were run and the forecasting methods compared, it was decided that the 'get_forecast' method produced the best results for all 3 models. Here are visuals that show the predicted average number of units that will be sold each week for the next year, broken down by color.

Screen Shot 2023-01-29 at 9 31 15 PM

The metric used to validate these models was MSE and the get_forecast produced the best results for all 3 models:

Black Model MSE: 6.7

Blue Model MSE: 4.95

Red Model MSE : 4.51

A lot of effort went into this and I hope it can be useful for FireMaul Tools!

Repo Structure

---Jupyter Notebook

---Presentation PDF

---READMe PDF

---Notebook PDF

---READMe

---Numbers CSV(sales sheet)

Contact Info: Brian O'Donnell [email protected]

capstone's People

Contributors

dtonesod1 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.