Regression analysis

Revision as of 12:59, 20 August 2026 by WikiSysopIG (talk | contribs) (Created page with "'''Regression analysis''' is a set of statistical methods used to examine the relationship between a dependent variable and one or more explanatory variables. It is used to estimate relationships, quantify associations, test hypotheses, and generate predictions. In its simplest form, regression analysis models a dependent variable <math>Y</math> as a function of an explanatory variable <math>X</math>: <math> Y_i = \beta_0 + \beta_1X_i + \epsilon_i </math> where:...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Regression analysis is a set of statistical methods used to examine the relationship between a dependent variable and one or more explanatory variables. It is used to estimate relationships, quantify associations, test hypotheses, and generate predictions.

In its simplest form, regression analysis models a dependent variable Y as a function of an explanatory variable X:

Yi=β0+β1Xi+ϵi

where:

  • Yi = dependent variable;
  • Xi = explanatory variable;
  • β0 = intercept;
  • β1 = slope coefficient;
  • ϵi = error term;
  • i = observation index.

Types of regression

Regression analysis includes a range of statistical techniques. Common forms include:

The appropriate method depends on the nature of the dependent variable, explanatory variables, data structure, and purpose of the analysis.

Linear regression

In linear regression, the conditional mean of the dependent variable is modeled as a linear function of explanatory variables.

A simple linear regression model is:

Yi=β0+β1Xi+ϵi

The fitted relationship is:

Ŷi=β̂0+β̂1Xi

where Ŷi is the predicted or fitted value.

Ordinary least squares

Ordinary least squares (OLS) is a commonly used method for estimating the coefficients of a linear regression model.

OLS chooses the coefficients that minimize the sum of squared residuals:

min𝜷∑i=1n(Yi−𝐱i𝖳𝜷)2

For simple linear regression, this becomes:

minβ0,β1∑i=1n(Yi−β0−β1Xi)2

The residual for observation i is:

ei=Yi−Ŷi

and the residual sum of squares is:

RSS=∑i=1nei2

Multiple regression

Multiple linear regression extends the model to multiple explanatory variables:

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

The coefficient βj represents the estimated association between Xj and Y, conditional on the other explanatory variables included in the model.

In matrix form:

𝐲=𝐗𝜷+𝝐

Under the standard OLS formulation, the coefficient estimator is:

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

provided that 𝐗𝖳𝐗 is invertible.

Regression coefficients

Regression coefficients describe the estimated relationship between explanatory variables and the dependent variable.

For a simple linear regression:

β̂1=∑i=1n(Xi−X¯)(Yi−Y¯)∑i=1n(Xi−X¯)2

The intercept is:

β̂0=Y¯−β̂1X¯

The slope coefficient indicates the estimated change in Y associated with a one-unit change in X.

Residuals and fitted values

A fitted value is the value predicted by the estimated regression model:

Ŷi=f(Xi,𝜷̂)

A residual is the difference between the observed and fitted values:

ei=Yi−Ŷi

Residual analysis is commonly used to evaluate whether the regression model adequately represents important features of the data.

Patterns in residuals can indicate problems such as nonlinear relationships, heteroskedasticity, omitted variables, or other forms of model misspecification.

Coefficient of determination

The coefficient of determination, commonly 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.

For a regression with an intercept:

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

The numerator is the residual sum of squares, while the denominator is the total sum of squares.

In a simple linear regression with an intercept:

R2=rXY2

where rXY is the Pearson correlation coefficient.

Statistical inference

Regression analysis can be used to estimate uncertainty around regression coefficients and test hypotheses concerning those coefficients.

For a coefficient βj, a common null hypothesis is:

H0:βj=0

A corresponding t-statistic can be written as:

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

where:

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

Confidence intervals can also be constructed around regression coefficients.

Regression assumptions

The assumptions required for regression analysis depend on the model and the type of inference being performed.

For classical linear regression, commonly considered assumptions include:

  • linearity of the conditional mean;
  • appropriate model specification;
  • no perfect multicollinearity;
  • zero conditional mean of the error term;
  • appropriate dependence structure of observations;
  • constant error variance for conventional homoskedastic inference.

Normality of errors is not required for OLS coefficient estimation itself, although it can be relevant to certain small-sample inferential procedures.

Heteroskedasticity

Heteroskedasticity occurs when the conditional variance of the error term is not constant:

Var⁡(ϵi∣Xi)≠σ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.

Multicollinearity

Multicollinearity occurs when explanatory variables in a multiple regression are strongly linearly related.

Perfect multicollinearity prevents unique estimation of the standard OLS coefficients.

High but imperfect multicollinearity can increase the standard errors of individual coefficient estimates and make the interpretation of individual coefficients more difficult.

Regression in finance

Regression analysis is widely used in finance to examine relationships between asset returns and market returns, economic variables, or risk factors.

A simplified market model is:

Ri=αi+βiRm+ϵi

where:

  • Ri = return of asset i;
  • αi = regression intercept;
  • βi = sensitivity of the asset to market returns;
  • Rm = market return;
  • ϵi = residual return.

The beta coefficient can be estimated as:

β̂i=Cov⁡(Ri,Rm)Var⁡(Rm)

The regression intercept can be interpreted within the specified model as the expected asset return when the market return is zero.

Factor models

Regression analysis is commonly used to estimate factor models.

A simplified multifactor model is:

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

where:

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

Such models can be used to estimate exposures to market, size, value, momentum, quality, and other factors.

Prediction and forecasting

Regression models can be used to generate fitted values and predictions.

A fitted value is:

Ŷi=𝐱i𝖳𝜷̂

For a new observation with explanatory-variable vector 𝐱0, a model-based prediction is:

Ŷ0=𝐱0𝖳𝜷̂

Prediction intervals may be wider than confidence intervals for the estimated mean because predictions also incorporate uncertainty associated with the individual outcome.

Correlation and regression

Regression and correlation are related but measure different concepts.

The Pearson correlation coefficient measures the strength and direction of a linear association:

ρXY=Cov⁡(X,Y)σXσY

Regression additionally specifies a dependent variable and estimates the conditional relationship between that variable and one or more explanatory variables.

Therefore:

Correlation→Strength and Direction of Linear Association

Regression→Estimated Conditional Relationship

Neither correlation nor regression, by itself, establishes causation.

Limitations

Regression analysis has several limitations:

  • statistical association does not establish causation;
  • results depend on model specification;
  • omitted variables can affect estimates;
  • outliers can materially influence results;
  • multicollinearity can make individual coefficients imprecise;
  • nonlinear relationships may not be adequately represented by a linear model;
  • relationships can change over time;
  • statistical significance does not necessarily imply economic significance.

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

See also