Skip to content
p.mba

Type to search tools, guides, glossary terms, frameworks, formula sheets and pages.

Menu

Glossary · Regression

Linear Regression

Also called: ordinary least squares · OLS · multiple regression

A statistical method that models an outcome as a linear combination of predictors, choosing coefficients that minimize the sum of squared errors.

Definition

Linear regression estimates how an outcome changes with one or more predictors by fitting the line or plane that minimizes squared differences between observed and predicted values, the method of least squares associated with Legendre and Gauss in the early 1800s. Each slope coefficient gives the expected change in the outcome for a one-unit change in that predictor, holding the others constant. Standard errors, t-statistics and p-values for coefficients rely on assumptions such as independent errors with constant variance. Coefficients describe association; reading them causally also requires that no important variable correlated with the predictors has been left out.

Formula

yi=β0+β1x1i+⋯+βkxki+εi,β^=(X⊤X)−1X⊤yy_i = \beta_0 + \beta_1 x_{1i} + \cdots + \beta_k x_{ki} + \varepsilon_i, \qquad \hat\beta = (X^\top X)^{-1} X^\top y
TeX source
y_i = \beta_0 + \beta_1 x_{1i} + \cdots + \beta_k x_{ki} + \varepsilon_i, \qquad \hat\beta = (X^\top X)^{-1} X^\top y

Worked example

Hypothetical: regressing monthly sales (in $000) on ad spend (in $000) and price gives sales = 120 + 2.5 × ad spend − 8 × price. Each extra $1,000 of advertising is associated with $2,500 more sales at a given price.

Try it in a tool

  • R-Squared: The share of the variation in an outcome that a regression model explains, from 0 to 1.
  • Multicollinearity: High correlation among a regression's predictors, which makes individual coefficient estimates unstable and their standard errors large.
  • Heteroskedasticity: A regression problem where the spread of the errors changes with the level of a predictor, which makes the usual standard errors unreliable.
  • Omitted Variable Bias: Distortion in a regression coefficient caused by leaving out a variable that affects the outcome and is correlated with an included predictor.
  • Dummy Variable: A 0/1 variable that lets a regression include a category, such as region or promotion week, as a predictor.
  • Logistic Regression: A regression model for yes-or-no outcomes that predicts the probability of an event by passing a linear score through an S-shaped logistic function.

Courses

More in Regression

All glossary terms