Lecture 2
Lecture 2
• Today:
• Study correlation between two variables 𝑌 and 𝑋
• The concept of “The OLS Coefficient”
You will hear the term “OLS” millions of times in the future.
The Simple Linear Regression Model
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
• Our goal is to find 𝛾0 , 𝛾1 , and in some cases, 𝜀𝑖 .
• They are not observable. We need to estimate them.
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
Important: How to Interpret the model?
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
Important: How to Interpret the model?
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
𝑌𝑖 = 𝛾0 + 𝛾1 𝑋𝑖 + 𝜀𝑖
𝜀𝑖Ƹ = 𝑌𝑖 − 𝑌𝑖
SSR = σ𝑛 𝜀
𝑖=1 𝑖Ƹ 2
= σ 𝑛
𝑌
𝑖=1 𝑖 − 𝛾
ෞ0 − 𝛾
ෝ 𝑋
1 𝑖
2
𝑛
𝜕𝑆𝑆𝑅
= −2 𝑌𝑖 − 𝛾 ෞ0 = 𝑌ത − 𝛾ෝ1 𝑋ത
ෞ0 − 𝛾ෝ1 𝑋𝑖 = 0 ⇒ 𝛾
𝜕ෞ
𝛾0
𝑖=1
SSR = σ𝑛 𝜀
𝑖=1 𝑖Ƹ 2
= σ 𝑛
𝑌
𝑖=1 𝑖 − 𝛾
ෞ0 − 𝛾
ෝ 𝑋
1 𝑖
2
ෞ0 = 𝑌ത − 𝛾ෝ1 𝑋ത
𝛾
𝑛 1 𝑛
𝜕𝑆𝑆𝑅 σ𝑖 𝑌𝑖 𝑋𝑖 − 𝑋ത 𝑌ത
= −2 𝑌𝑖 − 𝛾
ෞ0 − 𝛾ෝ1 𝑋𝑖 𝑋𝑖 = 0 ⇒ 𝛾ෝ1 = 𝑛
𝜕𝛾ෝ1 1 𝑛 2
𝑖=1 (σ𝑖 𝑋𝑖 ) − 𝑋ത 2
𝑛
1 𝑛 ത 𝑖 − 𝑋)ത
σ𝑖 (𝑌𝑖 − 𝑌)(𝑋
𝐶 𝑂𝑉 𝑋, 𝑌
𝛾ෝ1 = 𝑛 =
1 𝑛
𝑉 𝐴𝑅(𝑋)
σ𝑖 𝑋𝑖 − 𝑋ത 2
𝑛
International convergence
• Solow model predicts that poor
countries will “catch up” with
developed countries (at least
when it comes to GDP per
capita)
• In the data: poorer countries in
the past must grow quicker than
richer countries
• Negative relationship between
both
International convergence
Let’s study the relationship in this
data by estimating the following
statistical model:
𝐺𝑅𝑖 = 𝛾0 + 𝛾1 𝐺𝐷𝑃𝑖 + 𝜀𝑖
Mechanically:
• Sum of the residuals is zero
• Residuals and regressors are
orthogonal
• No more correlation to be extracted
The solution
𝜕𝛾0 : −2σ 𝑌𝑖 − 𝛾ො0 − 𝛾ො1 𝑋𝑖 = 0
𝜕𝛾1 : −2σ 𝑌𝑖 − 𝛾ො0 − 𝛾ො1 𝑋𝑖 𝑋𝑖 = 0
International convergence
International convergence
Regression equation:
𝐺𝐷𝑃
= 0.025 − 0.0034
𝐺𝑅
1000
𝛾ො1 − 𝛾1
𝑡= ~𝑁𝑜𝑟𝑚𝑎𝑙(0,1)
𝑠ෞ𝑒 𝛾ො1