Two-Variable Regression: Basic Ideas
What 'regressing Y on X' actually means: the population regression function as a locus of conditional means, why a disturbance term turns it into a stochastic model, the sample regression function that estimates it, and what 'linear' regression really requires.
- Explain the population regression function as the conditional mean of Y given X
- Write the stochastic and sample regression functions and explain the difference between a disturbance and a residual
- Explain why 'linear' regression means linear in the parameters, not necessarily in the variables
- Compute a conditional mean from grouped data, the empirical seed of the PRF
Regression as a conditional mean
“Regressing on ” means studying how the average value of changes as takes different fixed values — not predicting any one individual perfectly, but describing the pattern in ‘s behaviour across values of .
The population regression function (PRF)
- the conditional mean of Y for a given value X_i
- the true, unknown population parameters
Use it when you need to state the theoretical object regression is trying to uncover — the true relationship in the whole population, not just in one sample.
The PRF is the line traced out by plotting against for every possible value of — connecting the conditional means, like the 65 and 77.5 just computed, across the whole range of income. It is a property of the entire population, and in practice it is never directly observed: only a finite sample is available.
From PRF to a stochastic model
No single family’s actual consumption sits exactly on the conditional mean line — some spend more than their group’s average, some less. This individual deviation is captured by a disturbance term.
- the disturbance (error) term for observation i, capturing everything that pulls Y_i away from its conditional mean
Use it when you write down the full population model, ready to be estimated from a sample — this equation is the starting point of every two-variable regression in this course.
The sample regression function (SRF)
Since the PRF is unobservable, econometricians estimate it from a sample, producing the sample regression function, with residuals standing in for the unobservable disturbances.
- estimated parameters (also written b_0, b_1)
- the fitted (predicted) value
- the residual, the SAMPLE counterpart of u_i
Use it when you are working with actual estimated numbers from a specific dataset, as opposed to the unobservable, purely theoretical PRF.
What “linear” regression really means
Use it when a model has a squared or otherwise nonlinear term in X, and you need to decide whether ordinary least squares can still be used.
is a linear regression model, because it is linear in and — can simply be treated as a single, ordinary explanatory variable. But is not linear regression, because the parameter itself appears squared.
Simple versus multiple regression
A two-variable (simple) regression has one dependent variable and one explanatory variable, exactly the form studied so far. A multiple regression has one dependent variable and two or more explanatory variables — the subject of Lessons 7 to 9 later in this course.
Exam practice
Summary and review
- Regression studies how the conditional mean of Y changes as X varies.
- PRF: , the true, unobservable population relationship.
- Stochastic PRF: .
- SRF: , with residual , estimated from an actual sample.
- Disturbance (population, unobservable) versus residual (sample, observable) is a distinction that recurs throughout the course.
- “Linear” regression means linear in the parameters, not necessarily in the variables.
- Simple (two-variable) regression has one explanatory variable; multiple regression has two or more.