Google ScholarResearchGateORCIDLinkedIn
Home / IJ Artifact Lab / BizTech Tools / Demand Forecast Workbench
BizTech Tools · Time-series forecasting

Demand Forecast Workbench

What demand should we plan for in the coming periods, which forecasting method has actually been most accurate on our own history, and how uncertain is the forecast?

BizTech ToolsTime-series forecastingIntermediate

Inputs

Results

Problem

What it answers

What demand should we plan for in the coming periods, which forecasting method has actually been most accurate on our own history, and how uncertain is the forecast?

The default inputs are a worked example; change any value to see the model respond.

How to use it

  • Paste demand history (one value per line, or period,value).
  • Set the season length, hold-out periods and forecast horizon.
  • Compare methods on the hold-out MASE, then use the chosen method's forecast and approximate range for planning.
Mathematical model

The model

\text{SES: }\ \ell_t=\alpha y_t+(1-\alpha)\ell_{t-1},\qquad \hat y_{t+h}=\ell_t
\text{Holt: }\ \ell_t=\alpha y_t+(1-\alpha)(\ell_{t-1}+b_{t-1}),\ \ b_t=\beta(\ell_t-\ell_{t-1})+(1-\beta)b_{t-1},\ \ \hat y_{t+h}=\ell_t+hb_t
\text{Holt–Winters: }\ \hat y_{t+h}=\ell_t+hb_t+s_{t+h-m\lceil h/m\rceil}
\mathrm{MASE}=\frac{\frac1H\sum_{t}|y_t-\hat y_t|}{\frac{1}{T-m}\sum_{t>m}|y_t-y_{t-m}|}
\sigma_h^2=\sigma^2\Big[1+(h-1)\big(\alpha^2+\alpha\beta h+\tfrac{\beta^2h(2h-1)}{6}\big)+\gamma q\big(2\alpha+\gamma+\beta m(q+1)\big)\Big],\ q=\lfloor\tfrac{h-1}{m}\rfloor,\ \beta=\alpha\beta^{*},\ \gamma=\gamma^{*}(1-\alpha)\ \ (\text{Holt: }\gamma=0;\ \text{SES: }\beta=\gamma=0;\ \text{naive: }\sigma_h^2=h\sigma^2)
y_t
demand in period t
\ell_t, b_t, s_t
level, trend and seasonal components
\alpha,\beta,\gamma
smoothing parameters, chosen by minimising one-step error on the training data
m
season length (e.g. 12 for monthly data, 0 for none)
H
hold-out periods used for testing
\mathrm{MASE}
mean absolute scaled error: below 1 beats the naive benchmark
When and where

When to use it

  • Monthly sales and operations planning.
  • Setting inventory targets for items with trend or seasonality.
  • Teaching forecasting and honest out-of-sample evaluation.
Assumptions

Limits to keep in mind

  • Only past demand is used: promotions, price changes, holidays (e.g. Ramadan, Eid) and new products must be handled separately.
  • The ≈95% range is ŷ ± 1.96 σ̂_h, where σ̂_h is the h-step error SD implied by the chosen method's own model (random walk, seasonal random walk, or ETS state-space form of exponential smoothing) scaled by the one-step residual SD; it assumes future errors behave like past ones and ignores parameter-estimation uncertainty.
  • Sales lost to stockouts understate true demand; correct the history first.
  • Holt–Winters uses the first two seasons to initialise level, trend and seasonals, so its in-sample one-step errors (used to choose α, β, γ and the range width) start from the third season.
From mathematical calculator to industrial artifact

What should be investigated in practice?

A forecasting artifact earns trust only when it is tested on the business's own data and fits its planning process:

  • Demand history: SKU-by-location sales or orders at the planning granularity (weekly or monthly), at least two years for seasonality, with returns and cancellations handled.
  • Data cleaning: stockout-censored periods, one-off bulk orders, data-entry errors and changes in product codes or pack sizes.
  • Calendar and drivers: Ramadan and Eid shifts in the Gregorian calendar, promotions, price changes, weather and distributor stocking that a pure time-series model cannot see.
  • Planning use: the decision the forecast feeds (production, purchasing, staffing), its lead time and the horizon and granularity actually needed.
  • Evaluation design: rolling-origin back-tests over several periods, MASE and bias by product segment, and comparison against the planners' current forecasts.
  • Intermittent and new items: methods such as Croston for sparse demand and analogue products for launches.
  • Adoption and value: forecast value added over the current process, planner override tracking, and impact on inventory and service levels in a pilot.
Validation evidence

Maturity: Educational prototype

Reproducible worked example: the default inputs above. Reload the page to restore them; the same inputs always give the same results.

Verified: 4 automated tests check the calculations against hand-computed or independently specified values and against invalid inputs:

  • demand forecasting methods
  • a flat demand history is ranked by MAE, not an undefined MASE
  • forecast-error SDs follow each method's model and match state-space simulation
  • Holt–Winters in-sample errors exclude the initialisation seasons

Not yet: Not independently reviewed, and not validated on a firm's or market's own data for operational decisions.

Educational tool. Results depend on the inputs and assumptions above and are not financial, investment or professional advice. Calculations run in your browser.