Interactive Dashboard · Machine learning

Retail sales forecasting with SARIMA

B.Tech final-year project, 2019 · Retail Predictive Analytics using Machine Learning · four store types · daily sales, Aug 2014 to Jul 2015

Representative data: the original dataset is not in my files, so each store type is simulated with the same structure (trend, a weekly cycle, promotions, a December peak and dirty records). The pipeline is the project's: clean the data, grid-search SARIMA orders by AIC, fit, validate on held-out weeks, check the residuals, then forecast. Every model here is fitted live in your browser.

Store type
Fix missing and noisy values
Model order SARIMA(p,d,q)(P,D,Q)7
Confidence
Validation

Pipeline

Upload, clean, grid search, fit and forecast: the four modules of the web app, run on the selected store.

    Sales and forecast

    • Actual
    • Validation prediction
    • Forecast
    • Confidence band

    Grid search leaderboard

    Weekly cycle

    Average sales on each weekday relative to the 7-day moving average. This is what the seasonal terms (S = 7) learn.

    Trend

    Daily sales with the 28-day centred moving average. Hover for the date.

    • Daily sales
    • 28-day trend

    Autocorrelation

    Residual distribution

    • Standardised residuals
    • N(0,1)

    Sales mix by store type

    Share of the year's sales. Click a slice to switch store.

    Monthly sales by store type

    Stacked area of monthly totals: how the mix moves through the year.

      Model coefficients

      Forecast detail