Learning objectives
- Interpret the intercept, group term, and interaction with their units and reference groups.
- Distinguish a conditional prediction from a claim about changing a predictor.
Learn
Regression is a model of a relationship in a defined set of observations. An interaction lets the slope associated with one predictor differ across a second predictor's values. Interpret coefficients by forming a prediction under specified conditions. Use actual observed ranges to determine where the model has evidence and fit a different design if the question is about a causal intervention.
Multiple regression changes the contrast
With several predictors, create an explicit design matrix including the intercept, indicators and transformations. Full column rank is required for a unique coefficient vector in ordinary least squares. The normal equations express residual orthogonality to each included column. The original companion reconstructs these equations in full for its eight rows; it also demonstrates the Frisch–Waugh–Lovell identity by residualizing both outcome and focal regressor against the same controls.
Holding included predictors fixed describes a model contrast. It does not guarantee that the data observe that contrast or that an intervention can change only one feature. Nonoverlapping groups, almost redundant predictors or a restricted range can make interpretation depend heavily on functional form. Exact collinearity causes nonuniqueness; near collinearity can amplify coefficient uncertainty and sensitivity. Merely adding a small number to make an inverse exist changes the estimator rather than creating missing information.
An omitted factor biases a proposed causal coefficient when its relationship with the outcome and the included predictor violates the needed exogeneity condition; omission is not judged simply by counting variables. Including a post-treatment mediator, a collider or a variable defined by future outcomes can also change or distort the intended comparison. Specify the causal estimand and data-generation argument before selecting controls. A good forecast can use predictors whose coefficients should not be called policy effects.
A code is a claim about comparisons
A categorical variable with kcategories commonly uses an intercept and k−1 indicators with one reference category in a full-rank design. Including every category indicator and an intercept creates an exact redundancy. The omitted category is a reference, not a discarded population. Coefficients compare modeled outcomes under the chosen coding and other included conditions. Change the reference consistently and fitted values should remain unchanged, though individual coefficient labels and their tests can change.
An interaction allows the contrast for one variable to depend on another. A group-specific slope is a sum of relevant coefficients, and a group difference can vary with x. A quadratic term creates a local slope depending on x even while the model remains linear in unknown coefficients. Keep the meaningful lower-order terms when making an equivalent recoding; omitting one changes the fitted family rather than merely changing labels.
Use independent Willow yhat=4+2 x+3 D+xD. At D 0 the slope is 2 and at D 1 it is 3. The group contrast at xis 3+x. Center at x 2 with z=x−2: the same function is 8+2 z+5 D+zD. At x 2, predictions are 8 and 13 and contrast 5. If the indicator is reversed to E=1−D, the function becomes 7+3 x−3 E−xE. Verify predictions by substituting, not by calling the new negative indicator a reversal of the underlying data relationship.
If the observations contain only D 0 at small x andD 1 at large x, a same-xgroup contrast may be extrapolated even when the formula is easily evaluated. Centering does not supply missing overlap. Standard errors for combined coefficients require covariance. For a linear contrast c'b, its variance is c'Vc, where V must match the actual inferential design. A coefficient's standalone SE does not answer every contrast question.
Diagnose distinct problems separately
A residual is observed minus fitted response. Plot residuals against fitted values, each important predictor, group and observation time. Curvature can suggest a missing mean term; changing spread can suggest conditional variance differences; runs over time can suggest dependence. None identifies its cause uniquely. An incorrect unit, an omitted interaction and a selected sample can produce patterns requiring different responses. Inspect definitions and substantive mechanisms before mechanically adding a term.
Leverage concerns location in predictor space. In a full-rank least-squares design, the projection matrix is H=X(X'X)⁻¹X', and its diagonal entries sum to the number of fitted coefficients. A high-leverage row can pull a fit strongly even with a small residual. Influence measures how the fitted relationship changes under a specified perturbation, such as leaving one row out; it combines design position and residual departure. A threshold is a screening aid, not permission to delete valid data.
Standardized or studentized residuals compare departures on a variance scale, sometimes adjusting for leverage. Cook-style influence measures and deletion diagnostics summarize sensitivity under their definitions. They do not determine whether an observation is erroneous or whether the population should exclude it. Report documented corrections separately from analyses with and without legitimate observations. If a small change reverses a consequential recommendation, investigate model form and support rather than conceal the reversal.
Multicollinearity concerns relationships among design columns. Exact dependence prevents a unique unrestricted coefficient vector; near dependence can amplify variance and sensitivity. It does not automatically bias an otherwise appropriate OLS estimand. Centering can improve a reference interpretation but cannot create missing independent information. Residual orthogonality is a projection identity and does not verify exogeneity, normality or the conditional mean.
Apply
A fictional data model estimates delivery hours as 2 + 0.5x + 1.0g + 0.2xg. Here x is distance in tens of miles and g is 1 for a special delivery category and 0 for a standard one. At four tens of miles the predictions are 4.0 and 5.8 hours. The slope is 0.5 hours per ten miles for standard deliveries and 0.7 for special ones. The category difference is 1.0 hour at zero distance and changes by 0.2 for each distance unit. If zero distance is outside the data, the intercept comparison is an algebraic anchor. Keep omitted route and service differences in mind when interpreting the estimates.
Optional check
What is the predicted category difference at x equals five?
Show the explained answer
The difference is 1.0 + 0.2 times five, or 2.0 hours. The estimate describes the model under that set of conditions and does not establish that switching the category creates the delay.