Coder Social home page Coder Social logo

jawharjoe / sarima_-sales_forecasting Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 308 KB

An in-depth time series analysis repository containing a Jupyter Notebook that demonstrates the application of the SARIMA model to forecast weekly sales data.

Jupyter Notebook 100.00%

sarima_-sales_forecasting's Introduction

SARIMA_-Sales_Forecasting

An in-depth time series analysis repository containing a Jupyter Notebook that demonstrates the application of the SARIMA model to forecast weekly sales data.

Data Import and Preprocessing

  • Dataset loaded from CSV, containing weekly sales data from 2008 to 2021.
  • Data split into training and testing sets, with 7.5% as test size.

Exploratory Data Analysis

  • Time series plot generated to show sales trend.
  • Augmented Dickey-Fuller test conducted, p-value ~ 1.10e-15, indicating stationarity.

Model Selection

  • Fitted range of SARIMA models to training data.
  • Best model selected based on Akaike Information Criterion (AIC), lowest AIC: 14016.79.

Model Diagnostics

  • Diagnosed using plots of standardized residuals, histogram, normal Q-Q, and correlogram.
  • Residuals are normally distributed, suggesting good fit.

Forecasting

  • Model used to forecast future sales for 52 steps ahead.
  • Forecasted values compared with observed sales, showing close match.

Model Evaluation

  • Performance evaluated using MAPE, MAE, and RMSE:
    • MAPE: 0.4593
    • MAE: 24095.55
    • RMSE: 138524.43

Conclusion

  • SARIMA model effective in forecasting weekly sales.
  • Can be used for future sales predictions, aiding in planning.

sarima_-sales_forecasting's People

Contributors

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