01 / 21

Multiple
Regression

Learn to model real-world outcomes using multiple predictor variables, interpret coefficients, and harness dummy variables for categorical data.

Business Analytics

What Is Multiple Regression?

In simple regression, you predict an outcome using one predictor: \( \hat{y} = b_0 + b_1 x \). But most business questions involve many factors at once.

Multiple regression extends this idea by including two or more independent variables to predict one dependent variable. It lets you isolate the effect of each predictor while controlling for the others.

Why It Matters in Business

Pricing
How do size, location, and age together affect house prices?
Marketing
Which ad channels drive sales after controlling for seasonality?
HR Analytics
Does experience or education better predict employee performance?

From One Predictor to Many

Simple Regression \(x\) \(y\) Multiple Regression \(x_1\) \(x_2\) \(y\)

The Multiple Regression Equation

$$ \hat{y} = b_0 + b_1 x_1 + b_2 x_2 + \cdots + b_k x_k $$
\( \hat{y} \)
Predicted value of the dependent variable
\( b_0 \)
Y-intercept: predicted \( y \) when all \( x \)'s equal zero
\( b_i \)
Partial slope: change in \( \hat{y} \) per unit change in \( x_i \), holding others constant

Interpreting Coefficients

Suppose a model for house price (in $1,000s) is:

$$ \widehat{\text{Price}} = 50 + 0.12 \cdot \text{SqFt} + 8.5 \cdot \text{Bedrooms} $$
1
\( b_0 = 50 \): A house with 0 sq ft and 0 bedrooms would be predicted at $50k (baseline, not always meaningful).
2
\( b_1 = 0.12 \): Each additional sq ft adds $120 to the predicted price, holding bedrooms constant.
3
\( b_2 = 8.5 \): Each additional bedroom adds $8,500 to the predicted price, holding sq ft constant.

Simple vs Multiple Regression

Simple Regression Multiple Regression
Predictors 1 2 or more
Equation \( \hat{y} = b_0 + b_1 x \) \( \hat{y} = b_0 + b_1 x_1 + \cdots + b_k x_k \)
Geometry Line in 2D Plane or hyperplane
Interpretation Total effect of \( x \) Partial effect, holding others constant
Goodness of Fit \( R^2 \) Adjusted \( R^2 \)

Introducing Dummy Variables

Regression requires numerical inputs, but many business variables are categorical (region, product type, yes/no). A dummy variable converts a category into a 0 or 1.

$$ D = \begin{cases} 1 & \text{if condition is true} \\ 0 & \text{otherwise} \end{cases} $$

Dummies in Action

For a variable with \( c \) categories, you need \( c - 1 \) dummy variables. The omitted category is the reference group.

Region (3 levels) North South West (reference) Dummy 1 \(D_{\text{North}}\) 1 if North, else 0 Dummy 2 \(D_{\text{South}}\) 1 if South, else 0 In the model \(\hat{y} = b_0 + \cdots\) \(+ b_3 D_{\text{North}}\) \(+ b_4 D_{\text{South}}\)

How to Build the Model

1
Define the question: What outcome (\( y \)) are you predicting, and which variables (\( x_i \)) might explain it?
2
Prepare the data: Convert categorical variables into dummy variables. Check for missing values.
3
Fit the model: Use software (Excel, Python, R) to estimate coefficients by minimizing the sum of squared residuals.
4
Check significance: Look at p-values for each coefficient. Is \( b_i \) significantly different from 0?
5
Evaluate fit: Check Adjusted \( R^2 \) and residual plots for patterns or violations.

Example 1: Predicting Sales

A retailer models monthly sales ($1,000s) using advertising spend ($1,000s) and store size (1,000 sq ft):

$$ \widehat{\text{Sales}} = 12.4 + 1.8 \cdot \text{Ads} + 5.3 \cdot \text{Size} $$

Example 2: Adding a Dummy

Now add a dummy variable for whether the store is in a mall (\( D_{\text{Mall}} = 1 \)) or standalone (\( D_{\text{Mall}} = 0 \)):

$$ \widehat{\text{Sales}} = 8.1 + 1.6 \cdot \text{Ads} + 4.9 \cdot \text{Size} + 9.7 \cdot D_{\text{Mall}} $$
Mall Store
\( \text{Ads} = 10 \), \( \text{Size} = 4 \):
\( 8.1 + 16 + 19.6 + 9.7 = \) $53,400
Standalone
\( \text{Ads} = 10 \), \( \text{Size} = 4 \):
\( 8.1 + 16 + 19.6 + 0 = \) $43,700

Dummy Variables Shift the Line

Advertising Spend ($1,000s) Sales ($1,000s) 0 20 40 60 5 10 15 20 +$9.7k Mall Standalone

Adjusted \( R^2 \): Model Quality

$$ R^2_{\text{adj}} = 1 - \frac{(1 - R^2)(n - 1)}{n - k - 1} $$
\( R^2 \)
Always increases when you add a variable, even a useless one
\( R^2_{\text{adj}} \)
Penalizes for extra predictors: only increases if the new variable improves the model enough

Common Mistakes

✕ Dummy Trap
Including all \( c \) dummies for a \( c \)-category variable creates perfect multicollinearity. Always use \( c - 1 \).
✕ Omitting "Holding Constant"
Saying "\( b_1 \) is the change in \( \hat{y} \) for a 1-unit change in \( x_1 \)" without adding "holding all other variables constant."
✕ Using \( R^2 \) to Compare Models
Regular \( R^2 \) always goes up with more variables. Use Adjusted \( R^2 \) to compare models with different numbers of predictors.

Key Concepts at a Glance

Concept What It Means Watch Out For
Partial Slope \( b_i \) Effect of \( x_i \) on \( \hat{y} \), others held constant Must say "holding constant"
Intercept \( b_0 \) Predicted \( y \) when all \( x_i = 0 \) Often not meaningful
Dummy Variable Encodes a category as 0 or 1 Use \( c-1 \) dummies
Adjusted \( R^2 \) Model quality, penalizes extra vars Prefer over plain \( R^2 \)
Multicollinearity Predictors correlated with each other Inflates std. errors

Question 1 of 5

In the model \( \hat{y} = 3 + 2x_1 + 5x_2 \), what does the coefficient 5 on \( x_2 \) tell us?

Question 2 of 5

A categorical variable "Season" has 4 levels: Spring, Summer, Fall, Winter. How many dummy variables should you include in your regression?

Question 3 of 5

A model predicts salary: \( \hat{S} = 30 + 2.5 \cdot \text{Exp} + 12 \cdot D_{\text{MBA}} \), where \( D_{\text{MBA}} = 1 \) if the employee has an MBA. What is the predicted salary for someone with 8 years experience and an MBA?

Question 4 of 5

You add a new predictor to a model and Adjusted \( R^2 \) decreases. What does this most likely indicate?

Question 5 of 5

In a multiple regression model, multicollinearity refers to: