3.1 Multiple Linear Regression, ANOVA & Hypothesis Testing

Key Takeaways

  • Multiple linear regression models dependent variable Y as a linear combination of k independent variables: Y_i = b_0 + b_1 X_{1i} + ... + b_k X_{ki} + epsilon_i, where each slope coefficient b_j represents the partial slope holding other variables constant under the six CLRM assumptions.

  • The ANOVA table partitions Total Sum of Squares (SST = SSR + SSE) across degrees of freedom (Regression df = k, Residual df = n - k - 1, Total df = n - 1), yielding standard error of the estimate s_e = sqrt(MSE) = sqrt(SSE / (n - k - 1)).

  • Adjusted R-squared penalizes non-informative variables via R^2_{adj} = 1 - [(n - 1)/(n - k - 1)](1 - R^2), increasing if and only if an added variable's t-statistic exceeds 1.0 in absolute value.

  • Individual slope significance is evaluated via Student's t-tests (df = n - k - 1), overall model fit via one-tailed F-tests (df_1 = k, df_2 = n - k - 1), and qualitative categories via d - 1 dummy variables to avoid the dummy variable trap.

Last updated: August 2026

Multiple Linear Regression in Investment Analysis

In financial valuation and quantitative asset management, single-factor models rarely explain asset pricing or financial performance adequately. Multiple linear regression extends simple linear regression by estimating the relationship between a single continuous dependent (target) variable YY and two or more independent (explanatory) variables X1,X2,…,XkX_1, X_2, \dots, X_k:

Yi=b0+b1X1i+b2X2i+⋯+bkXki+ϵi,i=1,2,…,nY_i = b_0 + b_1 X_{1i} + b_2 X_{2i} + \dots + b_k X_{ki} + \epsilon_i, \quad i = 1, 2, \dots, n

Where:

  • YiY_i is the ii-th observation of the dependent variable.
  • b0b_0 is the intercept term (the expected value of YY when all Xj=0X_j = 0).
  • bjb_j is the partial slope coefficient for independent variable XjX_j, measuring the expected change in YY for a one-unit change in XjX_j, holding all other independent variables constant (ceteris paribus).
  • ϵi\epsilon_i is the unobservable random error (disturbance) term for observation ii.
  • kk is the number of independent variables, and nn is the total sample size.
                  ┌──────────────────────────────────────────────────────────┐
                  │             Multiple Linear Regression Model             │
                  │      Y_i = b_0 + b_1*X_{1i} + ... + b_k*X_{ki} + e_i     │
                  └────────────────────────────┬─────────────────────────────┘
                                               │
         ┌─────────────────────────────────────┼─────────────────────────────────────┐
         ▼                                     ▼                                     ▼
┌─────────────────┐                   ┌─────────────────┐                   ┌─────────────────┐
│ CLRM Assumptions│                   │   ANOVA Table   │                   │Hypothesis Tests │
│ - Linearity     │                   │ - SSR, SSE, SST │                   │ - Individual t  │
│ - E(e|X) = 0    │                   │ - MSR, MSE      │                   │ - Overall F     │
│ - Homoskedastic │                   │ - s_e = √MSE    │                   │ - p-values & CIs│
│ - No autocorr   │                   │ - R² vs Adj R²  │                   └─────────────────┘
│ - No multicol   │                   └─────────────────┘
│ - Normality     │
└─────────────────┘

The Six Core Assumptions of the Classical Linear Regression Model (CLRM)

For Ordinary Least Squares (OLS) estimators to be BLUE (Best Linear Unbiased Estimators) and for statistical inference (tt-tests, FF-tests, confidence intervals) to be valid, six assumptions must hold:

  1. Linearity in Parameters: The relationship between the dependent variable and the independent variables is linear in the parameters b0,b1,…,bkb_0, b_1, \dots, b_k. Independent variables themselves can be non-linear transformations (e.g., X2X^2 or ln⁡(X)\ln(X)).
  2. Zero Conditional Mean of Errors: The expected value of the error term conditional on the independent variables is zero: E(ϵi∣X1i,X2i,…,Xki)=0E(\epsilon_i \mid X_{1i}, X_{2i}, \dots, X_{ki}) = 0. This implies no omitted variable bias and that regressors are strictly exogenous (Cov(Xji,ϵi)=0Cov(X_{ji}, \epsilon_i) = 0).
  3. Homoskedasticity (Constant Error Variance): The variance of the error term is constant across all observations conditional on the independent variables: Var(ϵi∣X)=σ2Var(\epsilon_i \mid X) = \sigma^2 for all ii.
  4. No Serial Correlation (Independence of Errors): The error terms for any two distinct observations are uncorrelated: Cov(ϵi,ϵj)=0Cov(\epsilon_i, \epsilon_j) = 0 for all i≠ji \neq j.
  5. No Perfect Multicollinearity: No independent variable is an exact linear combination of other independent variables. If exact collinearity exists, the OLS parameter matrix cannot be inverted.
  6. Normality of Error Distribution: The error terms are normally distributed: ϵi∼N(0,σ2)\epsilon_i \sim N(0, \sigma^2). This assumption is essential for conducting exact hypothesis tests in small samples (though the Central Limit Theorem relaxes this in large samples).

ANOVA Table Breakdown & Derivations

Analysis of Variance (ANOVA) partitions the total variability of the dependent variable into explained (regression) and unexplained (residual) components.

Sum of Squares Relationships

Total Sum of Squares (SST)=∑i=1n(Yi−Yˉ)2\text{Total Sum of Squares (SST)} = \sum_{i=1}^n (Y_i - \bar{Y})^2 Regression Sum of Squares (SSR)=∑i=1n(Y^i−Yˉ)2\text{Regression Sum of Squares (SSR)} = \sum_{i=1}^n (\hat{Y}_i - \bar{Y})^2 Sum of Squared Errors (SSE)=∑i=1n(Yi−Y^i)2=∑i=1nei2\text{Sum of Squared Errors (SSE)} = \sum_{i=1}^n (Y_i - \hat{Y}_i)^2 = \sum_{i=1}^n e_i^2 SST=SSR+SSE\mathbf{SST = SSR + SSE}

Degrees of Freedom and Mean Squares

  • Regression Degrees of Freedom: kk (number of slope parameters).
  • Residual (Error) Degrees of Freedom: n−k−1n - k - 1 (sample size minus total estimated parameters).
  • Total Degrees of Freedom: n−1n - 1.
  • Mean Square Regression (MSR): MSR=SSRk\text{MSR} = \frac{\text{SSR}}{k}
  • Mean Square Error (MSE): MSE=SSEn−k−1\text{MSE} = \frac{\text{SSE}}{n - k - 1}
  • Standard Error of the Estimate (ses_e): The sample estimate of the standard deviation of regression residuals:
se=MSE=SSEn−k−1s_e = \sqrt{\text{MSE}} = \sqrt{\frac{\text{SSE}}{n - k - 1}}

Standard ANOVA Table Format

Source of VariationDegrees of Freedom (dfdf)Sum of Squares (SSSS)Mean Square (MSMS)FF-Statisticpp-value
Regression (Explained)kkSSR\text{SSR}MSR=SSRk\text{MSR} = \frac{\text{SSR}}{k}F=MSRMSEF = \frac{\text{MSR}}{\text{MSE}}P(Fk,n−k−1>F)P(F_{k, n-k-1} > F)
Residual (Error)n−k−1n - k - 1SSE\text{SSE}MSE=SSEn−k−1\text{MSE} = \frac{\text{SSE}}{n - k - 1}——
Totaln−1n - 1SST\text{SST}———

Goodness-of-Fit: R2R^2 versus Adjusted R2R^2

The Coefficient of Determination (R2R^2) measures the proportion of total variation in YY explained by the regression model:

R2=SSRSST=1−SSESSTR^2 = \frac{\text{SSR}}{\text{SST}} = 1 - \frac{\text{SSE}}{\text{SST}}

A fundamental limitation of R2R^2 is that adding any new independent variable will mathematically never decrease R2R^2 and almost always increases it, even if the new variable is economically irrelevant. To address this, Adjusted R2R^2 (Radj2R^2_{adj} or Rˉ2\bar{R}^2) introduces a degrees-of-freedom penalty:

Radj2=1−[n−1n−k−1](1−R2)=1−[n−1n−k−1](SSESST)=1−MSESST/(n−1)R^2_{adj} = 1 - \left[\frac{n - 1}{n - k - 1}\right](1 - R^2) = 1 - \left[\frac{n - 1}{n - k - 1}\right]\left(\frac{\text{SSE}}{\text{SST}}\right) = 1 - \frac{\text{MSE}}{\text{SST} / (n - 1)}

Key Properties of Adjusted R2R^2:

  1. Radj2≤R2R^2_{adj} \le R^2 always. The equality holds only when R2=1.0R^2 = 1.0 or k=0k = 0.
  2. Radj2R^2_{adj} can decrease when a new variable is added if the reduction in SSE\text{SSE} is insufficient to offset the loss of one degree of freedom.
  3. Decision Rule: Adding an independent variable will increase Radj2R^2_{adj} if and only if the absolute value of the tt-statistic on that added variable exceeds 1.0 (or equivalently, its partial F>1.0F > 1.0).
  4. Radj2R^2_{adj} can become negative when the model explains almost no variation and n−k−1n - k - 1 is small.

Hypothesis Testing in Multiple Regression

1. Individual Slope Significance: tt-Test

To test whether a specific independent variable XjX_j has a statistically significant linear relationship with YY, we formulate hypotheses:

H0:bj=Bj0vs.Ha:bj≠Bj0(usually Bj0=0)H_0: b_j = B_{j0} \quad \text{vs.} \quad H_a: b_j \neq B_{j0} \quad (\text{usually } B_{j0} = 0)

The test statistic is calculated as:

t=bj−Bj0sbjt = \frac{b_j - B_{j0}}{s_{b_j}}

Where sbjs_{b_j} is the estimated standard error of coefficient bjb_j. The test statistic follows a Student's tt-distribution with df=n−k−1df = n - k - 1 degrees of freedom.

  • Decision Rule: Reject H0H_0 at significance level α\alpha if ∣t∣>tcritical,α/2,n−k−1|t| > t_{critical, \alpha/2, n-k-1} or if the pp-value <α< \alpha.
  • Confidence Interval: The (1−α)%(1 - \alpha)\% confidence interval for the true population coefficient βj\beta_j is:
bj±(tcritical,α/2,n−k−1×sbj)b_j \pm \left(t_{critical, \alpha/2, n-k-1} \times s_{b_j}\right)

2. Overall Regression Significance: FF-Test

The FF-test evaluates whether at least one of the kk independent variables explains a significant portion of the variance in YY:

H0:b1=b2=⋯=bk=0vs.Ha:At least one bj≠0H_0: b_1 = b_2 = \dots = b_k = 0 \quad \text{vs.} \quad H_a: \text{At least one } b_j \neq 0

The test statistic is:

F=MSRMSE=SSR/kSSE/(n−k−1)=R2/k(1−R2)/(n−k−1)F = \frac{\text{MSR}}{\text{MSE}} = \frac{\text{SSR} / k}{\text{SSE} / (n - k - 1)} = \frac{R^2 / k}{(1 - R^2) / (n - k - 1)}

This follows an FF-distribution with numerator degrees of freedom df1=kdf_1 = k and denominator degrees of freedom df2=n−k−1df_2 = n - k - 1. The FF-test is always a one-tailed test in the upper tail.

  • Decision Rule: Reject H0H_0 if F>Fcritical,α,k,n−k−1F > F_{critical, \alpha, k, n-k-1}. Rejecting H0H_0 means the set of independent variables collectively explains a statistically significant proportion of the variance in YY.

Dummy Variables & Slope Interaction Terms

Qualitative Predictors (Intercept Dummies)

Qualitative attributes (e.g., sector, recession vs. expansion, January effect) are captured using dummy variables Di∈{0,1}D_i \in \{0, 1\}:

Yi=b0+b1X1i+d1Di+ϵiY_i = b_0 + b_1 X_{1i} + d_1 D_i + \epsilon_i
  • When Di=0D_i = 0 (the baseline/reference group): E(Yi)=b0+b1X1iE(Y_i) = b_0 + b_1 X_{1i}.
  • When Di=1D_i = 1: E(Yi)=(b0+d1)+b1X1iE(Y_i) = (b_0 + d_1) + b_1 X_{1i}.
  • The coefficient d1d_1 represents the differential intercept shift relative to the reference category.

The Dummy Variable Trap: If a qualitative factor has mm distinct categories, exactly m−1m - 1 dummy variables must be included in a regression with an intercept. Including mm dummy variables alongside an intercept creates perfect collinearity (the sum of all dummies equals 1, matching the constant column), preventing matrix inversion.

Slope Interaction Terms

To test whether the slope coefficient of an independent variable differs across qualitative groups, an interaction term is included:

Yi=b0+b1X1i+d1Di+d2(Di×X1i)+ϵiY_i = b_0 + b_1 X_{1i} + d_1 D_i + d_2 (D_i \times X_{1i}) + \epsilon_i
  • When Di=0D_i = 0: Intercept is b0b_0, Slope on X1X_1 is b1b_1.
  • When Di=1D_i = 1: Intercept is (b0+d1)(b_0 + d_1), Slope on X1X_1 is (b1+d2)(b_1 + d_2).
  • The parameter d2d_2 measures the differential slope between the two groups.

Functional Forms & Log Transformations

Non-linear relationships can frequently be estimated using OLS via logarithmic transformations of YY, XX, or both:

Model TypeMathematical SpecificationSlope Interpretation of b1b_1Common Financial Use Case
Linear-Linear (Lin-Lin)Y=b0+b1X+ϵY = b_0 + b_1 X + \epsilonA 1-unit change in XX changes YY by b1b_1 unitsStandard factor betas, spread models
Log-Linear (Log-Lin)ln⁡(Y)=b0+b1X+ϵ\ln(Y) = b_0 + b_1 X + \epsilonA 1-unit change in XX changes YY by approximately (100×b1)%(100 \times b_1)\%Asset compounding, dividend growth
Linear-Log (Lin-Log)Y=b0+b1ln⁡(X)+ϵY = b_0 + b_1 \ln(X) + \epsilonA 1%1\% change in XX changes YY by approximately (b1/100)(b_1 / 100) unitsDiminishing marginal returns, scale effects
Log-Logln⁡(Y)=b0+b1ln⁡(X)+ϵ\ln(Y) = b_0 + b_1 \ln(X) + \epsilonA 1%1\% change in XX changes YY by b1%b_1\% (constant elasticity)Price elasticity of demand, Cobb-Douglas

Worked Numerical Example: Multi-Factor Equity Return Model

An equity analyst regresses the monthly excess returns (Rfund−RfR_{fund} - R_f) of a hedge fund against k=3k = 3 risk factors (Market excess return MKTMKT, Small-minus-Big size factor SMBSMB, and High-minus-Low value factor HMLHML) over n=64n = 64 monthly observations.

Given Regression Output:

  • Total Sum of Squares (SST) = 1,250.001,250.00
  • Sum of Squared Errors (SSE) = 375.00375.00
  • Intercept b0=0.45%,sb0=0.18%b_0 = 0.45\%, s_{b0} = 0.18\%
  • Slope bMKT=1.15,sb1=0.12b_{MKT} = 1.15, s_{b1} = 0.12
  • Slope bSMB=0.40,sb2=0.16b_{SMB} = 0.40, s_{b2} = 0.16
  • Slope bHML=−0.30,sb3=0.20b_{HML} = -0.30, s_{b3} = 0.20

Step-by-Step Calculations:

  1. Regression Sum of Squares (SSR):

    SSR=SST−SSE=1,250.00−375.00=875.00\text{SSR} = \text{SST} - \text{SSE} = 1,250.00 - 375.00 = 875.00
  2. Degrees of Freedom:

    dfregression=k=3df_{\text{regression}} = k = 3 dfresidual=n−k−1=64−3−1=60df_{\text{residual}} = n - k - 1 = 64 - 3 - 1 = 60 dftotal=n−1=64−1=63df_{\text{total}} = n - 1 = 64 - 1 = 63
  3. Mean Squares and Standard Error of Estimate:

    MSR=SSRk=875.003=291.67\text{MSR} = \frac{\text{SSR}}{k} = \frac{875.00}{3} = 291.67 MSE=SSEn−k−1=375.0060=6.25\text{MSE} = \frac{\text{SSE}}{n - k - 1} = \frac{375.00}{60} = 6.25 se=MSE=6.25=2.50%s_e = \sqrt{\text{MSE}} = \sqrt{6.25} = 2.50\%
  4. Goodness of Fit (R2R^2 and Radj2R^2_{adj}):

    R2=SSRSST=875.001,250.00=0.7000(70.00%R^2 = \frac{\text{SSR}}{\text{SST}} = \frac{875.00}{1,250.00} = 0.7000 \quad (70.00\% Radj2=1−[64−164−3−1](1−0.7000)=1−[6360](0.3000)=1−(1.05)(0.3000)=1−0.3150=0.6850(68.50%R^2_{adj} = 1 - \left[\frac{64 - 1}{64 - 3 - 1}\right](1 - 0.7000) = 1 - \left[\frac{63}{60}\right](0.3000) = 1 - (1.05)(0.3000) = 1 - 0.3150 = 0.6850 \quad (68.50\%
  5. Overall Model Significance (FF-Test):

    F=MSRMSE=291.676.25=46.67F = \frac{\text{MSR}}{\text{MSE}} = \frac{291.67}{6.25} = 46.67

    With df1=3,df2=60df_1 = 3, df_2 = 60, the critical FF at α=0.01\alpha = 0.01 is 4.134.13. Since 46.67>4.1346.67 > 4.13, we reject H0:b1=b2=b3=0H_0: b_1 = b_2 = b_3 = 0 at the 1%1\% significance level.

  6. Individual tt-Tests at α=0.05\alpha = 0.05 (df=60,tcrit=2.000df = 60, t_{crit} = 2.000):

    • Alpha (b0b_0): t=0.45−00.18=2.50>2.000  ⟹  t = \frac{0.45 - 0}{0.18} = 2.50 > 2.000 \implies Statistically significant positive alpha.
    • Market (bMKTb_{MKT}): t=1.15−00.12=9.58>2.000  ⟹  t = \frac{1.15 - 0}{0.12} = 9.58 > 2.000 \implies Statistically significant.
    • Size (bSMBb_{SMB}): t=0.40−00.16=2.50>2.000  ⟹  t = \frac{0.40 - 0}{0.16} = 2.50 > 2.000 \implies Statistically significant.
    • Value (bHMLb_{HML}): t=−0.30−00.20=−1.50t = \frac{-0.30 - 0}{0.20} = -1.50. Since ∣−1.50∣<2.000|-1.50| < 2.000, we fail to reject H0H_0; the value factor is not statistically significant.
Test Your Knowledge

A portfolio manager estimates a 3-factor risk model using 36 monthly observations. The unadjusted R-squared is 0.60. What is the adjusted R-squared of this regression?

A

0.5375

B

0.5625

C

0.6250

D

0.5833

Test Your Knowledge

An econometrician wants to model quarterly seasonality in corporate earnings using quarterly dummy variables alongside an intercept term. How many dummy variables must be included to avoid the dummy variable trap?

A

1 dummy variable

B

2 dummy variables

C

3 dummy variables

D

4 dummy variables

Test Your Knowledge

An analyst estimates a log-linear wage equation: ln(Wage) = 2.50 + 0.045 * Experience + e. How is the slope coefficient on Experience interpreted?

A

A 1-year increase in Experience is associated with an approximate 4.5% increase in Wage.

B

A 1% increase in Experience is associated with an approximate 4.5% increase in Wage.

C

A 1-year increase in Experience is associated with a $0.045 increase in Wage.

D

A 1% increase in Experience is associated with a $4.50 increase in Wage.

Sections you finish are checked off in the contents.