Lawfare Academy · Complete Business Analytics and Decision Modeling edition 3
Forecast a decision-time quantity and reconcile the resulting operating system
The original four-period Harbor forecast file remains unchanged: actual demand 12/18/9/21, baseline 10/17/11/20, candidate 12/23/8/17. Its forecast-minus-actual convention yields baseline ME −.5, MAE 1.5, MSE 2.5; candidate ME 0, MAE 2.5, MSE 10.5. The complete preserved application already explains chronological evaluation, leakage, asymmetric loss and group monitoring. This studio supplies the sales-estimation and pro-forma preparation formerly required externally, with an explicit bridge from statistical forecasts to feasible commitments.
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.
For a predictive interval, distinguish the uncertainty of a conditional mean from uncertainty in one new outcome. A staffing decision based on a demand quantile still needs a valid future distribution, relevant costs and feasible actions; the unit 1 empirical Cedar quantile is an independent teaching file. Do not put its critical fractile into Harbor's arrays as if they were the same population. Intervals estimated after searching many models also need a selection-aware evaluation strategy.
Full on-site sales, forecast and worksheet method studio
The original Academy studio below is included in full. Its HarborWorks 720 sales/84 funding-stress balance sheet is a separate financial scenario, not Harbor Services' four demand periods. The three-year sales history and six-period smoothing series are distinct again. Reproduce each using its own units and opening balances. All manual teaching, complete formulas and optional models are supplied here; spreadsheet installation and outside reading are not required.
Build and validate a forecast before solving its financing gap
A financial forecast connects a supported business view to statements and dated cash. A target says what management wants; a forecast estimates outcomes under stated conditions; a scenario asks what follows if conditions change. The preserved HarborWorks chapter already reconciles its 720 sales base and delayed-collection funding stress. This original studio supplies sales-estimation, validation and spreadsheet methods behind that model. Every input is hypothetical, and no forecast is an actual lender commitment or Florida tax rule.
Choose a sales model for a reason
Separate price, units, mix, customer groups, seasonality and reporting perimeter. A prior-period percentage can be a starting assumption, not a law. An acquisition can raise reported sales without raising the legacy business's demand . An apparent trend from currency translation or changed fiscal length needs a bridge. Internal capacity and signed orders can constrain what a market-demand estimate actually permits the company to deliver.
For a separate three-year history 100,121,133.1, annual growth rates are 21 percent and 10 percent. Arithmetic mean growth 15.5 percent differs from compound annual growth√(133.1/100)−1≈15.369 percent. Compounding the arithmetic mean does not exactly reconstruct the endpoints. A high-growth starting recovery year may not be a sustainable base. Keep observation period and rationale visible rather than pick the horizon that maximizes the forecast.
For a different six-period series 10,12,14,13,15,17, a three-period moving-average forecast for the seventh is(13+15+17)/3=15. It lags an upward trend. A simple exponential update Fnext=α×actual+(1−α)×current forecast, withα=.4, current forecast 14 and actual 17, gives 15.2. The smoothing weight is a model choice; it does not create demand evidence. Trend and seasonal models require enough relevant cycles and validation. If a documented seasonal index 1.2 andbaseline level 20 are supplied, a multiplicative forecast 24 follows; estimating or changing that index requires its own record.
Regression can connect activity or macro/customer drivers with sales, but a fitted association must respect timing and the unit 4 diagnostics. A predictor known only after the forecast date cannot be used as if available then. A sales model that predicts 170 units while verified capacity is 150 requires an operational response or an unmet-demand scenario; silently calling 170 delivered sales breaks the resource plan.
Validate without leaking future information
Compare forecasts with held-out periods not used to select or fit the model. For actual 10,12,14 and corresponding pre-existing forecasts 11,11,15, errors actual-minus-forecast are−1,+1,−1. MAE is 1, mean error−1/3 andRMSE 1. Negative mean error under this convention means forecasts were high on average. Percentage-error measures can be unstable or undefined with actual zero, and log errors answer another question. Report the definition and business costs of under/overforecasting, not only the best-looking metric.
A rolling-origin check advances the forecast date through time, each time using only then-available data. Randomly mixing future periods into training can create leakage in a time-series task. Small samples, structural breaks and acquisition/price changes limit inference. A narrow statistical interval does not include every model failure or financing risk automatically. Preserve the original plan and dated forecast vintages so later evaluation does not unknowingly use revised observations unavailable at the decision date.
Translate sales into an operating system
Classify which costs vary with sales, which depend on capacity thresholds and which are separately scheduled. Receivables can follow customer terms; inventory can follow replenishment/service policy; payables arise from purchases and supplier terms. Depreciation, cash capital expenditure, principal, interest, tax and owner distributions need distinct rows. A percentage-of-sales proxy can be useful while reliable scheduling data are absent, but describe its range and replace it when actual timing is material.
HarborWorks' supplied next-year model starts at cash 25, AR 90, inventory 100, net equipment 165, AP 65, debt 120 and equity 195. Sales 720, COGS 432, other cash operating 180, depreciation 22, interest 12 and stipulated tax 18 give operating income 86 and net income 56. Capital 50 anddistribution 10 lead to net equipment 193 and equity 241. Ending AR 108, inventory 120 andAP 78 give operating cash 56+22−18−20+13=53. Before new funding, cash 25+53−50−10=18; reserve 30 requires 12. These are actual linked exercise assumptions, not an independently established demand or tax estimate.
A complete worksheet can expose rather than conceal the plug
One reproducible spreadsheet layout can put all outputs in columnB with these row labels:2 sales;3 COGS;4 other cash operating;5 depreciation;6 interest;7 stipulated tax;8 operatingincome;9 netincome;10 endingAR;11 endinginventory;12 endingAP;13 capital;14 distribution;15 endingnet equipment;16 endingequity;17 operating cash;18 unfunded ending cash;19 minimumcash;20 requirednew funding;21 availablefacility;22 actualdraw;23 ending cash;24 endingdebt;25 assets;26 liabilitiesand equity;27 balancecheck;28 reserveshortfall. Enter the clearly labeled supplied inputs and use linked formulas rather than copy independent totals.
For the base file, B8=B2−B3−B4−B5; B9=B8−B6−B7; B15=165+B13−B5; B16=195+B9−B14; B17=B9+B5−(B10−90)−(B11−100)+(B12−65); B18=25+B17−B13−B14; B20=MAX(0, B19−B18); B22=MIN(B20, B21); B23=B18+B22; B24=120+B22; B25=B23+B10+B11+B15; B26=B12+B24+B16; B27=B25−B26; B28=MAX(0, B19−B23). In an actual workbook, use separate named opening-balance inputs instead of unexplained literals once the model is established. Formula syntax uses the conventional comma separator and may depend on locale.
With B21=40 facility capacity, the base draws 12 and ends cash 30/debt 132/assets 451. In the delayed scenario B10=180, the required funding 84 but actual allowable draw 40 gives ending cash−14, debt 160 and assets 479, matching AP 78+debt 160+equity 241=479. The balance check is zero while reserve shortfall 44 and negative cash signal an infeasible payment plan. A balanced model therefore need not be executable. A negative cash result is an unmet-funding diagnostic here, not a claim a real bank automatically permits an overdraft.
Annual new borrowing is deliberately assumed at year end with no added current-year interest. If funding must be drawn earlier, interest, tax assumptions and cash can become circular. Solve with an explicit dated debt schedule or a documented iterative/analytic method; do not enable a hidden circular calculation simply to force equality. Principal repayment, fees, credit losses and facility conditions require additional rows when present.
Stress coherent conditions and define response triggers
A sensitivity changes one input; a scenario changes a supported group, for example weaker demand, slower collections and a tighter facility. Probabilities need evidence and are not created by averaging three guessed scenarios. Growth can create value while absorbing cash, and apparent profitable growth can fail under a working-capital limit. Define the relevant claimant's future cash and required reinvestment before making a value claim.
Test whether distributions can be canceled, investment staged, terms renegotiated or additional equity obtained, including actual costs and dates. In the isolated delayed file, canceling the ten distribution lowers required financing 84 to 74 and raises equity 241 to 251; a forty facility still leaves 34 reserve gap. It helps but does not solve the whole failure. A real decision needs authority, tradeoffs, monitoring and a reversal condition, not a desired balancing number.
Optional practice 1: forecast accuracy is not one selected fit
Use held-out actual 10,12,14 but forecasts 9,13,14. Compute mean error, MAE andRMSE. Compare with the earlier forecast set and state what a tiny sample cannot establish.
Complete forecast-error model
Errors are 1,−1,0. Mean error 0, MAE 2/3 andRMSE√(2/3)≈.8165, better on these absolute/squared metrics than the earlier 1/1. Zero bias does not mean zero errors or stable future performance. Three observations do not establish a generally superior model, especially if the revised forecasts were selected after seeing them. Use dated independent or rolling-origin evidence.
Optional practice 2: a reserve change is not operating improvement
In HarborWorks' base annual file, required minimum cash becomes 40 instead of 30. Assume financing capacity remains 40 and all other facts unchanged. Calculate draw, cash, debt and the balance sheet. Did income change?
Complete reserve model
Unfunded cash remains 18. Required draw 22 fits the 40 capacity, ending cash 40 and debt 142. Assets 40+108+120+193=461, matching AP 78+debt 142+equity 241=461. Income stays 56; the additional cash balance is financed, not earned. Actual current-year interest would need revision if the extra borrowing occurred earlier than the stipulated year-end draw.
Optional integrated forecast review:20 points
Select and validate a sales method, then reconstruct the linked forecast and failed facility scenario. Award four points each for evidence/date/perimeter, valid estimation/error measures, complete statement roll-forwards, actual funding/reserve constraints and feasible response/model limits.
Complete integrated model
Sales histories, moving averages and regressions are conditional models whose validation must avoid future leakage. HarborWorks base income 56 and operating cash 53 require 12 new funding for reserve 30. Delayed AR 180 requires 84, but actual 40 capacity yields cash−14 and reserve gap 44 even with a zero balance check. Canceling distribution 10 reduces the gap to 34 under the isolated assumptions. Preserve targets, forecast vintages and separate reported/adjusted cases; neither a spreadsheet plug nor a better in-sample fit establishes available financing or independent human review.
Optional source summary
OpenStax's sales-forecasting section explains historical starting points, seasonality and percentage-of-sales assumptions with their limits. The original forecast methods, error file and complete worksheet formulas above provide the required preparation on site. Forecasting sales, consulted October 29,2026. Outside reading and spreadsheet submission are optional.
Optional practice and complete models
Guided: the error sign changes
For the preserved baseline, forecast-minus-actual errors are−2,−1,2,−1; ME −.5, MAE 1.5 and MSE 2.5. Changed fact: the new reporting standard uses actual-minus-forecast. Model: errors 2,1,−2,1 give ME+.5 while MAE/MSE remain 1.5/2.5. State the convention; an improved-looking sign alone is not an improvement in accuracy.
Independent: equal-cost loss
Under the distinct A/Bcomparison and identical 10 per-unit under/overcost, total absolute errors are 2 and 4, so losses 20 and 40 favor A. Changed fact: underage returns 100 and overage 20. Model: Aunderforecasts 2 unitsandloses 200; Boverforecasts 4 andloses 80. A forecast metric must be linked to a defined operating loss; no universal preferred model follows from four cases.
Transfer: a forecast becomes a cash constraint
The embedded HarborWorks base ends unfunded cash 18 and needs 12 to reach reserve 30. Changed fact: collections delay raises endingAR 108 to 180 while financing capacity stays 40. Model: cash falls 72 to−54 before funding; need 84, draw 40, ending cash−14 and reservegap 44. A zero accounting balance check does not establish liquidity. Preserve the separate demand forecast case rather than import these currency balances into it.
Unit rubric:20 points
Award four points each for forecast origin/target, method rationale and leakage prevention, error/loss convention, connected statement/cash derivation, and feasibility/changed-fact response. Complete model: retain the Harbor demand arrays and sign; report original baseline 1.5 MAE/2.5 MSEagainst candidate 2.5/10.5, then separately explain the A/Bcost reversal. In HarborWorks preserve sales 720, operating cash 53 and unfundedcash 18; distinguish planned borrowing from the actually available 40 facility. Report input limitations, permission, validation plan and a feasible fallback. Optional spreadsheet procedures and checked manual outputs are not device-execution or independent human-review evidence.