Fitting a straight line through data to measure how one variable relates to another.
Linear regression estimates the relationship between an outcome (dependent variable, Y) and one or more explanatory variables (independent variables, X) by fitting a straight line through the data.
The simple regression model
Y = β₀ + β₁X + ε
- β₀ (intercept): the predicted value of Y when X = 0.
- β₁ (slope coefficient): how much Y changes, on average, when X increases by one unit.
- ε (error term): everything else that affects Y but is not in the model.
Worked example
Researchers estimate: Wage per hour = 5 + 1.5 × Years of education. The slope (1.5) means each extra year of education is associated with $1.50 more per hour on average. A worker with 12 years of education is predicted to earn 5 + 1.5 × 12 = $23 an hour.
Interpreting coefficients
- A positive β₁: Y tends to rise as X rises.
- A negative β₁: Y tends to fall as X rises.
- The size shows the strength of the relationship in units of Y per unit of X.
Key idea
A regression coefficient shows an association. It can be interpreted as causal only if the model rules out confounding factors, reverse causality and selection.
Multiple regression
Most real models include several explanatory variables:
Wage = β₀ + β₁ Education + β₂ Experience + β₃ Female + ε
Each coefficient shows the effect of that variable holding the others constant — the econometric version of ceteris paribus. Adding relevant control variables helps reduce omitted variable bias.
Log models
Economists often use logarithms so coefficients are percentages: in log(Wage) = β₀ + β₁ Education, β₁ = 0.08 means each extra year of education is associated with about 8% higher wages.
Exam tip
Interpret a coefficient in words with units: “A one-unit increase in X is associated with a β change in Y, holding other variables constant.”