Regression analysis

Regression analysis estimates how one variable, the outcome, changes with one or more other variables, the explanatory variables, by fitting an equation to observed data. Ordinary least squares, the usual method, picks the equation with the smallest sum of squared gaps between observed and fitted values.

Also called: linear regression · ordinary least squares · OLS regression · regression model · multiple regression

What it is

Regression analysis is a statistical method that estimates how an outcome variable, such as sales, depends on one or more explanatory variables, such as price or advertising spend. It fits an equation to observed data and reports the size of each relationship. The outcome is also called the dependent variable or response. The explanatory variables are also called independent variables or regressors.

The NIST handbook describes the linear form: each explanatory variable is multiplied by an unknown coefficient, the terms are added, and a constant is usually included. A model counts as linear when it is linear in the coefficients, even if an explanatory variable enters as a square or a logarithm.

For one explanatory variable the model is:

y = a + b x + e

The NIST handbook states that least squares finds the coefficients by minimising the sum of the squared differences between the data and the model.

Why it matters

Regression turns a question such as “how much does volume change when price changes” into a number with a stated method. It also gives a fitted value for any combination of the explanatory variables, which supports forecasting on drivers and not only on the history of the series itself.

A fitted relationship that is read as proof of cause, or applied outside the range of the data, gives a misleading answer. The residuals are the check on whether the model describes the data.

Worked example

Illustrative numbers. A business records advertising spend (x, in thousands) and sales (y, in thousands) over five periods: x = 1, 2, 3, 4, 5 and y = 12, 15, 19, 22, 27.

Each extra thousand of spend is associated with 3.7 thousand of sales in this data. The value at x = 6 lies outside the observed range of x, so it is an extrapolation.

How to read it

The slope gives direction and size. A positive slope means the outcome rises with the explanatory variable. Residuals that scatter without a pattern suggest the line fits. Residuals that curve or widen suggest that the form of the model is wrong.

Assumptions

Who uses it

Common confusions

8Roles that need it

9Skills behind it

Sources behind this page (2) · Updated 5 Nov 2026

Concept