Multiple linear regression
Multiple regression models the mean response as a linear combination of several predictors, each coefficient describing a change with the others held fixed.
- change in mean y per unit of , holding the other predictors constant
- number of predictors; p = k + 1 coefficients with the intercept
- error term, mean 0, variance
- explained sum of squares
- RSS/(n − p), the residual mean square
- residual sums of squares of the reduced and full models (same rows)
- their residual degrees of freedom
When to use
- Predicting y from several predictors, or estimating the association of one predictor with y while adjusting for others.
- Categorical predictors enter as dummy (0/1) columns, one per level except a reference level; each dummy's coefficient is the difference in mean y between that level and the reference, other predictors fixed.
Assumptions
LINE conditions on the errors (see residual diagnostics), more observations than coefficients, and no predictor an exact linear combination of others (the engine refuses such "aliased" columns and names them).
How to interpret
- "Holding the other predictors constant" is part of every coefficient's meaning; adding or removing predictors can change a coefficient a lot.
- The overall F test asks whether the predictors together explain more than chance; the nested F test asks whether a set of extra terms improves the model (for one extra term, F = t²).
- Use adjusted R² (not R²) to compare models with different numbers of predictors — see R².
Common mistakes
- Interpreting coefficients causally, or "holding constant" combinations that never occur in the data.
- Including a dummy for every level plus an intercept (perfect collinearity).
- Judging importance by coefficient size when predictors have different units.
- Ignoring multicollinearity.
Example
Eight (synthetic) flats: price (thousand SAR) on size (m²) and age (years).
- Fit: ; , , adjusted .
- For flats of the same age, each extra m² goes with 1.92 thousand SAR higher price on average; each extra year of age, with 2.64 lower.
- Nested F for adding age to a size-only model: RSS falls from 345.5 to 75.2, on (1, 5) df, p = 0.0082 — equal to the age t-test (, ).