Linear regression
Linear regression is a statistical method used to model the relationship between a dependent variable and one or more explanatory variables by estimating a linear function.
In the simplest case, linear regression relates one dependent variable to one explanatory variable .
A simple linear regression model is:
where:
- = observed value of the dependent variable;
- = observed value of the explanatory variable;
- = intercept;
- = slope coefficient;
- = error term;
- = observation index.
The fitted regression equation is:
- contentReference[oaicite:0]{index=0}
Ordinary least squares
The most common method for estimating the coefficients of a linear regression is ordinary least squares (OLS).
OLS chooses the coefficients that minimize the sum of squared residuals:
The residual for observation is:
The objective of OLS is therefore to minimize:
Slope coefficient
For simple linear regression, the estimated slope coefficient can be calculated as:
where:
- = sample mean of ;
- = sample mean of .
The slope measures the estimated change in associated with a one-unit change in .
Intercept
The estimated intercept is:
The intercept represents the fitted value of when , although its practical interpretation depends on the context and whether is meaningful.
Regression in finance
Linear regression is widely used in finance to examine relationships between asset returns and market returns, economic variables, or other risk factors.
A simplified market model is:
where:
- = return of asset ;
- = intercept or regression alpha;
- = sensitivity of the asset to market returns;
- = market return;
- = residual return.
The fitted equation is:
In this formulation, beta represents the slope of the regression line and measures the estimated sensitivity of the asset's returns to changes in the market return.
Beta estimation
For a regression of an asset's returns against market returns, beta can be expressed as:
Using correlation, this can also be written as:
where:
- = correlation between asset and market returns;
- = standard deviation of asset returns;
- = standard deviation of market returns.
Coefficient of determination
The coefficient of determination, commonly denoted as , measures the proportion of variation in the dependent variable explained by the fitted regression model.
A common expression is:
where:
- the numerator represents the residual sum of squares;
- the denominator represents the total sum of squares.
For a simple linear regression with an intercept:
where is the Pearson correlation coefficient.
Multiple linear regression
Multiple linear regression extends the model to two or more explanatory variables.
A simplified model is:
The fitted model is:
Multiple regression allows the relationship between the dependent variable and one explanatory variable to be estimated while controlling for the other included variables.
Factor models
Linear regression is commonly used to estimate factor models in finance.
A simplified multifactor model is:
where:
- = asset's excess return;
- = factor ;
- = asset's exposure to factor ;
- = intercept;
- = residual return.
Such models can be used to estimate an asset's exposure to market, size, value, momentum, quality, and other factors.
Residuals
A regression residual is the difference between the observed value and its fitted value:
The residual represents the portion of the observed outcome that is not explained by the fitted regression equation.
In financial models, residual returns can represent asset-specific or idiosyncratic components after accounting for the included explanatory factors.
Statistical significance
Regression coefficients can be evaluated using statistical tests.
For a coefficient , a common null hypothesis is:
against an alternative hypothesis such as:
A t-statistic can be represented as:
where:
- = estimated coefficient;
- = hypothesized coefficient value;
- = standard error of the estimated coefficient.
Statistical significance does not by itself establish economic significance or causation.
Assumptions
Classical OLS inference commonly relies on assumptions concerning the regression model and its error terms.
Depending on the application, these may include:
- linearity of the conditional mean;
- appropriate specification of the model;
- independence or appropriate dependence structure of observations;
- absence of problematic perfect multicollinearity;
- constant error variance for conventional homoskedastic inference;
- appropriate conditions for statistical inference.
Normality of errors is not required for OLS coefficient estimation itself, although it can be relevant for certain small-sample inferential procedures.
Limitations
Linear regression has several limitations:
- it assumes a linear conditional relationship;
- results can be sensitive to outliers;
- omitted variables can affect coefficient estimates;
- multicollinearity can make individual coefficients difficult to interpret;
- correlation does not establish causation;
- model estimates can change when the sample period changes;
- financial relationships may be nonlinear or unstable over time.
In financial markets, regression results should therefore be interpreted in the context of the model specification, sample period, data quality, and underlying economic assumptions.