Concepts
- With predictors, the same decomposition from Residual and Sum-of-Squares Proofs still holds — the orthogonality that makes the cross term vanish comes from the normal equations, which hold in matrix form exactly as they did in SLR.
- , , — same three definitions, unchanged.
- The MLR ANOVA table has the same three rows as SLR, but the degrees of freedom change to account for predictors instead of one.
- Regression row: df , SS , MS .
- Residual row: df (one degree of freedom lost per estimated slope, plus one for the intercept), SS , MS .
- Total row: df , SS .
- Setting recovers every SLR formula from Regression Inference and ANOVA exactly — SLR is the special case of everything below.
- The global -test asks whether the predictors jointly explain anything at all, the direct generalization of SLR’s single slope test.
- (none of the predictors matter) against at least one .
- , compared against an distribution.
- Why that distribution: under , and independently, and the ratio of two independent ‘s divided by their own degrees of freedom is exactly how an distribution is defined — the ‘s cancel in the ratio.
- The test is always upper-tailed: a larger means more explained variation relative to leftover noise, which is evidence against , not evidence in either direction the way a two-sided -test is.
- Given only (no ANOVA table), the global can still be recovered exactly — this is explicitly flagged as memorize-worthy.
- Start from and divide numerator and denominator by .
- and (from ), so the ratio becomes .
- Given just , , and , this reconstructs the overall model without ever seeing a sum of squares.
- An individual coefficient’s -test is a partial test — it asks whether that one predictor adds anything given the others already in the model, not whether it predicts on its own.
- against , using .
- Interpreting requires the phrase “holding the other predictors constant” (or equivalent) — stating only ” changes by per unit increase in ” omits the conditional nature of the coefficient and is graded as incomplete (the professor’s stated rule: 50% credit lost without it).
- Why the condition matters algebraically: in , comparing the expected response at versus cancels the intercept and the term, leaving exactly — but only because was held fixed in that comparison.
- ’s formula is unchanged from SLR, but with predictors it inherits a structural flaw: it can never decrease as predictors are added.
- , same formula, same “proportion of total variability explained” interpretation.
- Adding any column to — even pure noise — can only shrink or hold fixed, because least squares is still minimizing over a strictly larger search space; so can only rise or stay flat, never fall.
- Carried to the extreme, as the number of predictors approaches , even if none of them are genuinely useful — which is exactly why plain alone can’t be trusted to compare models of different sizes.
- Adjusted fixes that by charging a penalty per predictor, which can make it fall even as plain rises.
- — each sum of squares divided by its own degrees of freedom before comparing.
- Rewriting directly in terms of plain , using : .
- The factor grows as increases — so for a fixed , adding predictors alone inflates the penalty term and pulls down; a predictor only keeps from falling if its contribution to outweighs that growing penalty.
- This is the full worked example behind “memorize these relationships”: adding a predictor that barely moves increases (shrinking ) while barely changing , so the penalty term grows faster than shrinks, and drops.
- Proof that always, one of the “results proved in class” the exam’s theoretical section draws from.
- Want to show .
- Subtract from both sides and multiply by (flips the inequality): .
- Since always, this holds exactly when , i.e. , i.e. — always true.
- So for every , with equality only at (no predictors) or (a perfect fit, ).
- and are equivalent criteria for comparing models of different sizes — minimizing one is the same as maximizing the other.
- Rewriting directly in terms of : .
- and depend only on the response data, which doesn’t change across models being compared on the same dataset — so is a fixed positive constant for that comparison.
- Since is that fixed constant times plus , whichever model minimizes is automatically the one that maximizes — same ranking, two different-looking numbers.
Practice Problems
-
Problem 1 (
mtcars,mpg ~ disp + hp + drat + wt, ) — full coefficient interpretation, ANOVA table, and global .-
Solution.
- fitted model:
- coefficient interpretation requires “holding the others fixed”: e.g. holding
disp, drat, wtfixed, each additional unit ofhpis associated with about fewer mpg, on average - individual -tests:
hp(, ) andwt(, ) are significant given the other three predictors;disp(, ) anddrat(, ) are not - ANOVA table:
Source df SS MS F p-value Regression Residual Total - global on df, — reject ; the four predictors jointly explain a significant amount of the variation in mpg, even though two of them are individually non-significant above
- ,
-
-
Problem 2 (
mtcars) — adjusted can fall even as plain rises; a concrete demonstration of the exam’s “memorize” relationship. Comparempg ~ hp + drat + wtagainst the same model with the non-significantdispadded back in.- Solution.
- without
disp: , - with
dispadded: , - plain ticked up by adding
disp(as it always can), but went down —disp’s own -test above () already said it wasn’t pulling its weight given the other three; the tiny drop in it buys isn’t enough to offset losing a degree of freedom - this is exactly why the model-selection goal from Class Notes stat modeling 15.10.26 is “maximize / minimize ,” not “maximize plain ”
- without
- Solution.
-
Problem 3 — recover the global from , , and alone, no ANOVA table given. Using Problem 1’s model: , , .
- Solution.
- matches Problem 1’s reported exactly — confirms the formula without ever touching a sum of squares
- Solution.
-
Problem 4 — derive from scratch, cold. Show the inequality holds for every .
- Solution.
- start from and
- want:
- subtract from both sides, multiply by (flips the inequality):
- since , this reduces to , which holds exactly when , i.e. when — always true
- so for all , with equality only when or
- Solution.