Learning objectives
- Distinguish prediction error from a decision's operational cost.
- Compare forecasting approaches without letting test-period outcomes enter the development process.
Learn
A forecast matters because someone will make a decision with it. Identify the timing, action and cost of different errors. Overestimating and underestimating may have different consequences. A single average error can obscure the difference between otherwise useful models. Use the information that would actually have been available and reserve a suitable period for the final comparison.
Put the decision clock before the dataset
A statistical analysis begins by defining the object counted. A request is not a customer, and six days are not six independently sampled markets. State the population, time window, observation unit, eligibility, outcome maturity and decision deadline. A reservation made at 07:00 cannot use completed requests recorded at 18:00 on that same day. Record when an input existed, not merely the date written into a later export. A field can be historically useful while being unavailable for the proposed live decision.
Define the controllable action separately from uncertain conditions. Management may reserve q service slots, while realized demand D is outside its direct control. A contribution coefficient, demand ceiling or probability is a parameter requiring evidence; typing it into a spreadsheet does not make it a choice or a verified fact. State the no-change baseline and who can authorize a revised capacity commitment. The learning cases require no actual customer, employee, financial account or learner information.
A useful input dictionary names the field, observational grain, units, valid range, timestamp, missing-value rule and accountable source. Preserve a genuine zero-demand day. Do not replace an unreported day with zero, duplicate a day's capacity on every request row or drop a high-demand day because it makes the model inconvenient. These changes alter the target distribution. An excluded day should have an explicit reason and remain distinguishable from a day with no activity.
A model selected after the test is no longer facing an untouched test
Specify the forecast origin, horizon, eligible observations and input cutoff before choosing a method. Reserve later outcomes for evaluation and reproduce preprocessing inside each training window. A test used repeatedly to select a favored moving average has become development evidence. An apparently lower holdout error on four cases is not enough to establish a generally superior future policy. Preserve the forecast vintage, data available then, method version and unrounded predictions.
A demand forecast estimates a quantity under its assumptions. A sales plan additionally depends on available service, accepted orders, price, mix and cancellations. If forecast demand 170 units exceeds deliverable capacity 150, do not book 170 delivered units without an operating response. A pro-forma income statement records a scenario's accounting consequences; a cash forecast additionally schedules collection, purchases, funding and payment. Neither target sales nor a positive accounting profit guarantees payment capacity.
Choose the metric that measures the actual action
Use the original separate forecast A/B comparison without merging it with the baseline/candidate comparison. A=[10,18,9,21] has MAE .5; B=[13,19,10,22] has MAE 1.0. At underage 100 and overage 20, A loses 200 while B loses 80. A lower-MAE forecast is not automatically a lower-cost staffing policy. At equal linear costs 10, A loses 20 and B40, so that particular ranking reverses. The policy's cost definition, feasible capacity and timing must be recorded with the statistical score.
Apply
A fictional shop orders one unit per forecast sale. Demand is 100. Forecast A is 90 and B is 110. Both miss by ten units in absolute terms. Suppose the stipulated cost is $5 per sale missed from insufficient inventory and $2 per unsold unit. A's cost is $50 and B's $20. Across weeks, calculate the loss using the applicable conditions and other constraints, such as shelf life or cash. If managers repeatedly choose and retune a model using those same test weeks, use additional untouched observations before estimating future performance.
Observe the actual rule after deployment. If a manager adjusts a forecast for a special event before ordering, record both the model output and the order placed. That distinguishes forecast performance from the consequences of acting on the adjusted forecast.
Optional check
What would a week with an unusually high cost of unsold inventory add to the comparison?
Show the explained answer
It changes the loss for over-forecasting. Recalculate with that condition, assess whether it represents future decisions, and state whether the comparison applies broadly or only to similar weeks.