mindstair

Home / Courses / Statistics 2 / Unit 6

Statistics 2 Unit 6: Multiple Regression

Multiple regression models a response with several predictors at once, letting you estimate the effect of one variable while holding others fixed. You will interpret coefficients, run overall and individual tests, compare models and spot multicollinearity.

Covers: Partial slopes and interpretation, Indicator (dummy) variables, Overall F test and individual t tests, R² and adjusted R², Multicollinearity, Interaction and polynomial terms, Nested models and model selection

Study guide

Multiple regression extends the simple model to μ_y = β₀ + β₁x₁ + … + β_kx_k with normal errors of constant SD σ. Each coefficient is a partial slope: the change in the mean of y for a one-unit increase in that predictor, holding all the other predictors constant. That phrase is the heart of the method. A partial slope can be much smaller than, or even opposite in sign to, the slope from a simple regression, because the simple slope also absorbs the effects of correlated variables left out of the model. Interpret coefficients in context, with units, as average associations.

Categorical predictors enter through indicator (dummy) variables equal to 1 for a category and 0 otherwise. A variable with c categories needs c − 1 indicators, with the omitted category serving as the baseline; each indicator's coefficient is the predicted difference from the baseline at fixed values of the other predictors. An interaction term, such as x·D, lets the slope on x differ between groups, so the fitted lines are no longer parallel. Polynomial terms such as x² capture curvature. With interactions or polynomials, the effect of x depends on other values and you cannot interpret its coefficient alone.

Inference happens at two levels. The overall F test, with (k, n − k − 1) df, tests H₀: all slopes are zero; F = MSR/MSE = (R²/k)/((1 − R²)/(n − k − 1)). Individual t tests, t = bⱼ/SE(bⱼ) with n − k − 1 df, ask whether a predictor adds explanatory power given all the others. To test several coefficients at once, compare nested models with F = [(SSE_reduced − SSE_full)/q]/MSE_full, where q is the number of coefficients dropped. Joint and individual tests can disagree when predictors overlap, which is why joint F tests exist.

R² = SSR/SST never decreases when you add a predictor, even pure noise, so it rewards complexity. Adjusted R² = 1 − (1 − R²)(n − 1)/(n − k − 1) includes a penalty and rises only when a new predictor helps more than chance would. Models with many predictors relative to n can overfit: they chase noise, report impressive R² values, and predict new data badly. Good practice combines subject knowledge, adjusted R² or similar criteria, residual checks, and ideally validation on fresh data.

Multicollinearity occurs when predictors are strongly correlated with each other. It does not bias predictions or the overall F, but it inflates the standard errors of the affected coefficients, making them unstable and their t tests weak. The variance inflation factor, VIF = 1/(1 − R²ⱼ), where R²ⱼ comes from regressing xⱼ on the other predictors, measures this; values above about 5 to 10 are warning signs. A classic symptom is a significant overall F with no significant individual t tests. Remedies include dropping a redundant predictor or combining correlated ones. Check residual plots against ŷ and against each predictor, including omitted ones, for patterns.

Key ideas

Formulas and rules

ŷ = b₀ + b₁x₁ + … + b_kx_k; error df = n − k − 1
F = (R²/k)/((1 − R²)/(n − k − 1)) = MSR/MSE
t = bⱼ/SE(bⱼ); CI: bⱼ ± t*·SE(bⱼ)
Adjusted R² = 1 − (1 − R²)(n − 1)/(n − k − 1)
Nested F = [(SSE_red − SSE_full)/q]/[SSE_full/(n − k − 1)]
VIF = 1/(1 − R²ⱼ)

Common mistakes

Before the test, make sure you can

Words to know

Multiple regression
A model predicting y from two or more explanatory variables.
Partial slope
The change in mean y per unit of one predictor with all other predictors held fixed.
Indicator variable
A 0/1 variable that represents membership in a category.
Baseline category
The category with no indicator; other categories' coefficients are differences from it.
Interaction term
A product of predictors that lets the effect of one depend on the value of another.
Overall F test
Tests whether all slope coefficients are zero.
Individual t test
Tests whether one coefficient is zero given the other predictors in the model.
Nested models
Two models where the reduced one is the full one with some coefficients set to zero.
Adjusted R²
R² penalized for the number of predictors.
Multicollinearity
Strong correlation among predictors, which inflates coefficient standard errors.
Variance inflation factor
1/(1 − R²ⱼ); how much collinearity inflates a coefficient's variance.
Overfitting
Fitting noise by using too many predictors relative to n, which hurts prediction.
Omitted-variable bias
Distortion of a coefficient when a relevant correlated predictor is left out.
Polynomial term
A power of a predictor, such as x², used to model curvature.

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

In the multiple regression model μ_y = β₀ + β₁x₁ + β₂x₂, the coefficient β₁ is:

  1. The change in mean y per unit of x₁, holding x₂ fixed
  2. The share of variation in y explained by x₁
  3. The correlation between x₁ and y
  4. The change in mean y per unit of x₁, ignoring x₂ entirely
Show the answer and steps

Answer: A) The change in mean y per unit of x₁, holding x₂ fixed

  1. In multiple regression each slope is a partial slope.
  2. β₁ describes the effect of x₁ when the other predictors are held constant.
  3. That can differ greatly from the simple-regression slope that ignores x₂.
Question 2 (level 1)

The overall F test in multiple regression tests the null hypothesis that:

  1. At least one of the slopes is zero
  2. All slope coefficients are zero
  3. R² equals one
  4. The intercept is zero
Show the answer and steps

Answer: B) All slope coefficients are zero

  1. H₀: β₁ = β₂ = … = β_k = 0.
  2. Hₐ: at least one βⱼ ≠ 0.
  3. Rejecting H₀ says the predictors together are useful, not which ones.
Question 3 (level 3)

In a model with 3 predictors and n = 50, a coefficient is 0.85 with SE 0.40. What are t and the two-sided p-value?

  1. t = 2.13, p ≈ 0.020
  2. t = 2.13, p ≈ 0.039
  3. t = 2.13, p ≈ 0.034
  4. t = 0.47, p ≈ 0.64
Show the answer and steps

Answer: B) t = 2.13, p ≈ 0.039

  1. t = 0.85/0.40 = 2.13.
  2. df = 50 − 3 − 1 = 46; two-sided p ≈ 0.039.
  3. 0.020 is one-sided, and 0.034 uses the normal table.