Multiple Linear Regression

Statistics
Introduced by
Francis Galton; formalized by Karl Pearson
Year
1886
Type
Parametric linear model

What does it do?

Multiple linear regression (MLR) is a parametric model that expresses a continuous outcome as a weighted linear combination of two or more predictors plus a normally distributed error term.

The unknown coefficients are estimated by ordinary least squares (OLS), which minimises the sum of squared residuals. The regression concept traces to Francis Galton's 1886 study of hereditary stature, and its extension to multiple normal correlation to Karl Pearson and A. Lee's 1908 paper; Draper and Smith's 1966 textbook is a standard applied reference.

The intuition behind the method

Imagine you want to predict a student's exam score from both hours studied and prior GPA. A single predictor line cannot capture both influences at once. Multiple linear regression fits a flat surface — a hyperplane — through the cloud of data points in the space defined by all the predictors and the outcome. Each regression coefficient tells you how much the outcome is expected to change when that predictor increases by one unit, holding all other predictors constant. The OLS criterion makes the fitted surface as close as possible to the observed data by minimising the total squared vertical distance between each point and the surface.

History

Francis Galton introduced the regression concept in 1886, describing how the heights of children of tall parents tend to lie closer to the population mean than their parents' heights, which he called 'regression towards mediocrity'. Karl Pearson and A. Lee extended the theory to multiple normal correlation in 1908 (Pearson & Lee, 1908). Draper and Smith's Applied Regression Analysis (1966) is a standard applied reference, and Montgomery, Peck and Vining's textbook is a later one.

When to use it

Use multiple linear regression when the outcome is continuous, the relationship between predictors and outcome is approximately linear in the parameters, observations are independent, and you have two or more predictors whose joint effects you want to quantify. Check the classical assumptions before interpreting results: linearity (partial-regression plots); independence of errors (Durbin–Watson for time-ordered data); homoscedasticity (residual-versus-fitted plots and the Breusch–Pagan test); approximate normality of residuals (Q-Q plot or Shapiro–Wilk test); and no perfect multicollinearity (variance inflation factors; a VIF above 10 is a common rule-of-thumb warning, but stricter cut-offs are also used, so state the threshold you apply when reporting results). Do not use it for binary or count outcomes, where logistic or Poisson regression is more appropriate, for strongly nonlinear relationships that cannot be linearised by transformation, or when the number of predictors approaches or exceeds the sample size.

Limitations and considerations

  • The model is strictly linear in parameters; capturing genuine nonlinearity requires explicit transformations or interaction terms.
  • Highly correlated predictors leave the OLS estimates unbiased but inflate their standard errors, making individual coefficients unstable and hard to interpret.
  • Outliers and influential observations can distort OLS estimates considerably, because the squared loss function heavily penalises large residuals. Standardised residuals and influence measures such as leverage and Cook's distance help identify them.
  • With many predictors relative to the sample size, the model tends to overfit; penalised alternatives such as ridge and lasso regression are commonly used in that regime.
  • Heteroscedasticity biases the standard errors at any sample size, so t-tests and confidence intervals become unreliable even when the coefficient estimates remain unbiased. Non-normal residuals matter most for inference in small samples.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Produces directly interpretable coefficients: each β̂_j quantifies the expected change in the outcome per unit increase in predictor j, holding all other predictors constant.
  • Provides a complete inferential framework — coefficient t-tests, omnibus F-test, confidence intervals — all within a single model.
  • The OLS estimator is analytically exact and computationally efficient even for large datasets.
  • Flexible in practice: categorical predictors enter as dummy variables, and interaction or polynomial terms can be added while the model remains linear in its coefficients.
  • Its estimator, diagnostics and extensions are covered in standard regression textbooks, including the two cited here.

Applications

  • Epidemiology and public health: estimating the effect of multiple risk factors (age, smoking, diet) on a continuous health outcome such as blood pressure or BMI.
  • Economics and social science: modelling wages, prices, or GDP growth as functions of several economic indicators.
  • Psychology: predicting cognitive test scores from demographic and neuropsychological predictors.
  • Engineering: building empirical models that relate process inputs (temperature, pressure, material composition) to product quality metrics.
  • Environmental science: relating pollutant concentrations or climate variables to ecological outcomes.
  • Education research: examining how class size, teacher experience, and socioeconomic status jointly predict student achievement.

How it works

How it works

1

The population model states that the outcome y for observation i equals a baseline intercept plus the sum of each predictor's value multiplied by its slope coefficient, plus a normally distributed error with mean zero and constant variance. There are p predictors and therefore p + 1 parameters (including the intercept) to be estimated from n observations.

Formula
y_i = \beta_0 + \beta_1 x_{i1} + \beta_2 x_{i2} + \cdots + \beta_p x_{ip} + \varepsilon_i, \quad \varepsilon_i \sim \mathcal{N}(0,\sigma^2)
2

Stacking all n observations into vectors and a design matrix compresses the model into the compact notation y = Xβ + ε. X is the n × (p+1) matrix whose first column is all ones (for the intercept) and whose remaining columns contain the predictor values. This matrix representation makes it straightforward to derive the estimator analytically.

Formula
\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\varepsilon}, \quad \mathbf{y} \in \mathbb{R}^n,\ \mathbf{X} \in \mathbb{R}^{n \times (p+1)},\ \boldsymbol{\beta} \in \mathbb{R}^{p+1}
3

Minimising the sum of squared residuals with respect to β yields the OLS closed-form solution β̂ = (X⊤X)⁻¹X⊤y, provided the design matrix has full column rank (no perfect multicollinearity). The Gauss–Markov theorem guarantees that, under the classical assumptions, OLS is the Best Linear Unbiased Estimator (BLUE).

Formula
\hat{\boldsymbol{\beta}} = (\mathbf{X}^\top \mathbf{X})^{-1}\mathbf{X}^\top \mathbf{y}
4

Predicted values ŷ = Xβ̂ are the projections of the observed outcome onto the column space of X. Residuals e = y − ŷ estimate the unobservable errors. The sum of squared errors (SSE) measures how much variation the model fails to explain.

Formula
\hat{\mathbf{y}} = \mathbf{X}\hat{\boldsymbol{\beta}}, \quad \mathbf{e} = \mathbf{y} - \hat{\mathbf{y}}, \quad \text{SSE} = \mathbf{e}^\top\mathbf{e}
5

R² is the proportion of total outcome variance explained by the model; it lies in [0, 1] for a model with an intercept and never decreases when predictors are added, even irrelevant ones. The adjusted R² penalises predictors that add little by accounting for degrees of freedom, and is usually preferred when comparing models with different numbers of predictors.

Formula
R^2 = 1 - \frac{\text{SSE}}{\text{SST}}, \quad R^2_{\text{adj}} = 1 - \frac{(1-R^2)(n-1)}{n-p-1}
6

Each estimated coefficient β̂_j is divided by its standard error to form a t statistic. Under the null hypothesis that the true coefficient is zero, this statistic follows a t-distribution with n − p − 1 degrees of freedom, enabling a p-value and confidence interval for each predictor.

Formula
t_j = \frac{\hat{\beta}_j}{\mathrm{SE}(\hat{\beta}_j)}, \quad t_j \sim t_{n-p-1} \text{ under } H_0:\beta_j=0
7

The omnibus F-test assesses whether at least one predictor is related to the outcome. The ratio of explained variance per predictor to unexplained variance per residual degree of freedom follows an F-distribution under the joint null hypothesis that all slope coefficients equal zero.

Formula
F = \frac{\text{SSR}/p}{\text{SSE}/(n-p-1)} \sim F_{p,\,n-p-1} \text{ under } H_0:\beta_1=\cdots=\beta_p=0

Common pitfalls

  • Interpreting a significant F-test as meaning all predictors matter — individual t-tests for each coefficient are still necessary.
  • Comparing models using R² without adjusting for the number of predictors; use adjusted R², AIC, or BIC instead.
  • Omitting relevant predictors (omitted-variable bias) or including redundant ones without checking VIF.
  • Treating regression coefficients as causal without meeting conditions for causal identification (randomisation or a valid quasi-experimental design).
  • Failing to check residual plots for heteroscedasticity or nonlinearity before reporting results.
  • Applying the model to outcomes that lie outside the range of the training data (extrapolation beyond the predictor space).

Frequently asked questions

How many observations do I need relative to the number of predictors?

No universal minimum applies. The hard constraint is that with fewer observations than parameters (p + 1, including the intercept), the design matrix cannot have full column rank and OLS has no unique solution. Even when a unique solution exists, the residual degrees of freedom (n − p − 1) must be positive for the standard errors and tests to be defined. With only a few observations per predictor, coefficient estimates and their standard errors become unstable; in that situation, penalised regression (such as ridge or lasso) is one option to consider.

What is the difference between R² and adjusted R²?

R² measures the proportion of outcome variance explained by the model and never decreases when any predictor is added, even an irrelevant one. Adjusted R² penalises each additional predictor by accounting for degrees of freedom, so it can decrease if a new predictor does not contribute meaningfully. Use adjusted R² when comparing models with different numbers of predictors.

My VIF values are above 10 — should I be concerned about multicollinearity?

Yes. A VIF above 10, a common rule-of-thumb threshold, indicates that the predictor's variance is inflated by strong correlation with other predictors. This does not bias the coefficients but inflates their standard errors, making it harder to detect individual effects. Remedies include removing redundant predictors, combining correlated predictors (e.g., via PCA), or switching to ridge regression.

Can I use multiple linear regression with categorical predictors?

Yes. A categorical variable with k levels is encoded as k − 1 dummy variables (binary 0/1 indicators), with one level serving as the reference category. The regression coefficient for each dummy variable then represents the mean difference between that level and the reference, holding all other predictors constant. This is exactly the parameterisation used in ANCOVA and generalised linear models.

Related methods

Sources

  1. Galton, F. (1886). Regression towards mediocrity in hereditary stature. Journal of the Anthropological Institute of Great Britain and Ireland, 15, 246–263.

    Open DOI reference
  2. Pearson, K., & Lee, A. (1908). On the generalised probable error in multiple normal correlation. Biometrika, 6(1), 59–68.

    Open DOI reference
  3. Draper, N. R., & Smith, H. (1966). Applied Regression Analysis (1st ed.). John Wiley & Sons.

    ISBN: 9780471221708
  4. Montgomery, D. C., Peck, E. A., & Vining, G. G. (2012). Introduction to Linear Regression Analysis (5th ed.). John Wiley & Sons.

    ISBN: 9780470542811