The Simple Regression Model
The Simple Regression Model
2 Estimating β0 & β1
2.1 Method of Moments
2.2 Ordinary Least Square
4 Goodness of Fit
∆y
= β1 if ∆u = 0 (2)
∆x
viii. Thus, β1 in Eq.2 is the slope parameter in Eq.1 and it is of
primary interest in applied economics. While β0 in Eq.1 is
the intercept parameter or sometimes called constant term.
Also has its uses, although rarely central to analysis.
E(u) = 0 (3)
y = β0 + β1 x + u
E(y|x) = β0 + β1 x
y1 = β0 + β1 x1 + u1
y2 = β0 + β1 x2 + u2
..
.
yn = β0 + β1 xn + un
12/61 Aidil Rizal Shahrin University of Malaya Unofficial Beamer Theme
Estimating β0 & β1
E(xu) = E[E(xu|x)]
But
E(xu|x) = xE(u|x)
Thus
E(xu) = E[E(xu|x)]
= E[xE(u|x)]
= E[x0]
=0
ȳ = β̂0 + β̂1 x̄ or
(14)
population parameter β̂0 = ȳ − β̂1 x̄ Estimator of beta0
Thus, we have
n
∂ X
(yi − β̂0 − β̂1 xi )2 = 0 (19)
∂ β̂0 i=1
n
∂ X
(yi − β̂0 − β̂1 xi )2 = 0 (20)
∂ β̂1 i=1
iv. From Eq.21, solving for β̂0 , we have exactly the same as
Eq.14. Then inserting this solution into Eq.22, with some
algebra manipulation, we end up with Eq.15.
v. Thus, method of moments and OLS produce the same
estimator for β0 and β1 which is Eq.14 and Eq.15
respectively.
E(y|x) = β0 + β1 x
salary = β0 + β1 roe
salary = β0 + β1 roe + u
E(salary|roe) = β0 + β1 roe
\ = 963.191 + 18.501roe
salary
Figure 3: The OLS regression line salary = 963.191 + 18.501roe and the
(unknown) PRF
i. Define:
a. Total sum of squares (SST) as:
n
X
SST ≡ (yi − ȳ)2 (24)
i=1
SSE SSR
1= +
SST SST
27/61 Aidil Rizal Shahrin University of Malaya Unofficial Beamer Theme
Goodness of Fit
iv. If we convert roe to decimal (we divide the roe data by 100)
and called it roedec, we have
V
y1 − y0 ∆y
log(y1 ) − log(y0 ) ≈ = , or
y0 y0
(37)
∆wage
log(wage1 ) − log(wage0 ) ≈
wage0
y = β0 + β1 x + u
1
cons = +u
β0 + β1 inc
y = β0 + β1 x + u (41)
yi = β0 + β1 xi , i = 1, 2, . . . , n, (42)
Figure 5: Graph of yi = β0 + β1 xi + ui
Fixed in repeated sample E(u|x) = 0
Fixed-in-repeated-sample assumption
The danger in fixed-in-repeated-samples assumption always
implies that ui and xi are independent.
where:
n
X
SSTx = (xi − x̄)2 (44)
i=1
di = xi − x̄ (45)
45/61 Aidil Rizal Shahrin University of Malaya Unofficial Beamer Theme
Unbiasedness of OLS
β̂0 = ȳ − β̂1 x̄
= β0 + β1 x̄ + ū − β̂1 x̄ (47)
= β0 + (β1 − β̂1 )x̄ + ū
Var(u|x) = σ 2
Thus
Var(u|x) = Var(u) = σ 2 (54)
And
σ̂ σ̂
se(β̂1 ) = √ = P (59)
SSTx n 2 1/2
i=1 (xi − x̄)
ỹ = β̃1 x (60)