Sub topic 2
The Multiple Regression Model and What a Partial Slope Means
Prerequisites and the basic idea
This chapter assumes that you understand simple linear regression, means and variances, hypothesis tests, p-values, and the meaning of a confidence interval. You should also be comfortable reading basic regression output.
Simple linear regression relates one dependent variable to one independent variable. Multiple regression extends this model by using two or more independent variables to explain or predict a dependent variable.
The general model is:
\[ Yi = \beta0 + \beta1X{1i} + \beta2X{2i} + \cdots + \betakX{ki} + \varepsilon_i \]
Here:
- \(Y_i\) is the dependent variable for observation \(i\).
- \(X{1i}, \ldots, X{ki}\) are the independent variables.
- \(\beta_0\) is the intercept.
- \(\beta_j\) is the population coefficient for independent variable \(j\).
- \(\varepsilon_i\) is the error term.
The fitted sample equation replaces the unknown population coefficients with estimates:
\[ \hat{Y}i = b0 + b1X{1i} + b2X{2i} + \cdots + bkX{ki} \]
The ordinary least squares method chooses the coefficients that minimize the sum of squared residuals, where a residual is the difference between an observed value and its fitted value.
Interpreting the intercept and partial slopes
The intercept \(b_0\) is the predicted value of \(Y\) when every independent variable equals zero. This interpretation may not be economically meaningful if zero is outside the observed range, but the intercept is still needed to fit the model correctly.
A partial slope describes the expected change in \(Y\) from a one-unit change in one independent variable while holding all other included independent variables constant.
Suppose a regression estimates:
\[ \widehat{\text{return}} = 1.2 + 0.8(\text{market return}) - 0.3(\text{interest rate}) \]
The coefficient 0.8 means that a one-unit increase in market return is associated with a 0.8-unit increase in expected return, assuming the interest rate remains unchanged. The coefficient -0.3 means that a one-unit increase in the interest rate is associated with a 0.3-unit decrease in expected return, holding market return constant.
| Term | Interpretation |
|---|---|
| Intercept \(b_0\) | Predicted \(Y\) when all \(X\) variables equal zero |
| Partial slope \(b_j\) | Change in predicted \(Y\) from a one-unit increase in \(X_j\), holding other \(X\) variables constant |
| Residual | Observed \(Y\) minus predicted \(Y\) |
The phrase “holding other variables constant” distinguishes a partial slope from the slope in a simple regression. Adding relevant variables can change a coefficient because the model separates their overlapping explanatory effects.
import numpy as np
import statsmodels.api as sm
rng = np.random.default_rng(42)
n = 200
x1 = rng.normal(size=n)
x2 = rng.normal(size=n)
y = 1.0 + 2.0 * x1 - 1.0 * x2 + rng.normal(size=n)
X = sm.add_constant(np.column_stack([x1, x2]))
model = sm.OLS(y, X).fit()
print("coefficients:", model.params)
print("standard errors:", model.bse)
print("t-statistics:", model.tvalues)The estimated coefficients should be close to 1, 2, and -1 because those values generated the data. In real data, estimates differ from the population relationships because of sampling variation and the error term.
A practical reading rule
Read each coefficient together with its units, sign, and statistical uncertainty. A coefficient can be economically large but statistically imprecise, or statistically significant but too small to matter economically.
The partial-slope interpretation depends on the model being reasonably specified. If an important variable is omitted or the functional form is inappropriate, the coefficient may not represent the relationship you intend to measure.
Exercise
A fitted model is Y = 5 + 2X1 - 4X2. How should the coefficient on X2 be interpreted?
Show answer
Holding X1 constant, a one-unit increase in X2 is associated with a four-unit decrease in predicted Y.