Knowledge Institute · 8–10 minutes with practice

Validate the forecast you intend to use

Read a regression as a conditional prediction and compare it with a simpler baseline on genuinely later data.

Business Practice Quick Courses

Learning objectives

Learn

A model associates larger service jobs with more staff time. That can help estimate a quote for a similar future job. It does not tell you what would happen if you changed only floor area and left every other relevant feature untouched. The data may mix different equipment, sites and access conditions. Specify what the outcome means, the available predictors and the kinds of jobs the model will face.

Defining what a regression means

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.

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.

Apply

For four fictional jobs held out until after model development, actual hours are 5, 8, 7 and 10. A model predicts 6, 7, 9 and 9. The absolute errors are 1, 1, 2 and 1, averaging 1.25. A simple baseline, fixed in advance at 7 hours, has errors 2, 1, 0 and 3, averaging 1.5. This is a modest observed improvement in a tiny set. Inspect errors individually and ask whether they differ by job type or direction. A forecast that underestimates the largest jobs can create costly problems even if it improves average error.

Keep the split chronological if the intended use is to forecast after conditions may shift. If the analyst adjusts the model while looking at the comparison set, find a fresh evaluation set for the final test.

Optional check

Why is a good fit on the training jobs usually weak evidence of future forecast accuracy?

Show the explained answer

The fitted coefficients used those observations. A later or held-out comparison supplies a more independent test of behavior under the intended prediction conditions.

Sources and further reading

Continue in Lawfare Academy

Full course · Regression and Business Forecasting