Concepts
- A partial -test asks whether a whole group of predictors can be dropped at once, generalizing the individual coefficient -test from one predictor to several simultaneously.
- Suppose a model already has predictors (the reduced model), and we’re deciding whether to add more, (together making the full model).
- all new coefficients are zero, given the existing predictors — the reduced model is adequate — against at least one of them is nonzero.
- under , where the denominator degrees of freedom use the full model’s parameter count.
- Why divide the numerator by : it converts the total improvement in fit into an average improvement per added coefficient, so adding more variables doesn’t automatically look better just because there are more of them.
- Adding and removing variables are the same comparison viewed from opposite directions — “does dropping these predictors hurt the fit” and “does adding these predictors help the fit” are the identical nested-model test.
- For a single added predictor, the partial -test is exactly the same test as its ordinary coefficient -test, just expressed as a ratio instead of a ratio-under-a-square-root.
- With , has the same distribution as , so testing one coefficient’s and testing it as a one-variable partial always agree, numerically and in conclusion.
- The sign of disappears when squared, but the two-sided -test and the (always upper-tailed) -test give the identical -value either way.
- Equivalently, the partial ‘s numerator can be written as an added regression sum of squares rather than a drop in RSS — same quantity, different bookkeeping.
- , since holds for both models on the same response data.
- Use whichever quantity is actually available in a given problem — residual sums of squares from two
summary()calls, or sequential sums of squares straight out of ananova()table.
- Type I (sequential) sums of squares attribute to each predictor only the extra variation it explains once the terms before it (in formula order) are already in the model.
- For formula order : , then , then .
- These successive differences telescope: every intermediate cancels when added up, so the three rows sum to exactly the full model’s — this is why a Type I ANOVA table’s rows always add to the total regression SS.
- Order matters whenever predictors overlap in what they explain: whichever one enters first claims the shared variation, leaving less for the predictor that enters after it — so in general, even though the full model’s total (and its fitted values) never change with formula order.
anova(lm(y ~ x1 + x2 + x3))in R reports exactly this sequential breakdown, in whatever order the formula lists the predictors.
- Type III (added-last) sums of squares instead assess every predictor as if it entered after all the others, which is a different question from Type I’s running tally.
- For predictor in a three-predictor model, compare the model with against the full model with — ‘s contribution is measured last, no matter what order the formula lists terms in.
- Unlike Type I, the separate added-last contributions generally do not sum to the full model’s — they’re independent conditional comparisons, not one running total.
- For an ordinary continuous predictor with no interaction or rank-deficiency complications, this added-last one-coefficient test is exactly the predictor’s own -test in
summary(lm(...)), and from above. - A Type I row can only be read as an added-last test for the last predictor actually entered in that formula order — reading an earlier row as “added-last” silently assumes an ordering that wasn’t actually used.
- In R,
anova()on a single fitted model gives Type I; the added-last (Type III) comparison for one or several terms has to be built explicitly as two nested models.anova(model)→ sequential SS in the formula’s own order.anova(reduced, full)→ the partial -test for exactly the terms present infullbut missing fromreduced, regardless of what order either formula lists its terms in.drop1(model, test="F")→ the added-last test for every predictor at once, each measured as if it alone were removed last from the full model.- The fitted values, , and of a model never depend on the order predictors are listed in the formula — only each individual Type I row’s sequential SS does.
- Forward selection and backward elimination are Type I and Type III thinking turned into a model-building strategy, not new statistical machinery.
- Forward selection starts from an intercept-only model and repeatedly asks “does adding this predictor help, given what’s already in” — the same question Type I’s running sequence asks.
- Backward elimination starts from every candidate predictor and repeatedly asks “does removing this predictor hurt, given everything else stays in” — the same question Type III’s added-last view asks.
- Neither procedure guarantees the single best model; repeated -value-based selection on the same data also complicates how the resulting -values should be interpreted afterward.
- A fixed checklist for any nested-model (, global , or partial ) question, in the order the professor laid it out: (1) state and precisely, including which predictors are held fixed; (2) write out the exact reduced and full models, intercepts included; (3) identify (predictors being tested) and the full model’s residual df; (4) recover from if only the residual standard error is given; (5) compute using the full model’s in the denominator; (6) compare against the supplied critical value or compute the -value; (7) state the conclusion conditional on the retained predictors, not as an unconditional claim about any one predictor alone.
Practice Problems
-
Problem 1 (
mtcars, testing whetherdispanddratcan be jointly dropped from the full model). Reduced: . Full: .- Solution.
- given
hp, wtin the model; at least one of them is nonzero - predictors tested, full model residual df
anova(lm(mpg~hp+wt), lm(mpg~disp+hp+drat+wt)): ,- on df,
- fail to reject at — no evidence that
dispanddratjointly add anything oncehpandwtare already in the model; this matches both predictors’ individually non-significant -tests in MLR Inference, ANOVA, and Adjusted R-Squared Problem 1
- given
- Solution.
-
Problem 2 (
mtcars) — sequential SS changes with formula order, but the total never does. Compareanova(lm(mpg ~ disp+hp+drat+wt))against the same model fit aslm(mpg ~ wt+drat+hp+disp).- Solution.
- order
disp, hp, drat, wt: sequential SS (each conditional on only the terms listed before it) - order
wt, drat, hp, disp: sequential SS — completely different individual numbers - both orders sum to the same total, (rounding), which is the full model’s either way
disp’s last-listed sequential SS in the second ordering, , matches its added-last (Type III) contribution exactly — because it’s genuinely entered last in that formula;disp’s first-listed sequential SS in the first ordering, , is a completely different number asking a completely different question (how muchdispexplains on its own, before anything else is in the model)
- order
- Solution.
-
Problem 3 (
mtcars) — verify the added-last (Type III) sums of squares against each predictor’s own -test, confirming for every term at once. Usedrop1(model1, test="F")on the full model.- Solution.
drop1gives added-last :disp,hp,drat,wt- squaring each coefficient’s own from
summary(model1): , , , — all four match theirdrop1exactly, confirming the added-last test for an ordinary continuous predictor is always the same test as its own coefficient -test
- Solution.
-
Problem 4 (class example, homicide rate regressed on population , income , unemployment — numbers from the handout/class notes, already cross-checked there against
pf(); the raw dataset isn’t available locally to refit directly). Given already in the model, are jointly significant? Reduced: . Full: .- Solution.
- given ; at least one of
- , full model residual df (three predictors, : )
- entering first, the sequential SS for the other two are and — these can be added together into precisely because was entered first, so both are conditional on at least already being in
- — fail to reject at : insufficient evidence that population and income jointly improve the model once unemployment is already in it
- this doesn’t contradict a highly significant global for all three predictors together — a model can explain significant overall variation while a specific conditional subset of its predictors contributes nothing further
- Solution.