Lawfare Group → Knowledge Institute → Lawfare Academy

← Course syllabus · Related lesson

Validate using information that existed at the forecast date

Current complete on-site native edition3

All required original teaching, complete derivations and optional practice models are on LawfareGroup.com. External references are optional provenance or further reading. Florida is the state-law default; federal, historical and comparative contexts remain distinct. Independent human subject review and observed learner testing remain pending. Synthetic economic models establish no actual market response, legal clearance or professional competence.

Preserved and additional cumulative dossiers

Original extended teaching; see the linked current course-content review for its development status. Practice is optional; independent academic review and learner testing remain pending.

Learning objectives

A forecast is defined by its information clock

Let t identify the date when a prediction is issued, not just the date stamped on the outcome. Every feature must have been available in usable form at that issue date. A later settlement date, revised economic statistic or retrospective account category can make a historical regression look excellent while being unavailable to an actual forecaster. Preserve both event time and information-availability time where appropriate. A database join on customer identifier and month alone may silently attach future facts.

Divide development work according to the deployment task. A random split of dependent time rows can expose a model to future regimes and nearby observations from the same process. A chronological holdout better represents certain forecasting uses, but it is not automatically sufficient: feature construction, imputation, scaling and tuning must also respect the training boundary. Fit those transformations using the available training sample and carry the learned operation forward. Revise them only when the actual deployment would permit an update.

Specify forecast horizon, update frequency and whether the exercise predicts a fixed future block or repeatedly updates after new outcomes arrive. These are different information sets. The Forecasting: Principles and Practice reading, section 5.10, explains rolling-origin time-series cross-validation using past observations for training. Its examples are methodological illustrations, not current market advice. Match the validation design to the promised product and disclose what changes when information is updated.

Compare matching forecasts rather than favorable metrics

Consider t=1 through 8 with outcomes 12, 14, 16, 18, 20, 22, 40, 42. A trend fitted to the first six observations is yhat=10+2t. A fixed-origin two-period forecast therefore predicts 24 and 26, with errors −16 and −16 and MSE 256. The last-observed-value benchmark at that same origin predicts 22 twice; its errors are −18 and −20 and MSE 362. Both methods use information through period six only.

In a rolling one-step design, predict period seven using the first six values, then refit after observing 40. The second fitted trend has intercept 38/7 and slope 26/7, giving period-eight forecast 246/7≈35.1429. Rolling trend MSE is 7424/49≈151.5102. The matching rolling last-value benchmark predicts 22 and then 40, with MSE 164. Comparing rolling trend error 151.51 with fixed-origin benchmark error 362 would mix designs and exaggerate the comparison. Report both forecast protocols clearly.

The trend fits the initial six observations perfectly and still misses the regime change. Training residuals cannot reveal every future structural break. Two test outcomes are too little evidence for broad claims about stable superiority. Use this small example to audit mechanics, then seek a meaningful range of origins, horizons and conditions. If all choices were tuned against the test interval, it has become development data; reserve another evaluation or describe the resulting uncertainty honestly.

The business loss must fit the action

Mean absolute error, mean squared error and asymmetric operational losses weight errors differently. Squared error penalizes large misses strongly; absolute error has a different optimal forecast target. If underprediction requires costly emergency capacity while overprediction leads to modest idle time, a symmetric score can be misaligned. Specify whether the action is a point forecast, staffing amount, inventory order or interval. A forecast with a lower statistical error need not produce the better constrained decision.

For the retained companion's actual values 100, 120, 80, model predictions 110, 100, 90 and a constant 100 benchmark, both have MAE 40/3. Model MSE is 200 and benchmark MSE 800/3. Under a loss of 10 for each underforecast unit and 2 for each overforecast unit, both cost 240. These are stipulated unit penalties, not a complete staffing cost model. A claim of business improvement based only on the smaller MSE would exceed that evidence.

Predefine the benchmark, horizon, loss and comparison sample. Report missing outcomes and unusual periods rather than remove them without a rule. Document whether any forecast exceeded qualified delivery capacity and what the actual action would have been. Prediction intervals require a method suited to dependence and changing uncertainty; a coefficient confidence interval is not a forecast interval. Monitor deployment drift and create a process for revising the model without rewriting the historical evaluation as if the revised model had been known earlier.

Worked example: Fixed origin versus rolling origin

At origin six, the trend forecasts [24,26] and the fixed last-value forecast is [22,22]. Their MSEs are 256 and 362. In the rolling one-step design the trend forecasts [24,246/7], versus [22,40] for the benchmark; MSEs are 7424/49 and 164. These are two fair within-design comparisons, not four interchangeable scores.

Worked example: A lower squared error can tie business cost

For actual [100,120,80], predictions [110,100,90] incur penalties 20+200+20=240. The constant 100 benchmark incurs 0+200+40=240. Squared errors favor the first model, but this asymmetric cost does not. If operational penalties change, recompute the decision loss rather than preserve a preferred ranking.

Progressive optional practice

Attempt each problem before opening its model. Then revise the reasoning under the changed conditions.

Audit

A model predicts next month using the invoice’s eventual settlement date. What should happen?

Compare the model reasoning

Remove or replace unavailable information and rebuild the historical feature pipeline using only information available at each forecast issue date. Re-evaluate fairly.

Changed conditions

The forecast is actually issued after settlement for a descriptive report.

Compare the revised analysis

Then the feature may be available, but the task and claim are different. Do not call that retrospective description an earlier operational forecast.

Calculate

Why may the fixed benchmark not use the observed period-seven value when predicting period eight?

Compare the model reasoning

Because both predictions were issued at origin six. Using period seven would change the information set into a rolling design.

Changed conditions

Deployment actually updates daily after outcomes arrive.

Compare the revised analysis

Use a matching rolling protocol for both model and benchmark and state the one-step horizon.

Transfer

A model wins MSE but ties the benchmark on the stipulated business loss. What is justified?

Compare the model reasoning

Report the statistical improvement and operational tie separately; do not claim a demonstrated cost saving.

Changed conditions

A capacity constraint makes some forecast-driven actions infeasible.

Compare the revised analysis

Simulate or analyze the feasible action rule and its loss. The unconstrained forecast score alone cannot establish implementation value.

Current development backlog and remaining course work · Course content review

Source readings and scope

Introductory Business Statistics 2e — 13.7 How to Use Microsoft Excel® for Regression Analysis — Optional preserved methodological provenance. Complete current on-site studios and preserved full original applications supply all required teaching. Data and estimates are synthetic; they do not describe actual customers or learner records. Statistical relationships do not establish causal, legal or professional approval. Florida is the state-law default; federal rules remain federal and historical other-state examples are comparative. No source affiliation or independent review of this course is claimed.

Hyndman and Athanasopoulos — Forecasting: Principles and Practice, chapter 5 — Optional chapter5sections5.6/5.8/5.10 provenance; the complete on-site studios supply transformation, evaluation and time-validation preparation. Apply the relevant section to the named lesson; historical source examples are methodological illustrations.

MIT OCW — Statistical Thinking and Data Analysis — Optional preserved methodological provenance. Complete current on-site studios and preserved full original applications supply all required teaching. Data and estimates are synthetic; they do not describe actual customers or learner records. Statistical relationships do not establish causal, legal or professional approval. Florida is the state-law default; federal rules remain federal and historical other-state examples are comparative. No source affiliation or independent review of this course is claimed.

Reproduce the worked examples in Python 3. Standard library only; synthetic data; no production records or network access.