AITeky Learn

AiTeky Original Interactive Learning & Practice Advanced

Forecasting at scale: thousands of series, hierarchies and honest uncertainty

Forecast hundreds of products with one global model against one model each, make store, region and total forecasts agree, track a drifting trend with a Kalman filter, handle lumpy spare-parts demand, and turn forecasts and their ranges into stock decisions.

The time series course taught you to forecast one series well. A company never has one. A retailer has 200,000 products in 600 stores; a bank forecasts cash for 15,000 ATMs; a utility forecasts load for every feeder. At that scale new questions appear that no single-series method answers. Is it better to fit one model per product or one model for all of them? What do you do when the forecast for the whole country does not equal the sum of the forecasts for its states? How do you forecast a spare part that sells once a month? How do you know whether the effort beat a simple rule? And what do you tell the person who must decide how many to order, when the forecast is a number and the future is a range?

This course answers those questions with code you write yourself, so you can see each method work. You compare local and global models and learn when each wins; you make a hierarchy of forecasts add up with reconciliation; you track a changing trend with a Kalman filter built from a few lines of linear algebra, that also copes with missing weeks; you forecast intermittent demand with Croston's method and see why the usual error measure rewards a forecast of zero; you run a proper backtest and measure forecast value added; and you convert forecasts and their prediction intervals into an order quantity with the newsvendor rule.

All the data are simulated with a fixed random seed: 200 products over three years (40% launched recently), 12 stores in 4 regions, a drifting weekly series, and 80 spare parts. Because we know how the data were made, we can check each method against the truth. The prices, costs and service levels are assumptions flagged in the lessons. Real series are messier, so use the lessons for method and measure your own.

You need the time series course and the machine learning course; the statistics course helps with the intervals.

  • Learn lessons explain one idea at a time and let you compute it.
  • Industry ready lessons decide and plan. Each ends with the interview questions that go with it.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 50 min Free sample πŸ”’ AiTeky Pass Many series: one model each, or one for all? Forecast 200 products for 12 weeks with a seasonal naive rule, with a small regression fitted to each product, and with one boosted-tree model trained on all products at once on size-free features, then compare by WAPE for long-history and newly launched products to see when each approach wins.
  2. 02 50 min πŸ”’ AiTeky Pass Hierarchies: making store, region and total forecasts agree Forecast 12 stores, their 4 regions and the total separately, show that the forecasts do not add up, then reconcile them with bottom-up, top-down, ordinary least squares and variance-weighted least squares, and test each over nine forecast dates at each level of the hierarchy.
  3. 03 50 min πŸ”’ AiTeky Pass A Kalman filter for a drifting trend, with missing weeks Build a local-linear-trend state-space model with a Kalman filter in a few lines of numpy, fit its three noise levels by maximum likelihood, forecast 12 weeks with honest ranges, show how the range widens over a data outage, and compare with Holt's exponential smoothing over five forecast dates.
  4. 04 50 min πŸ”’ AiTeky Pass Intermittent demand: spare parts, Croston and the error measure that cheats Simulate 80 spare parts that sell in only a fifth of the weeks, show that a forecast of zero beats every real method on mean absolute error, compare simple smoothing, Croston's method and its bias-corrected version by bias and RMSE, and turn a forecast into stock with a bootstrap of the lead-time demand against a normal approximation.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 05 55 min πŸ”’ AiTeky Pass On the job: a backtest that tells the truth, and forecast value added Run a rolling-origin backtest over three forecast dates for four forecasting rules, compare them with the seasonal naive benchmark as forecast value added, split the results by history length and by product volume, build a rule that picks the method by history, and write the recommendation.
  2. 06 55 min πŸ”’ AiTeky Pass On the job: from a forecast and its range to an order quantity Turn the hybrid forecaster's past errors into prediction intervals by product volume, check that the 80% range really contains 80% of outcomes, price an unsold unit against a lost sale with the newsvendor rule, compare ordering the forecast, a fixed buffer and the cost-based quantile on 200 products, and write the recommendation.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in