danny22.com

Labs

Forecast Lab

Forecasting problems don't end at the forecast. This course carries each one through to the decision the forecast changes. The goal is not to know many forecasting techniques but to measure how much a forecast improved a decision, and to know what changes with the shape of the problem. The course has a common volume, V00, shared by every problem and one volume per problem, and each volume solves one problem end to end following the common skeleton from Data Culture Lab.

Status
Updated 2026-11-17 KST · 38 of 40 units written. The first volume, V01, has units written from problem finding through operation, and a daily shadow operation has been running on this machine since 2026-11-14. The two looking-back units will be written once shadow records have built up. The next volume is V02 (bike rebalancing between rental stations for the mobility subsidiary)
Size
A 3-unit common volume V00 plus the 37-unit V01, 40 units in all, each a 60 to 90 minute session. V01 includes one volume map and seven part maps. It grows with every new volume
Audience
Practitioners such as analysts, data scientists and engineers. Reading Python is enough. Basic concepts are covered briefly where they are first used, and ML Lab and Stats Lab take them deeper
Cases
Problems from the subsidiaries of the fictional holding company danny22.com. A volume goes only to the subsidiary whose core business is that data, and no problems are invented to spread cases evenly. Anything made up, such as the subsidiaries, people and settlement prices, is always marked as fictional in the material
Data
Each volume uses real public data and fills only the gaps with synthetic data. V01 uses hourly actual demand and official day-ahead forecasts by balancing authority from the U.S. Energy Information Administration (EIA), hourly forecasts from the U.S. National Weather Service (NWS) and historical observed temperatures from NOAA
Access
forecast-lab.danny22.com is open to signed-in readers. Get in touch to request access
Language
The course material is written in Korean

What you learn

  • Telling problems apart by shape: sort a problem along six axes (what and how many to forecast, how far ahead, what to output, which decision it feeds, how the truth arrives, and what outside information exists) and see how judgment and method change along each axis.
  • Fixing the judgment first: build a backtest that stands at the decision time and forecasts only with what was known then, and write down before seeing results what would make you switch to a new method. Find leakage, values from after the decision time that make results look good, by measuring it.
  • Competing with non-model solutions: start from using someone else's forecast as is, changing how the work is done, or a one-line rule, and move up to a model only when it beats the step below. See in the data how the same method loses in one place and wins in another.
  • Separating forecast from decision: when shortfall and surplus cost different amounts, choosing a higher quantile rather than the mean lowers the cost. Measure "is the model right?" and "did the decision get better?" separately, and use sensitivity analysis to check the conclusion holds when the fictional prices change.
  • Running it and looking back: have someone other than the builder rerun and approve the work, then run a shadow operation on this machine that records a decision every day. Add monitoring and a fallback, then conclude whether to keep, roll back or retire. Retiring also counts as success.

What a unit contains

  • Theory: concepts and reasons, with conclusions written from numbers measured in the notebook.
  • Notebook: fetch and measure the data yourself, ending in a check cell that judges the result. Learners don't write new code; they read, run and change constants.
  • Pipeline code: what the notebook settled, moved into code that runs every day and tested to give the same values as the notebook for the same input.
  • Canvas: each unit fills at least one cell of the volume's canvas, so the choices made while solving one problem stay on one page.

Course

Parts inside a volume always follow the life cycle of the common skeleton and use the same numbers, so volumes can be compared step by step. Units are numbered volume-part-chapter (V01-P02-C04), and 00 at each level is the map: V00 is the common volume shared by every volume, V01-P00 is the volume map, and C00 in each part is that part's map. Only the first volume, V01, covers every step in detail; later volumes write units only for what is new in their problem.

PartWhat you learnUnits
V00-P00 CommonCourse overview, a map that sorts forecasting problems along six axes and the volume map, and a workflow that checks data fixed by download date before reading it so results can be reproduced3
V01-P00 Day-ahead energy purchase mapThe map of this volume: the subsidiary's problem and decision, the order of the parts, what carries over from V00, and what this volume leaves behind1
V01-P01 Finding the problemHow buying and selling electricity makes money and the problem behind the request, a metric tree of settlement cost, breaking down causes, solutions and the gate5
V01-P02 Baseline and dataThe current method's score and the decision time, fetching demand data, data quality, what someone else's forecast actually forecasts, weather and calendar, values revised later and fictional scenarios7
V01-P03 Judgment designTime-ordered backtesting, choosing metrics, writing the thresholds for switching before seeing results4
V01-P04 MethodsRules, separating forecast from decision (quantiles), boosting, adding weather, prediction intervals6
V01-P05 EvaluationIs the model right, did the decision get better, does it hold for other balancing authorities4
V01-P06 Verification, approval and operationVerification and approval, a daily pipeline, shadow operation, monitoring, crisis handling and rollback6
V01-P07 Looking backRescoring with the truth as first received and as later revised, concluding and closing, on to the next volume4

In V01, the supply team of a fictional energy subsidiary decides every morning how much electricity to buy for each of tomorrow's 24 hours. When actual demand differs, it buys the shortfall at a high price and sells the surplus cheaply. The data includes the day-ahead forecast published by the balancing authority itself, so "use someone else's forecast as is" is a strong baseline from the start.