Skip to content

Sales forecasting done on Corporación Favorita dataset using XGBoost and linear, ridge and lasso regression

Notifications You must be signed in to change notification settings

girmax/ProductDemandForecast

 
 

Repository files navigation

ProductDemandForecast

Two different scripts for modeling the Corporación Favorita dataset:

Top3ProductsMonthlyForecast.R

The sales of three products that are among the most sold are modeled using linear regression, ridge regression and XGBoost, and monthly predictions are made and plotted.

Variable importances are also plotted for the three products using these three different models.

Interestingly the linear and XGBoost models use lagged sales as their most important predictors, but the ridge models do not.

pred_vs_act var_imp

ProductDemandForecast.r

Sales forecasting done on each product-store pair using lasso regression

Includes a function for plotting predictions and actuals. Results of the models are below.

Pred_vs_act R-squared P-values

About

Sales forecasting done on Corporación Favorita dataset using XGBoost and linear, ridge and lasso regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%