Skip to content

raffaloffredo/demand_forecasting_with_time_series

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Time series analysis for demand forecasting

PT-BR Clique aqui para Português-BR


About the project

This study aimed to create a machine-learning model to predict the demand for wines in a specialized store for this product. Pandas Profiling was used to generate a report that assisted in the exploratory data analysis. Additionally, feature engineering was applied, resulting in 9 new attributes. The Augmented Dickey-Fuller (ADF) test indicated that the series was non-stationary, and for this reason, the series was transformed into a stationary one using techniques such as applying a log transformation to reduce the magnitude of values, subtracting the 30-period moving average, and differencing. The forecasting was performed with a parameter of 120 days, and the following methods were used: Naive approach, Moving Average, Holt's Linear Trend Model, ARIMA, Prophet, and PyCaret. In the latter, 27 preliminary models were generated, from which the best one was selected to proceed with hyperparameter tuning and data forecasting.

As a result, according to the Mean Absolute Percentage Error (MAPE), the ARIMA model performed the best with an error rate of only 2.33%, followed by Prophet with 2.87% and Holt with 2.90%.


Additional Material

The main results obtained were condensed into an infographic.


Other Projects


Let's Connect

About

Wine demand forecast with Time Series analysis.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published