DEVELOPED COURSE TEXT
Comparisons, regression and an auditable business conclusion
Specify the comparison and preserve the units
A group comparison needs compatible outcomes, eligible units and periods. Changing the customer mix or observation window can change a crude average even when within-group behavior is stable. Standardization can make composition explicit, but requires a target weighting distribution and does not by itself establish a causal effect. Report the estimand before choosing the most favorable summary.
A fitted line is a conditional model
A simple least-squares line summarizes a chosen linear relationship between an outcome and predictor in observed data. Its intercept and slope belong to that scale and sampled range. Prediction beyond the observed range requires additional justification. The slope is not automatically the effect of intervening on the predictor; shared causes, selection, reverse direction and measurement may explain association. A high fit statistic cannot identify the causal direction.
Diagnostics and reporting expose limitations
Residuals are observed outcomes minus fitted values. Their patterns can reveal curvature, changing spread, dependence or influential observations that a single fit statistic hides. A residual check is not proof that every assumption is correct. Preserve data definitions, exclusions, model choices and sensitivity analyses so another analyst can inspect the inference. An honest report distinguishes description, prediction and causal interpretation, includes uncertainty and acknowledges conclusions that change under plausible alternatives.
Worked records
Record 1
Four fictional advertising-spend values x are 1, 2, 3 and 4 units; corresponding sales y are 2, 4, 5 and 5 units. Fit the least-squares line with an intercept.
Develop the reasoning
The means are x-bar = 2.5 and y-bar = 4. The centered cross-product sum is 5 and the centered x-squared sum is 5, so the slope is 1 and intercept is 1.5. Predictions are 2.5, 3.5, 4.5 and 5.5; residuals are −0.5, 0.5, 0.5 and −0.5. Their sum is zero, as expected for this fitted intercept model, but their pattern could suggest curvature worth investigating with more suitable data. The residual sum of squares is 1 and total sum of squares is 6, giving R-squared 5/6. None of these calculations proves that increasing spend causes the observed sales increase. Demand conditions, targeting and other factors remain possible explanations.
Progressive practice — optional
1. Foundation
Use the fitted line to predict y at x = 3.
Compare the worked reasoning
The prediction is 1.5 + 3 = 4.5 under this fitted model.
Change the record
The observed outcome is 5.
Compare the changed-record reasoning
The residual is 5 − 4.5 = 0.5; it is not the prediction minus the observation.
2. Application
Can R-squared 5/6 prove that changing spend causes higher sales?
Compare the worked reasoning
No. It summarizes fit in this dataset under the model, not causal identification.
Change the record
High-demand periods also receive more advertising.
Compare the changed-record reasoning
That shared condition is a plausible alternative explanation requiring a suitable causal design or assumptions.
3. Transfer
Predicting at x = 20 is numerically easy. Is the estimate therefore justified?
Compare the worked reasoning
No. It extrapolates far beyond x = 1 to 4, where the relationship may differ.
Change the record
A new operating regime changes the market.
Compare the changed-record reasoning
The model’s applicability needs fresh evidence and validation. Report the boundary instead of presenting algebraic convenience as reliability.
Sources and scope
- NIST/SEMATECH e-Handbook — Statistical methods: Background statistical definitions and methods. The fictional business records and worked analyses here are original Academy teaching.