Multiple linear regression

Revision as of 13:00, 20 August 2026 by WikiSysopIG (talk | contribs) (Created page with "'''Multiple linear regression''' is a statistical method used to model the relationship between a dependent variable and two or more explanatory variables. It extends simple linear regression by allowing multiple explanatory variables to be included in the same model. A general multiple linear regression model is: <math> Y_i = \beta_0 + \beta_1X_{1,i} + \beta_2X_{2,i} + \cdots + \beta_kX_{k,i} + \epsilon_i </math> where: * <math>Y_i</math> =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Multiple linear regression is a statistical method used to model the relationship between a dependent variable and two or more explanatory variables. It extends simple linear regression by allowing multiple explanatory variables to be included in the same model.

A general multiple linear regression model is:

Yi=β0+β1X1,i+β2X2,i+⋯+βkXk,i+ϵi

where:

  • Yi = dependent variable for observation i;
  • Xj,i = value of explanatory variable j for observation i;
  • β0 = intercept;
  • βj = coefficient associated with explanatory variable j;
  • ϵi = error term;
  • k = number of explanatory variables;
  • i = observation index.

The fitted regression equation is:

Ŷi=β̂0+β̂1X1,i+β̂2X2,i+⋯+β̂kXk,i

Ordinary least squares

Multiple linear regression is commonly estimated using ordinary least squares (OLS).

OLS chooses the coefficient estimates that minimize the sum of squared residuals:

minβ0,β1,…,βk∑i=1n(Yi−β0−∑j=1kβjXj,i)2

The residual for observation i is:

ei=Yi−Ŷi

The residual sum of squares is:

RSS=∑i=1nei2

Matrix formulation

The multiple linear regression model can be written in matrix form as:

𝐲=𝐗𝜷+𝝐

where:

  • 𝐲 = vector of dependent-variable observations;
  • 𝐗 = design matrix of explanatory variables;
  • 𝜷 = vector of regression coefficients;
  • 𝝐 = vector of error terms.

Under the standard OLS formulation, the coefficient estimator is:

𝜷̂=(𝐗𝖳𝐗)−1𝐗𝖳𝐲

provided that 𝐗𝖳𝐗 is invertible.

Interpretation of coefficients

In multiple linear regression, a coefficient represents the estimated change in the dependent variable associated with a one-unit change in the corresponding explanatory variable, holding the other included explanatory variables constant.

For example:

Y=β0+β1X1+β2X2+ϵ

Here, β1 represents the estimated change in Y associated with a one-unit increase in X1, conditional on X2 remaining unchanged.

Similarly, β2 measures the corresponding conditional association between X2 and Y.

This interpretation depends on the model specification and does not by itself establish causation.

Intercept

The intercept is the expected or fitted value of the dependent variable when all explanatory variables equal zero:

β0=E[Y∣X1=0,X2=0,…,Xk=0]

under the conditional-mean interpretation of the model.

The practical meaning of the intercept depends on whether zero is a meaningful value for all explanatory variables.

Coefficient of determination

The coefficient of determination, denoted by R2, measures the proportion of sample variation in the dependent variable accounted for by the fitted regression model relative to an intercept-only model.

It is calculated as:

R2=1−RSSTSS

where:

TSS=∑i=1n(Yi−Y¯)2

is the total sum of squares.

Equivalently:

R2=ESSTSS

where ESS is the explained sum of squares.

Unlike simple linear regression, the coefficient of determination in multiple regression is not generally equal to the square of the correlation between any single explanatory variable and the dependent variable.

Adjusted R-squared

Adding explanatory variables to a regression cannot decrease ordinary R2, even when the additional variables provide little useful information.

The adjusted R-squared accounts for the number of explanatory variables:

R¯2=1−(1−R2)n−1n−k−1

where:

  • R¯2 = adjusted coefficient of determination;
  • R2 = coefficient of determination;
  • n = number of observations;
  • k = number of explanatory variables.

Adjusted R2 can decrease when an additional explanatory variable does not provide sufficient improvement in model fit.

Statistical inference

Multiple linear regression can be used to test hypotheses about individual coefficients.

For an explanatory variable Xj, a common null hypothesis is:

H0:βj=0

A corresponding t-statistic is:

t=β̂j−βj,0SE⁡(β̂j)

where:

  • β̂j = estimated coefficient;
  • βj,0 = hypothesized coefficient value;
  • SE⁡(β̂j) = standard error of the estimated coefficient.

A joint hypothesis concerning several coefficients can be evaluated using an F-test.

For example:

H0:β1=β2=⋯=βq=0

The F-test evaluates whether the specified group of explanatory variables provides statistically significant explanatory power within the model.

Multicollinearity

Multicollinearity occurs when explanatory variables are highly linearly related.

For example, if:

X2≈a+bX1

for constants a and b, the two explanatory variables contain substantial overlapping information.

Perfect multicollinearity prevents unique estimation of the standard OLS coefficients because the design matrix does not have full column rank.

High but imperfect multicollinearity does not prevent estimation but can:

  • increase coefficient standard errors;
  • make individual coefficients unstable;
  • make coefficient interpretation more difficult;
  • cause coefficients to change substantially when variables are added or removed.

Heteroskedasticity

Heteroskedasticity occurs when the conditional variance of the regression errors is not constant:

Var⁡(ϵi∣𝐗)≠σ2

OLS coefficient estimates can remain unbiased under appropriate exogeneity conditions, but conventional standard errors may be unreliable.

Heteroskedasticity-consistent standard errors can be used for inference that is robust to certain forms of non-constant error variance.

Autocorrelation

In time-series and other ordered data, regression errors may be correlated across observations.

A simplified representation is:

Cov⁡(ϵt,ϵt−k)≠0

for some non-zero lag k.

Serial correlation can affect the efficiency of OLS estimates and the validity of conventional standard errors, depending on the model and assumptions.

Regression in finance

Multiple linear regression is widely used in finance to model asset returns as a function of multiple market or economic variables.

A simplified financial model is:

Ri=αi+βi1F1+βi2F2+⋯+βikFk+ϵi

where:

  • Ri = return of asset i;
  • αi = regression intercept;
  • Fk = factor k;
  • βik = asset's exposure to factor k;
  • ϵi = residual return.

If excess returns are modeled, the equation may be written as:

Ri−Rf=αi+βi1F1+βi2F2+⋯+βikFk+ϵi

Such models can estimate an asset's exposure to multiple systematic risk factors.

Market and factor models

A simple market model is:

Ri=αi+βiRm+ϵi

Multiple regression extends this framework by including additional explanatory variables.

For example, a multifactor model may include market, size, value, momentum, and profitability factors:

Ri−Rf=αi+βiMM+βiSS+βiVV+βiMOMMOM+βiQQ+ϵi

where each beta represents the estimated exposure of the asset to the corresponding factor.

Prediction

Once the coefficients have been estimated, the model can be used to calculate fitted values or generate predictions.

For a new observation with explanatory-variable vector 𝐱0:

Ŷ0=𝐱0𝖳𝜷̂

Prediction intervals can incorporate both uncertainty in the estimated regression function and uncertainty associated with the individual outcome.

Advantages

Multiple linear regression can:

  • model several explanatory variables simultaneously;
  • estimate conditional relationships;
  • control statistically for included explanatory variables;
  • quantify the marginal association of explanatory variables;
  • generate fitted values and predictions;
  • provide statistical tests and confidence intervals;
  • support financial factor and risk models.

Limitations

Multiple linear regression has several limitations:

  • statistical association does not establish causation;
  • omitted variables can bias coefficient estimates;
  • multicollinearity can make individual coefficients imprecise;
  • outliers can materially influence estimates;
  • nonlinear relationships may not be adequately represented;
  • model results depend on the selected explanatory variables;
  • relationships can change over time;
  • high R2 does not necessarily indicate a correctly specified model.

In financial applications, regression estimates can also be affected by changing market regimes, structural breaks, non-stationarity, and time-varying volatility.

See also