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
How the exam asks it: three core exam templates
Midterm exams on two-variable regression test three canonical problems: (1) calculating conditional means and true disturbances from the PRF, (2) computing fitted values and sample residuals from the SRF, and (3) testing linearity in parameters.
Exam template 1: Conditional expectation and the disturbance term
Question: A sample survey observes 5 families at an income level of thousand TL with consumption expenditures (thousand TL). The true population regression function is . One specific family in this group consumes thousand TL.
a) Calculate the conditional expectation directly from the data.
b) Confirm that the population regression equation gives the same conditional mean.
c) Compute this family’s disturbance and interpret its economic meaning.
Exam template 2: Fitted values and the sample residual
Question: The true PRF from Template 1 is estimated from a sample, yielding the sample regression function:
For the family with income thousand TL and actual consumption thousand TL:
a) Calculate the fitted value .
b) Calculate the sample residual .
c) Explain why the residual differs from the disturbance found in Template 1.
Exam template 3: Testing linearity in parameters
Question: State whether each regression model is linear under the definition required for classical linear regression:
a)
b)
c)
d)
Cheat-sheet & the 4-step method
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 across the whole range of income. In the textbook’s family consumption example, weekly family income runs dollars and the conditional mean is : at it is , and at it is . The PRF joins all such points. It is a property of the entire population, and in practice it is never directly observed: only a finite sample is available.
Try it with the real 60 families: pick an income column and draw samples.
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.
Look at how one family’s expenditure decomposes. Given the family’s income , its observed is the sum of two parts: (1) , the average spending of all families with that same income — the systematic (deterministic) component; and (2) , the family’s own deviation from that average — the random (nonsystematic) component.
- 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.
Why is there a disturbance term?
Seven standard reasons explain why a stochastic disturbance belongs in the model, all illustrated with the consumption example:
- Vagueness of theory. The theory behind ‘s behaviour is often incomplete, so stands in for every relevant variable the model leaves out — a family’s spending responds to tastes, habits and health, and no small theory names them all.
- Unavailability of data. Even when theory names a variable, quantitative information about it may not exist — thriftiness clearly affects saving, but no survey records it as a number.
- Core versus peripheral variables. Some influences are central and others minor; the weak peripheral ones are not worth modelling one by one and get lumped into — income dominates consumption, while the spending habits of distant relatives still nudge .
- Intrinsic randomness in human behaviour. Human beings are not fully predictable, so behaviour contains a genuinely random element — two families with the same income may still spend differently on impulse.
- Poor proxy variables. Measured variables are often imperfect stand-ins for the theoretical ones, or are measured with error — reported income may omit informal earnings, so recorded imperfectly proxies true income.
- Principle of parsimony. A good model stays as simple as possible, and carries the countless small omitted influences — one keeps income alone rather than adding dozens of minor regressors.
- Wrong functional form. The true relationship may not have the shape assumed, and the misfit of a misspecified form shows up in — if consumption bends nonlinearly with income, a straight-line model misses the bend.
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 (written b_1, b_2 on the slides)
- 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.
Estimators, estimates and SRF notation
The sample mean shows the difference. The formula is the estimator: it is the general rule. Feed it one particular sample — say the ten weekly incomes 80, 100, …, 260 — and it returns dollars; that single number is the estimate. A different sample would generally produce a different estimate.
The slides write the SRF as (, ; “Y-hat” is read as the estimator of the conditional mean). Each sample quantity estimates one population quantity:
- estimates ;
- estimates the intercept ;
- estimates the slope .
In stochastic form the SRF reads . For we observe one value ; in terms of the SRF it splits as , while in terms of the PRF it splits as . The residual is thus the observable sample stand-in for the unobservable disturbance . Because of sampling fluctuation, the SRF-based estimate of the PRF is at best approximate.
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: .
- Each splits into a systematic part and a random part .
- Seven reasons for the disturbance: vagueness of theory, unavailable data, core versus peripheral variables, intrinsic randomness, poor proxies, parsimony, wrong functional form.
- Estimator = the rule (e.g. ); estimate = the number it returns for one sample.
- Stochastic SRF: , where and estimate the intercept and slope.
- 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.
Step-by-step examples
The ladder below climbs from easy to exam level. Try each step on paper before you reveal it — attempting an example yourself, even badly, teaches more than reading a finished solution.