MSCA 602 Session 7 (Reworded): Collinearity & Model Selection

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/41

encourage image

There's no tags or description

Looks like no tags are added yet.

42 Terms

1
New cards

What is collinearity?

Two or more Xs are strongly linearly related to each other, so the data cannot separate their individual effects on Y.

2
New cards

What does collinearity affect, and what does it NOT affect?

Affects: individual (partial) coefficients, which get large SEs, wide CIs, and unstable values. Does NOT necessarily affect: overall fit (R²), the overall F-test, or predictions.

3
New cards

3D plot of Y over the X₁–X₂ floor: the X points are spread widely across the floor. What does it mean for the regression plane?

Low correlation between X₁ and X₂. The plane is well supported in all directions, so both partial effects are estimated precisely.

4
New cards

3D plot: all the X points lie on a single straight line on the floor. What does it mean?

Perfect correlation between X₁ and X₂. Infinitely many planes fit equally well (the plane can rotate around the line), so the separate effects cannot be identified.

5
New cards

3D plot: the X points lie in a narrow band on the floor. What does it mean?

High but imperfect correlation. A unique plane exists, but it wobbles easily with small changes in the data → large SEs and unstable coefficients.

6
New cards

What is perfect collinearity, and how does R show it?

One X is an exact linear combination of others. There is no unique solution; R reports NA ("not defined because of singularities"). Usually a specification mistake, fixed by removing the duplicate variable.

7
New cards

Give two examples of perfect collinearity

(1) The same variable in two units, e.g., car weight in 1,000 lb and in pounds (weight_pounds = 1000 × wt). (2) All m category dummies plus the intercept (dummy variable trap).

8
New cards

What is imperfect collinearity?

The Xs are strongly but not perfectly related. Coefficients can be estimated, but they are imprecise and unstable. Harder to deal with: there is no quick fix.

9
New cards

What is the classic regression-output symptom of collinearity?

High R² and a significant overall F-test, but few or no significant individual t-tests; coefficients change size or flip sign when variables are added or dropped.

10
New cards

Besides collinearity, what else causes large standard errors?

A small sample, little variation in X, and large error variance.

11
New cards

When is collinearity actually a problem?

Only when the coefficients you care about are too imprecise to answer your question. The standard errors are the bottom line.

12
New cards

Formula for the variance of Bⱼ in multiple regression

Var(Bⱼ) = [1 / (1 − R²ⱼ)] × σ² / [(n − 1)S²ⱼ]. The first factor is the VIF: how much collinearity inflates the variance.

13
New cards

What is the VIF, and how is it computed?

VIFⱼ = 1 / (1 − R²ⱼ), where R²ⱼ comes from the auxiliary regression of Xⱼ on all the other Xs. It is the factor by which the variance of Bⱼ is inflated. √VIF = how many times wider the SE and CI are.

14
New cards

VIF quick table

R²ⱼ = 0 → VIF 1; 0.5 → 2; 0.8 → 5; 0.9 → 10 (√VIF = 3.2); 0.99 → 100.

15
New cards

Graph: √VIF (Y) vs. Rⱼ, the correlation of Xⱼ with the other Xs (X). The curve stays flat near 1 and then shoots up near Rⱼ = 1. Interpret.

√VIF stays near 1 until about Rⱼ = 0.6, reaches 2 (SE doubles) at about Rⱼ = 0.87, and explodes as Rⱼ → 1. Moderate correlation costs little precision; only very high overlap really hurts.

16
New cards

Rule of thumb for the VIF

VIF > 10 is a common warning sign, but the VIF measures lost precision, not a pass/fail rule. Judge by the actual SEs and CIs.

17
New cards

Why aren't pairwise correlations enough to detect collinearity?

An X can be almost perfectly explained by a COMBINATION of several Xs even if no single pair is highly correlated. The VIF uses all the other Xs, so it catches this.

18
New cards

What is the GVIF?

Generalized VIF for a SET of related regressors (all dummies of a factor, or polynomial terms). Unlike separate VIFs, it doesn't change with coding choices such as the baseline category.

19
New cards

mtcars data (32 car models; mpg; disp = engine size; hp = horsepower; wt = weight in 1,000 lb; qsec = quarter-mile time): mpg ~ disp + hp + wt + qsec gives R² = 0.835, F p < 0.001, but only wt is significant (−4.61, p = 0.001). What is going on?

The classic collinearity symptom: together the Xs explain 83.5% of mpg variation, but individually most are not significant because they overlap so much that the data can't separate their effects.

20
New cards

mtcars: wt coefficient = −4.61. Interpret.

"Holding disp, hp and qsec constant, a 1,000 lb increase in weight is associated with an average decrease of 4.61 miles per gallon."

21
New cards

mtcars correlations: disp–wt 0.89, disp–hp 0.79, hp–qsec −0.71. Interpret.

Big engines, heavy bodies and high horsepower go together; powerful cars also have faster (shorter) quarter-mile times. These overlaps are the source of the collinearity.

22
New cards

mtcars VIFs: disp 7.99, wt 6.92, hp 5.17, qsec 3.13. Interpret disp.

disp's variance is about 8× larger than with uncorrelated Xs, so its SE is √7.99 ≈ 2.8× larger. Below 10, but with only n = 32 it is enough to make disp non-significant.

23
New cards

mtcars auxiliary regression: disp ~ hp + wt + qsec gives R² = 0.875. Compute the VIF and interpret.

VIF = 1 / (1 − 0.875) = 1 / 0.125 = 8.0. 87.5% of the variation in engine size is explained by the other Xs; only 12.5% is unique information for estimating disp's own effect.

24
New cards

mtcars: the disp coefficient is +0.0027, then −0.0009, then −0.0177 in different models, while wt stays between −4.6 and −3.4. Interpret.

disp is unstable and even changes sign: the data can't separate its effect from the correlated Xs. wt is robust across models, so its effect is well estimated.

25
New cards

mtcars: hp becomes significant only after qsec is removed. Why?

hp and qsec overlap (r = −0.71). Without qsec, hp picks up qsec's share of the effect. Dropping a variable changes the MEANING of the remaining coefficients.

26
New cards

mtcars joint test of disp = hp = 0: RSS without them 195.46 (df 29), with them 185.64 (df 27). Compute F and interpret.

H₀: βdisp = βhp = 0. F = [(195.46 − 185.64)/2] ÷ (185.64/27) = 4.91 / 6.88 = 0.71, p = 0.498 > 0.05 → fail to reject. Given wt and qsec, engine size and horsepower together add little.

27
New cards

Why center X before adding X²?

X and X² are highly correlated when X is positive (mtcars disp and disp²: r = 0.98, VIFs 28 and 24). Centering (X − mean) drops the VIFs to 4.9 and 1.2 with an IDENTICAL fit (R² 0.858). It removes artificial collinearity.

28
New cards

Why is there no quick fix for collinearity?

Collinear data contain little information about the separate effects; no statistical trick can create missing information. The ideal fix is new data with more independent variation (e.g., an experiment).

29
New cards

What is model re-specification as a response to collinearity?

Combine or choose among variables that measure the same thing (e.g., GDP, energy use and internet use → one "development" index), or use principal components. Only sensible if the new model has a clear meaning.

30
New cards

What is the risk of dropping variables to reduce collinearity?

It changes the meaning of the remaining coefficients, and dropping a confounder biases them. Lower collinearity alone does not justify removing a variable.

31
New cards

How can prior information help with collinearity?

If theory says two effects are equal (e.g., β_dividends = β_interest in a savings model), combine them into one regressor (dividends + interest). Valid only if that restriction is truly credible.

32
New cards

What is stepwise selection, and what are its problems?

Adding (forward) or dropping (backward) variables one at a time based on significance. Problems with collinear Xs: which one enters is partly chance, entry order ≠ importance, and the final model hides selection uncertainty. Most defensible when the goal is prediction.

33
New cards

What is all-subsets selection?

Fitting every possible subset of Xs and comparing them. Shows when several models are nearly equally good, but searching so many models increases the chance of fitting noise.

34
New cards

What rules should variable selection follow?

Keep or drop related regressors as a set (all dummies of a factor together), and never drop a main effect while its interaction is still in the model.

35
New cards

Why not remove every non-significant term?

"No evidence of an effect" is not "evidence of no effect" (low power), and removing a confounder biases the other coefficients.

36
New cards

Why not keep every significant term?

Multiple testing: with 20 tests at 5%, the chance of at least one false positive is 1 − 0.95²⁰ ≈ 64%. And with a large n, trivial effects become significant.

37
New cards

Adjusted R² for model comparison

1 − [(n − 1)/(n − s)] × RSS/TSS, s = number of parameters. Penalizes extra parameters; choose the HIGHEST. (Plain R² always rises when you add variables.)

38
New cards

AIC for model comparison

AIC = n·log(RSS/n) + 2s. Fit plus a penalty of 2 per parameter. Choose the LOWEST.

39
New cards

BIC for model comparison

BIC = n·log(RSS/n) + s·log(n). Bigger penalty than AIC once n ≥ 8, so it favors simpler models. Choose the LOWEST.

40
New cards

mtcars model comparison table: the model hp + wt has the highest adjusted R² (0.815) and the lowest AIC (63.8) and BIC (68.2). Interpret.

All three criteria pick hp + wt. Adding disp and qsec improves fit by less than the penalty for the extra parameters, so the simpler model is preferred.

41
New cards

What are the limits of adjusted R², AIC and BIC?

They only rank the models you compared; the best one is not proven true. Keep variables the research question needs (e.g., confounders) even if a criterion would drop them.

42
New cards

What is model validation?

Split the data: build the model on a training sample and evaluate it on a separate validation sample. Guards against overfitting; needs a large n; cannot fix poor measurement or bad study design.