Regression and Business Forecasting — Expanded Original Study
Open this course and its original lessons. This companion contains the same new teaching as the course reader; it is not additional material for word counts.
- Regression as a conditional model
- Least squares and residuals
- Multiple predictors and confounding
- Categorical variables and interactions
- Diagnostics and validation
- Time series and forecast uncertainty
Unit 1 · Regression as a conditional model
Original Academy expansion: defining what a regression means
A regression begins with a question about a population and a measurement process. Suppose Cedar Service wants to estimate the labor hours required for a quoted job. The observation is a job, the outcome is recorded labor hours, and a predictor might be floor area in hundreds of square feet. Before fitting a line, decide whether hours include travel, breaks, callbacks, and subcontractor time. A relationship between incompatible measurements is difficult to interpret even when software produces precise coefficients. State when the prediction will be made. Information recorded after a job ends cannot be used in a model intended to price that job before work begins.
Three questions require different arguments. Description asks how recorded jobs differ. Prediction asks how well available information anticipates a new job. Causal inference asks what would change if an intervention changed a predictor. A strong prediction from job urgency to expense does not establish that declaring a job nonurgent would reduce its expense. Urgency may reflect damage severity. Confusing these questions can turn an accurate forecasting tool into a poor management policy.
Write the simple population model as Y = beta0 + beta1 X + error. Here beta0 and beta1 describe a proposed conditional mean, while the error contains variation not represented by that mean. The assumption E(error given X) = 0 says that the modeled mean is correctly specified at the relevant values of X. It is stronger than saying errors average to zero across the whole sample. A model may miss curvature at small and large job sizes while its overall residual average remains zero. The fitted equation uses estimated coefficients, b0 and b1, obtained from finite observations. Distinguish the unobserved population error from a sample residual, which is an observed outcome minus its fitted value.
The slope has units: hours per hundred square feet. If fitted hours = 1.5 + 0.8 X, a one-unit increase in X corresponds to 0.8 more fitted hours. A 250-square-foot increase is 2.5 predictor units, corresponding to 2 hours. The intercept is the model's fitted hours at zero area. That can serve as an algebraic anchor without describing an actual zero-area job. If observed jobs range from 300 to 1,200 square feet, using the equation at zero or 10,000 square feet is extrapolation. The line has no built-in knowledge of minimum call-out charges, multiple crews, or equipment thresholds.
Worked investigation: translating a model into a quote
Use the fictional equation above for a 750-square-foot job. First convert area to X = 7.5. Next compute fitted hours = 1.5 + 0.8(7.5) = 7.5. If the recorded job ultimately takes 9 hours, the residual is 9 - 7.5 = 1.5 hours. This positive residual means the model underpredicted this job. It does not prove the worker was inefficient: omitted access difficulties, incorrect measurements, and random disruption remain possible explanations.
Suppose labor costs $40 per hour. The fitted direct labor cost is $300. That is neither a customer price nor a guarantee. A quote also requires materials, travel, overhead allocation, margin, and an allowance for uncertainty. If underestimating hours is much more costly than overestimating, the conditional mean may not be the appropriate decision target. A selected conditional quantile may better match a service promise. Choosing a decision rule requires explicit costs; regression alone cannot supply the firm's priorities.
Changing units changes numerical coefficients without changing fitted outcomes. In square feet rather than hundreds of square feet, the same equation is hours = 1.5 + 0.008 area. A reported slope of 0.8 without its units is incomplete. Centering X at 7.5 produces hours = 7.5 + 0.8(X - 7.5). The intercept now describes a job within the observed range. Centering is a re-expression of the same line, not new evidence or a cure for confounding.
Progressive practice
- Foundation: predict hours for 500 square feet and calculate the residual if actual hours are 6.5.
- Application: re-express the equation when area is measured in thousands of square feet. Explain why the new slope is larger.
- Transfer: a manager proposes using the urgency coefficient as the savings from refusing emergency work. Identify the missing causal argument and propose a more defensible question.
- Critique: a quoting model uses final invoice amount as an input. Explain why its apparent accuracy is unsuitable for a pre-work quote.
Worked reasoning for the practice
At 500 square feet, X = 5 and fitted hours = 5.5. The residual is 1 hour. In thousands of square feet, let Z = area/1,000; X = 10Z, so fitted hours = 1.5 + 8Z. The larger coefficient multiplies a larger unit of area. For urgency, first investigate severity, time of day, staffing, and selection into the emergency category. A descriptive comparison can guide a pricing review, but intervention effects need an identification strategy. Final invoice amount is unavailable at quoting time and may encode the target itself. Exclude it and evaluate only predictors observable at the intended decision time.
Subject-matched external readings
Unit 2 · Least squares and residuals
Original Academy expansion: deriving and checking least squares
Least squares chooses coefficients to minimize the sum of squared residuals: SSE = sum of (yi - b0 - b1 xi) squared. Squaring prevents positive and negative errors from canceling and penalizes large misses more heavily. It is a choice of loss function, not a universal definition of a good decision. Absolute-error loss is less sensitive to large deviations. A business with asymmetric shortage costs may need asymmetric loss. Select the estimation and decision criteria with the intended use in mind.
For simple regression with an intercept and variation in X, define xbar and ybar as sample means. Let Sxx = sum of (xi - xbar) squared and Sxy = sum of (xi - xbar)(yi - ybar). The least-squares slope is b1 = Sxy/Sxx, and the intercept is b0 = ybar - b1 xbar. One way to understand these formulas is through the normal equations. Differentiating SSE with respect to b0 makes the residual sum zero. Differentiating with respect to b1 makes the sum of xi times its residual zero. Thus the fitted component and residual component are orthogonal in the sample. These algebraic properties do not prove causal validity or correct specification.
Worked investigation: fit a small dataset by hand
Consider four fictional jobs with X values 1, 2, 3, 4 and Y values 2, 4, 5, 7. The means are xbar = 2.5 and ybar = 4.5. The deviations in X are -1.5, -0.5, 0.5, 1.5; the deviations in Y are -2.5, -0.5, 0.5, 2.5. Their squared X deviations sum to 5. Their cross-products sum to 8. Therefore b1 = 8/5 = 1.6 and b0 = 4.5 - 1.6(2.5) = 0.5.
The fitted values are 2.1, 3.7, 5.3, 6.9. Residuals are -0.1, 0.3, -0.3, 0.1. They sum to zero, and their squared sum is 0.20. The total variation around ybar is SST = 6.25 + 0.25 + 0.25 + 6.25 = 13. R squared is 1 - SSE/SST = 1 - 0.2/13, approximately 0.9846. This is an in-sample description of explained variation for this fit, not a statement that future predictions will be 98.46% accurate.
Two coefficients were estimated, leaving n - 2 = 2 residual degrees of freedom. Under the usual correctly specified independent constant-variance model, estimate error variance by s squared = SSE/(n - 2) = 0.10 and error standard deviation by s = about 0.3162. The slope's standard error is s/sqrt(Sxx), about 0.1414. An approximate 95% interval using the t distribution with 2 degrees of freedom is 1.6 plus or minus 4.303(0.1414), or roughly 0.991 to 2.209. A visually close line can still leave appreciable parameter uncertainty in a tiny sample.
For X0 = 2.5, fitted Y is 4.5. The standard error for the estimated mean response is s sqrt(1/n + (X0 - xbar) squared/Sxx), approximately 0.1581. For a new individual outcome, include an additional 1 inside the square root: approximately 0.3536. The resulting t-based prediction interval is wider because it includes both estimation uncertainty and the individual outcome's unexplained variation. It still depends on the model assumptions and is not reliable merely because the arithmetic is correct.
A p-value for a zero-slope test assesses compatibility with a specific null model and its assumptions. It is not the probability the null is true, the probability an observed association is causal, or the economic importance of the effect. A large dataset can identify a very small association precisely. A small dataset can leave an important effect uncertain. Report estimated magnitude, units, uncertainty, and the decision context together.
Progressive practice
- Foundation: verify the four fitted values and calculate SSE without rounding the residuals first.
- Application: add 10 to every Y value. Determine the new intercept, slope, residuals, and R squared without repeating the entire calculation.
- Transfer: multiply Y by 100. Explain how the slope, intercept, residual standard deviation, and R squared change.
- Critique: the sample contains four jobs from one unusual day. Explain why a narrow formal interval would not repair unrepresentative sampling.
Worked reasoning for the practice
The squared residuals are 0.01, 0.09, 0.09, and 0.01, totaling 0.20. Adding 10 to all outcomes shifts the intercept from 0.5 to 10.5 while leaving slope, residuals, SSE, and R squared unchanged. Multiplying outcomes by 100 multiplies intercept, slope, and residual standard deviation by 100; both SSE and SST multiply by 10,000, so their ratio and R squared remain unchanged. A probability interval conditional on an assumed sampling process does not measure how different the target population is from the observed day. Expand the sampling frame and evaluate performance on representative later jobs.
Subject-matched external readings
Unit 3 · Multiple predictors and confounding
Original Academy expansion: multiple regression and causal reasoning
Multiple regression models an outcome using several predictors: Y = beta0 + beta1 X1 + beta2 X2 + error. The phrase holding other variables fixed describes a comparison within the specified model. It does not mean real businesses can independently manipulate every predictor. The interpretation also depends on whether the data contain comparable observations. If large jobs are always emergencies and small jobs never are, separating size from urgency requires extrapolation or additional information. Software output cannot manufacture overlap.
The omitted-variable problem can be stated precisely in a simple setting. Suppose the appropriate population mean is Y = beta0 + beta1 X + beta2 Z, with a zero-conditional-mean error. If Z is omitted and Y is regressed on X alone, the population simple-regression slope is beta1 + beta2 Cov(X,Z)/Var(X). The second term is the omitted contribution. Its sign depends on both the effect associated with Z and the association between X and Z. A coefficient change after adjustment is evidence of sensitivity to model specification; deciding which model answers the causal question requires a substantive account of Z.
Worked investigation: seasonal confounding
Imagine two seasons. In the quiet season, advertising spending levels 1 and 2 produce sales 12 and 14. In the busy season, advertising spending levels 3 and 4 produce sales 36 and 38. All amounts are fictional units. Within either season, a one-unit advertising difference corresponds to two sales units. Across all four records, however, xbar = 2.5 and ybar = 25, Sxx = 5 and Sxy = 50. A simple regression reports a slope of 10. The pooled association mixes the within-season relationship with a twenty-unit seasonal shift.
With an indicator S equal to 1 in the busy season, all four observations fit Y = 10 + 2X + 20S exactly. This constructed example illustrates how adjusting for a common factor can change a coefficient from 10 to 2. It does not establish that 2 is the causal advertising effect in actual business data. Spending may also respond to expected sales, competitors, or management judgment. The exact fit here is a teaching device, not a realistic claim that business outcomes have no noise.
Adding every recorded variable can create other problems. A mediator lies on a pathway from an intervention to an outcome. If advertising increases inquiries and inquiries increase sales, controlling for inquiries may remove part of the total pathway the manager wants to measure. A collider is influenced by two other variables. Conditioning on it can induce associations that were absent before conditioning. For example, restricting analysis to accepted jobs can distort comparisons if both quoted price and customer urgency affect acceptance. Start with the timing and causal role of each variable rather than letting automated selection define the question.
Multicollinearity is a different issue. Closely related predictors can make individual coefficient estimates unstable. Suppose revenue and billable hours are both included when revenue is nearly a constant rate times hours. Many combinations of coefficients may produce similar predictions over observed data. Standard errors can be large even when overall predictions are useful. Perfect collinearity makes the usual coefficient solution unidentified. Centering may improve numerical interpretation in interaction models, but it does not create information that distinguishes two nearly redundant predictors.
In matrix notation, least squares solves a projection of Y onto the columns of X. If the columns are linearly independent, the formal solution is b = (X transpose X) inverse X transpose Y. Numerical software usually uses more stable decompositions rather than explicitly inverting the cross-product matrix. A substantive model can include squared terms, indicators, and interactions while remaining linear in its coefficients. Calling it linear regression does not require every predictor to enter as a straight-line effect of its original measurement.
Progressive practice
- Foundation: verify the pooled slope of 10 using the four observations above.
- Application: predict sales at X = 2 in the busy season under the adjusted equation. State whether that predictor combination appears in the dataset.
- Transfer: distinguish the role of pre-campaign season, post-campaign inquiries, and job acceptance when estimating the total advertising effect.
- Critique: a coefficient becomes insignificant after a highly correlated predictor is added. Explain why this does not prove that the original predictor has no business relevance.
Worked reasoning for the practice
The Y deviations are -13, -11, 11, and 13. Their products with X deviations sum to 19.5 + 5.5 + 5.5 + 19.5 = 50. Divide by Sxx = 5 to obtain 10. The adjusted prediction at X = 2 and S = 1 is 34, but this exact combination was not observed. It relies on the additive model extending the same slope across seasons. Season can be a pre-treatment confounder, inquiries a mediator, and acceptance a selection variable; their inclusion depends on the estimand. A significance change can reflect increased uncertainty from redundancy, altered interpretation, or a different association. Examine estimates, intervals, support, and the intended prediction or causal task.
Subject-matched external readings
Unit 4 · Categorical variables and interactions
Original Academy expansion: categories, interactions and transformations
An indicator encodes a category as 0 or 1. With an intercept and K mutually exclusive categories, include K - 1 category indicators, leaving one reference category. Including all K indicators alongside the intercept creates exact redundancy because their sum equals the intercept column. The reference category is a parameterization choice; choosing a different reference changes coefficient labels but not fitted values when the same model is represented correctly. Always name the reference group in a report.
An interaction permits one modeled association to depend on another variable. In hours = 2 + 0.5A + 3E + 0.2AE, A is area in hundreds of square feet and E indicates an emergency. For routine jobs, E = 0, giving hours = 2 + 0.5A. For emergencies, E = 1, giving hours = 5 + 0.7A. The emergency difference is 3 + 0.2A, rather than a constant 3. The main emergency coefficient describes the difference at A = 0; that may be an unobserved and unhelpful comparison.
Worked investigation: interpret every coefficient
At A = 10, the routine prediction is 7 hours and the emergency prediction is 12 hours. The gap is 5 hours. A one-unit area increase adds 0.5 fitted hours for routine work and 0.7 for emergency work. Center area at 10: let C = A - 10. Substitution gives hours = 7 + 0.5C + 5E + 0.2CE. The emergency main effect is now the difference at a 1,000-square-foot job. The interaction remains 0.2 because centering changes the location of the reference comparison, not the difference between slopes.
If the interaction estimate has a wide interval, the data may not distinguish the group slopes precisely. Removing the interaction imposes a shared slope, which may improve predictive stability or may conceal a meaningful difference. Compare evidence and performance rather than deleting terms solely to obtain a desired p-value. Retain the associated main terms when interpreting a conventional interaction specification; dropping them imposes special zero-value restrictions that require justification.
Transformations change the question's scale. If log(Y) = b0 + b1 X + error, a one-unit increase in X multiplies the fitted exponentiated linear predictor by exp(b1). The percent difference is 100[exp(b1) - 1]; 100b1 is an approximation for small coefficients. Exponentiating a fitted log mean does not generally recover the arithmetic mean of Y. Under an appropriate normal log-error model with variance sigma squared, the arithmetic mean includes the factor exp(sigma squared/2). Other distributions require other adjustments. The distinction matters when budgeting totals rather than describing typical multiplicative differences.
In a log-log specification, log(Y) = b0 + b1 log(X) + error, b1 is an elasticity of the modeled log relationship. An increase from X to 1.1X changes the exponentiated predictor by a factor 1.1 raised to b1. Do not insert zeros into a log or silently discard them. Zero sales may be an economically meaningful state. Choosing a two-part model, a count model, another transformation, or an explicit restricted population requires subject reasoning.
Curvature can be represented with a squared term. If Y = b0 + b1X + b2X squared, the slope with respect to X is b1 + 2b2X. A negative squared coefficient does not imply negative marginal effects at every observed X. Calculate effects in the region supported by the data. Beyond that region a quadratic can produce implausible reversals or negative predictions. Functional flexibility must be checked against the measurement scale and decision range.
Progressive practice
- Foundation: compute routine and emergency predictions at A = 5 and A = 15.
- Application: re-express the interaction model after centering A at 5. Identify the new intercept and emergency coefficient.
- Transfer: a fitted log-outcome coefficient is 0.2. Calculate its exact multiplicative and percent interpretation and explain why it is not exactly 20%.
- Critique: a report says a squared coefficient of -0.01 means every additional advertising dollar reduces sales. State what information is missing.
Worked reasoning for the practice
At A = 5, the predictions are 4.5 and 8.5, a gap of 4. At A = 15, they are 9.5 and 15.5, a gap of 6. With C = A - 5, the intercept becomes 4.5 and the emergency coefficient becomes 4; the two slope terms stay 0.5 and 0.2. Exp(0.2) is approximately 1.2214, corresponding to 22.14%. The 20% interpretation uses a first-order approximation. For the quadratic claim, obtain the linear coefficient, predictor units, observed range, and specification. The local slope is b1 - 0.02X, whose sign cannot be determined from the squared term alone.
Subject-matched external readings
Unit 5 · Diagnostics and validation
Original Academy expansion: diagnostics and honest validation
Model diagnostics investigate whether the fitted representation is adequate for its intended use. Begin with residual plots against fitted values, individual predictors, and observation order. A curve in residuals suggests the mean function misses systematic structure. A funnel suggests changing residual variability. Runs of positive or negative residuals in time order suggest dependence or a shifting mean. A plot is evidence to interpret, not an automatic instruction to delete observations until the picture looks tidy.
Different assumptions support different claims. The zero-conditional-mean condition is central to interpreting coefficients as the proposed conditional relationship. Constant variance and independence support familiar standard-error formulas. Normal error assumptions support exact small-sample t inference in the classical model; least-squares coefficients can be calculated without normally distributed outcomes. Robust standard errors can address certain variance misspecifications asymptotically, but they do not fix an omitted causal factor, an incorrect mean function, or a sample with no support for the desired comparison.
Leverage describes how unusual an observation's predictor combination is relative to the design. A large residual describes an unusual outcome conditional on the fitted model. Influence combines position and mismatch: an observation may substantially move the fitted coefficients when included. An unusual X value with a small residual can still deserve attention because future conclusions may depend heavily on it. Investigate data entry, real process differences, and sensitivity. Preserve a documented reason for exclusion. A genuine difficult job is not an error merely because it damages the model's appearance.
Worked investigation: performance changes outside training
Suppose two models predict a later four-job holdout set whose actual hours are 4, 6, 8, 10. Model A predicts 5, 5, 9, 9. Errors, defined as actual minus prediction, are -1, 1, -1, 1. Its mean absolute error is 1 and root mean squared error is 1. Model B predicts 4, 6, 8, 14. Its absolute errors are 0, 0, 0, 4, giving the same mean absolute error of 1 but root mean squared error of 2. The metric choice changes how severely one large miss is penalized.
If a costly staffing shortage occurs when actual hours exceed forecast, the signs also matter. Model B's one large error is an overprediction. Model A underpredicts two jobs. Equal MAE does not mean equal business value. Evaluate a predeclared decision loss alongside statistical errors. For an asymmetric absolute loss with underprediction cost Cu and overprediction cost Co, the optimal target quantile under the relevant conditional distribution is Cu/(Cu + Co). If Cu = 3 and Co = 1, the target is the 0.75 quantile, not necessarily the mean. This statement assumes the simple linear-per-unit loss structure; fixed penalties or capacity constraints require a different optimization.
Separate model building, model selection, and final evaluation. A training set estimates coefficients; a validation process compares candidate specifications and tuning choices; an untouched test set estimates performance after those choices. Repeatedly checking the test set and revising the model makes it part of training in a broader sense. Cross-validation can use scarce observations more efficiently, but its splits must respect groups and time. Rows from the same customer can leak customer-specific information across random splits. Future records must not help train a model evaluated as though it existed earlier.
Preprocessing is part of fitting. Estimate imputation values, scaling constants, category encodings, and feature selection using training data within each split. Applying a transformation learned from the entire dataset before splitting can disclose evaluation information. A high R squared on training observations may reflect flexibility rather than generalization. Compare against a simple baseline and inspect errors across important subgroups, job sizes, and periods. An average error can hide a consistent failure on the jobs where the tool is most needed.
Progressive practice
- Foundation: independently compute MAE and RMSE for both holdout models.
- Application: give a concrete reason a customer-level split could be more demanding than a row-level split.
- Transfer: an analyst replaces missing values using the overall mean before cross-validation. Repair the procedure.
- Critique: explain what heteroskedasticity-robust standard errors can and cannot accomplish when a key severity measure is omitted.
Worked reasoning for the practice
Model A has squared-error total 4, divided by four and square-rooted to 1. Model B has squared-error total 16, producing RMSE 2. Both have absolute-error total 4. A row split may allow the model to learn a repeat customer's distinctive practices before predicting another job for that customer; a customer split tests transfer to unseen customers. Fit the missing-value replacement on each training fold and apply that fitted replacement to its validation fold. Robust standard errors can adjust certain uncertainty calculations under appropriate conditions. They do not remove omitted-variable bias or create the missing severity information.
Subject-matched external readings
Unit 6 · Time series and forecast uncertainty
Original Academy expansion: forecasting across time
A forecast is defined by an origin, a horizon, an information set, and a target. Predicting next week's completed jobs on Friday is different from predicting next quarter's receipts at the start of the quarter. Demand, completed work, invoiced revenue, and cash collected are distinct series. Capacity restrictions can make completed jobs understate demand, while payment delays separate revenue from cash. Specify frequency, units, calendar treatment, and revision policies before comparing methods.
Start with simple benchmarks. A naive forecast repeats the latest observed value. A seasonal naive forecast repeats the value from the corresponding previous season. A drift forecast extends the average change from the first to the last observed value. These methods are useful because they establish what more elaborate models must improve upon. A model with many variables is not valuable merely because it has a sophisticated name. Require an improvement at the horizons and losses relevant to the decision.
Worked investigation: a rolling forecast comparison
Take the fictional monthly demand sequence 100, 110, 105, 120, 130, 125. At the end of month 3, a naive forecast for month 4 is 105; its error is 120 - 105 = 15. A three-month moving-average forecast is (100 + 110 + 105)/3 = 105, with the same error. Move the origin to the end of month 4. The naive forecast for month 5 is 120, with error 10. The moving average is (110 + 105 + 120)/3, approximately 111.667, with error approximately 18.333. At the end of month 5, the naive forecast for month 6 is 130, with error -5; the moving average is approximately 118.333, with error approximately 6.667.
Across these three origins, the naive method has MAE 10 and RMSE approximately 10.801. The moving average has MAE approximately 13.333 and RMSE approximately 14.207. Smoothing did not improve this short example. A moving average can lag a rising level because it includes older lower observations. Six constructed values are insufficient to select a production method, but they make the timing and scoring procedure inspectable. Never calculate a centered moving average using future observations and then present it as a forecast available at an earlier origin.
Simple exponential smoothing updates a level estimate by Lt = alpha Yt + (1 - alpha)Lt-1, where alpha lies between 0 and 1. With alpha = 0.5 and an initial level of 100, observing 110 updates the level to 105; observing 105 leaves it at 105; observing 120 updates it to 112.5. A larger alpha responds more quickly but also follows noise more readily. Trend and seasonal methods extend the representation. Their components must be estimated from past data, and apparent seasonal patterns require enough repeated cycles to distinguish them from unusual events.
A time-series regression might include time, seasonal indicators, promotions, or economic predictors. Predictors needed at a future horizon must themselves be known, forecast, or treated as scenarios. Fitting sales on realized next-month weather and then using actual future weather in the test period evaluates a different information set from a real operating forecast. Forecast uncertainty should account for uncertain inputs where material. A conditional interval that assumes a known input does not automatically include uncertainty in that input's forecast.
Rolling-origin evaluation trains only on information available at each origin, produces the required horizon forecast, waits for the actual outcome, and records the error. Expanding windows retain the entire history; sliding windows retain a recent segment. The choice balances estimation stability against adaptation to change. Compare models on the same origins and horizons. Multi-step errors overlap and can be dependent, so a collection of errors is not automatically an independent sample.
Prediction intervals describe a distribution for future outcomes under a model and its assumptions. They are not promises. Evaluate empirical coverage and width on later observations, including the horizons actually used. A 95% interval that covers almost everything because it is unhelpfully wide may be poorly suited to planning. A narrow interval with low coverage understates risk. Structural breaks, new competitors, and policy changes may invalidate a model calibrated to an earlier regime. Maintain an override record identifying the new evidence and later assess whether overrides improved performance.
Progressive practice
- Foundation: reproduce every rolling-origin forecast and error in the six-month example.
- Application: calculate the next exponential-smoothing level after observing 130, using alpha = 0.5 and prior level 112.5.
- Transfer: a monthly cash forecast uses sales as its target. Identify the additional timing relationships needed to forecast receipts.
- Synthesis: write a deployment specification containing target, origin, horizon, available predictors, baseline, split design, error measures, interval checks, and a monitoring trigger.
Worked reasoning for the practice
The next smoothed level is 0.5(130) + 0.5(112.5) = 121.25. Forecasting receipts requires invoice timing, payment terms, partial payments, collection delays, refunds, and opening receivables as appropriate. A defensible specification could target next month's collected dollars at each month-end, using only then-available invoices and payment history, compared with a seasonal naive baseline on chronological origins. Score absolute dollar error, shortfall loss, and interval coverage. Review after sustained bias or a documented process change rather than promising that one favorable test period proves permanent accuracy.
Subject-matched external readings
Open runnable laboratories and source code