Multiple linear regression

Quadratic fit as an example of multiple linear regression.

Multiple linear regression, also known as multivariable linear regression, is a generalization of simple linear regression to the case of more than one independent variable. The basic model for multiple linear regression is

for each observation .

In the formula above we consider n observations of one dependent variable and p independent variables. Thus, Yi is the ith observation of the dependent variable, Xij is ith observation of the jth independent variable, j = 1, 2, ..., p. The values βj represent parameters to be estimated, and εi is the ith independent identically distributed normal error.

Nearly all real-world regression models involve multiple predictors, and basic descriptions of linear regression are often phrased in terms of the multiple regression model. Note, however, that in these cases the response variable y is still a scalar.

Multiple linear regression is a special case, restricted to one dependent variable, of general linear models (also known as multivariate linear regression), which predicts multiple correlated dependent variables.

Formulation

Given a data set of n statistical units, a linear regression model assumes that the relationship between the dependent variable and the vector of regressors is linear. This relationship is modeled through a disturbance term or error variable — an unobserved random variable that adds extra "noise" to the linear relationship between the dependent variable and regressors. Thus the model takes the formwhere denotes the transpose, so that is the inner product between vectors and .

Often these n equations are stacked together and written in matrix notation as

where

Notation and terminology

Solution

Fitting a linear model to a given data set usually requires estimating the regression coefficients such that the error term is minimized. For example, it is common to use the sum of squared errors as a measure of for minimization.

Example

Consider a situation where a small ball is being tossed up in the air and then we measure its heights of ascent hi at various moments in time ti. Physics tells us that, ignoring the drag, the relationship can be modeled as

where β1 determines the initial velocity of the ball, β2 is proportional to the standard gravity, and εi is due to measurement errors. Linear regression can be used to estimate the values of β1 and β2 from the measured data. This model is non-linear in the time variable, but it is linear in the parameters β1 and β2; if we take regressors xi = (xi1, xi2)  = (ti, ti2), the model takes on the standard form

See also

References

  1. ↑ Hidalgo, Bertha; Goodman, Melody (2012-11-15). "Multivariate or Multivariable Regression?". American Journal of Public Health. 103 (1): 39–40. doi:10.2105/AJPH.2012.300897. ISSN 0090-0036. PMC 3518362. PMID 23153131.
  2. ↑ Rencher, Alvin C.; Christensen, William F. (2012), "Chapter 10, Multivariate regression – Section 10.1, Introduction", Methods of Multivariate Analysis, Wiley Series in Probability and Statistics, vol. 709 (3rd ed.), John Wiley & Sons, p. 19, ISBN 978-1-118-39167-9, archived from the original on 2024-10-04, retrieved 2015-02-07.