Steady State
İKT379 / Lecture 2
Lecture 2 · Week 2 · Gujarati ch. 2 · about 45 min

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.

By the end you can
  • 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 YY on XX” means studying how the average value of YY changes as XX takes different fixed values — not predicting any one individual YY perfectly, but describing the pattern in YY‘s behaviour across values of XX.

Worked example · A conditional mean from grouped data0/3

Three families with income X=80X=80 (thousand TL) report consumption Y=60,65,70Y = 60, 65, 70 (thousand TL). Four families with X=100X=100 report Y=70,75,80,85Y=70,75,80,85. Find the conditional mean E(Y∣X=100)E(Y \mid X=100).

Your turn

Using the same setup, find E(Y∣X=80)E(Y \mid X = 80) from the values 60, 65, 70.

The population regression function (PRF)

Population regression functionKey definitionFormula sheet →
E(Y∣Xi)=β0+β1XiE(Y \mid X_i) = \beta_0 + \beta_1 X_i
E(Y∣Xi)E(Y \mid X_i)
the conditional mean of Y for a given value X_i
β0,β1\beta_0, \beta_1
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 E(Y∣X)E(Y|X) against XX for every possible value of XX — 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.

Stochastic PRFKey formulaFormula sheet →
Yi=E(Y∣Xi)+ui=β0+β1Xi+uiY_i = E(Y\mid X_i) + u_i = \beta_0 + \beta_1 X_i + u_i
uiu_i
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.

Check your understanding

One family with X = 100 (income) has Y = 88 (consumption), while E(Y∣X=100)=77.5E(Y|X=100) = 77.5. What is that family's disturbance term uiu_i?

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.

Sample regression functionKey formulaFormula sheet →
Y^i=β^0+β^1XiYi=Y^i+ei\hat Y_i = \hat\beta_0 + \hat\beta_1 X_i \qquad Y_i = \hat Y_i + e_i
β^0,β^1\hat\beta_0, \hat\beta_1
estimated parameters (also written b_0, b_1)
Y^i\hat Y_i
the fitted (predicted) value
eie_i
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.

Your turn

A fitted regression gives Y^i=74\hat Y_i = 74 for an observation whose actual value is Yi=80Y_i = 80. Find the residual eie_i.

What “linear” regression really means

Linearity in the parametersKey ideaFormula sheet →
Linear regression  ⟺  linear in the β’s, not necessarily in the X’s\text{Linear regression} \iff \text{linear in the } \beta\text{'s, not necessarily in the } X\text{'s}

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.

Yi=β0+β1Xi2+uiY_i = \beta_0 + \beta_1 X_i^2 + u_i is a linear regression model, because it is linear in β0\beta_0 and β1\beta_1 — X2X^2 can simply be treated as a single, ordinary explanatory variable. But Yi=β0+β12Xi+uiY_i = \beta_0 + \beta_1^2 X_i + u_i is not linear regression, because the parameter β1\beta_1 itself appears squared.

Check your understanding

Which of the following is a linear regression model in the sense used throughout this course?

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

Exam question 1

Five families with X = 60 report Y = 40, 42, 45, 48, 50. Find E(Y | X = 60).

Exam question 2

What best distinguishes the population regression function (PRF) from the sample regression function (SRF)?

Exam question 3

A fitted line gives Y^i=120\hat Y_i = 120 for an observation with actual Yi=108Y_i = 108. Find the residual.

Exam question 4

Is Yi=β0+β1(1/Xi)+uiY_i = \beta_0 + \beta_1(1/X_i) + u_i a linear regression model?

Summary and review

Review deck · 9 cards0/9 mastered