Multiple
Regression
Learn how to model outcomes using two or more predictor variables, interpret coefficients, and evaluate model fit with \( R^2 \).
What Is Regression?
Regression is a statistical method that models the relationship between a dependent variable (what you want to predict) and one or more independent variables (predictors). It finds the "best-fit" equation that minimizes prediction errors.
From Simple to Multiple
Simple linear regression uses one predictor: \( \hat{Y} = b_0 + b_1 X_1 \). Multiple regression extends this by adding more predictors, letting us capture the combined effect of several factors at once.
Why Businesses Use It
The Model Equation
Visualizing the Model Structure
Interpreting Coefficients
Each coefficient \( b_i \) tells you: "For every one-unit increase in \( X_i \), \( \hat{Y} \) changes by \( b_i \) units, holding all other variables constant."
\( R^2 \) and Adjusted \( R^2 \)
Where \( n \) = sample size and \( k \) = number of predictors. Adding a weak predictor can decrease Adjusted \( R^2 \) even if \( R^2 \) itself goes up.
\( R^2 \) vs Adjusted \( R^2 \)
| Feature | \( R^2 \) | Adjusted \( R^2 \) |
|---|---|---|
| Range | 0 to 1 | Can be < 0 (rare) |
| Adding a variable | Never decreases | May decrease |
| Penalizes complexity? | No | Yes |
| Best use | Single-model summary | Comparing models |
| Formula adjusts for | Nothing extra | \( n \) and \( k \) |
Key Assumptions
How to Build a Model
Example 1: Predicting Sales
A company models monthly sales (\( Y \), in $1,000s) using Ad Spend (\( X_1 \), in $1,000s) and Staff Size (\( X_2 \)). The regression output gives:
Example 1: Making a Prediction
Using the model \( \hat{Y} = 12.4 + 3.2\,X_1 + 1.8\,X_2 \), predict sales when Ad Spend = $5,000 and Staff = 10.
Example 2: Evaluating Fit
A different analyst builds a model with \( k = 4 \) predictors and \( n = 50 \) observations. The output shows \( R^2 = 0.82 \) and \( R^2_{\text{adj}} = 0.80 \). Then they add a fifth predictor and get \( R^2 = 0.823 \) but \( R^2_{\text{adj}} = 0.795 \).
| Metric | 4 Predictors | 5 Predictors |
|---|---|---|
| \( R^2 \) | 0.820 | 0.823 ↑ |
| \( R^2_{\text{adj}} \) | 0.800 | 0.795 ↓ |
Example 3: Reading Output
Common Mistakes
Summary of Key Concepts
| Concept | Symbol | Meaning |
|---|---|---|
| Intercept | \( b_0 \) | Predicted \( Y \) when all \(X_i = 0\) |
| Slope coefficient | \( b_i \) | Change in \( \hat{Y} \) per unit of \( X_i \) |
| Coefficient of determination | \( R^2 \) | % of variance explained |
| Adjusted \( R^2 \) | \( R^2_{\text{adj}} \) | \( R^2 \) penalized for # of predictors |
| p-value | \( p \) | Significance of each predictor |
| Variance Inflation Factor | \( \text{VIF} \) | Detects multicollinearity (\( \text{VIF} > 10 \) = concern) |
Question 1 of 5
In the model \( \hat{Y} = 5 + 2X_1 + 4X_2 \), what does the coefficient \( b_2 = 4 \) mean?
Question 2 of 5
An analyst adds a third predictor to a model. \( R^2 \) increases from 0.78 to 0.782, but Adjusted \( R^2 \) drops from 0.76 to 0.755. What should the analyst do?
Question 3 of 5
Given the model \( \hat{Y} = 10 + 3X_1 - 2X_2 \), what is the predicted \( \hat{Y} \) when \( X_1 = 4 \) and \( X_2 = 3 \)?
Question 4 of 5
Which assumption of multiple regression is violated when the residual plot shows a funnel shape (residuals spread out as fitted values increase)?
Question 5 of 5
A model has a \( \text{VIF} \) of \( 12 \) for predictor \( X_3 \). What does this indicate?