Chapter 2 - Econometrics
Chapter 2 - Econometrics
y = b0 + b1x + u
Some Terminology
In the simple linear regression model,
where y = b0 + b1x + u, we typically refer
to y as the
Dependent Variable, or
Left-Hand Side Variable, or
Explained Variable, or
Regressand
Independent Variable, or
Right-Hand Side Variable, or
Explanatory Variable, or
Regressor, or
Covariate, or
Control Variables
Economics 20 - Prof. Anderson
A Simple Assumption
The average value of u, the error term, in
the population is 0. That is,
E(u) = 0
This is not a restrictive assumption, since
we can always use b0 to normalize E(u) to 0
Economics 20 - Prof. Anderson
.
x1
. E(y|x) = b + b x
0
x2
Economics 20 - Prof. Anderson
y
y4
y3
y2
y1
u2 {.
.} u3
} u1
x1
x2
x3
x4
x
8
10
11
y
i 1
b 0 b1 xi 0
b x 0
x
y
b
i i 0 1 i
i 1
12
y b0 b1 x ,
or
b 0 y b1 x
Economics 20 - Prof. Anderson
13
x b x 0
x
y
b
i i
1
1 i
i 1
n
i 1
i 1
x
y
b
i i
1 xi xi x
n
i 1
i 1
xi x yi y b1 xi x
14
b1
x x y
i
i 1
x x
i 1
provided that xi x 0
2
i 1
15
16
More OLS
Intuitively, OLS is fitting a line through the
sample points such that the sum of squared
residuals is as small as possible, hence the
term least squares
The residual, , is an estimate of the error
term, u, and is the difference between the
fitted line (sample regression function) and
the sample point
Economics 20 - Prof. Anderson
17
y4
4 {
y b0 b1x
y3
y2
y1
2 { .
.} 3
1
}
.
x1
x2
x3
x4
x
18
ui
i 1
yi b0 b1 xi
i 1
19
i 1
n
x 0
b
0
1 i
b x 0
x
y
b
i i 0 1i
i 1
20
21
u
i 1
0 and thus,
x u
i 1
u
i 1
y b0 b1 x
Economics 20 - Prof. Anderson
22
More terminology
We can think of each observation as being made
up of an explained part, and an unexplained part,
yi y i ui We then define the following :
2
i
23
y y y y y y
u y y
u 2 u y y y y
SSR 2 u y y SSE
and we know that u y y 0
2
2
i
24
Goodness-of-Fit
How do we think about how well our
sample regression line fits our sample data?
Can compute the fraction of the total sum
of squares (SST) that is explained by the
model, call this the R-squared of regression
R2 = SSE/SST = 1 SSR/SST
Economics 20 - Prof. Anderson
25
26
Unbiasedness of OLS
Assume the population model is linear in
parameters as y = b0 + b1x + u
Assume we can use a random sample of
size n, {(xi, yi): i=1, 2, , n}, from the
population model. Thus we can write the
sample model yi = b0 + b1xi + ui
Assume E(u|x) = 0 and thus E(ui|xi) = 0
Assume there is variation in the xi
Economics 20 - Prof. Anderson
27
x x y
2
x
, where
s xi x
2
x
28
x x y x x b b x
x x b x x b x
x x u
b x x b x x x
x x u
i
1 i
ui
1 i
29
x x 0,
x x x x x
i
b s xi x ui , and thus
2
1 x
b1 b1
x x u
2
x
30
b i b1 2 d i ui , then
sx
1
E b1 b1
2 d i E ui b1
sx
31
Unbiasedness Summary
The OLS estimates of b1 and b0 are
unbiased
Proof of unbiasedness depends on our 4
assumptions if any assumption fails, then
OLS is not necessarily unbiased
Remember unbiasedness is a description of
the estimator in a given sample we may be
near or far from the true parameter
Economics 20 - Prof. Anderson
32
33
34
Homoskedastic Case
y
f(y|x)
.
x1
. E(y|x) = b + b x
0
x2
Economics 20 - Prof. Anderson
35
Heteroskedastic Case
f(y|x)
.
x1
x2
x3
Economics 20 - Prof. Anderson
E(y|x) = b0 + b1x
x
36
Var b1 Var b1
2 d i ui
sx
1
1
2 Var d i ui
2
sx
sx
1
2
sx
2
d
i Varui
1
d s s sx2
2
i
2
d
i
1 2 s2
s
2 sx
2 Var b1
sx
sx
2
37
38
39
s
ui SSR / n 2
n 2
Economics 20 - Prof. Anderson
40
sx
se b1 s / xi x
41