

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


University
of
Oklahoma
Data from randomized experiment
Observational
Data collected passively
Cross-sectional
Multiple units, one point in time
Time series
Single unit, multiple points in time
Longitudinal (or Panel)Multiple
units
followed
over
multiple
time periods
Experimental data
Correlation
Causality
Very rare in Social Sciences
random sample
of data to learn about the
populationRandom sample
Representative of population
Parameter (
θ
Some number describing population
Estimator of
θ
Rule assigning value of
θ
to sample
e.g. Sample average,
1
N
Ni
=
i
Estimate of
θ
What the estimator spits outfor a particular sample (
ˆθ
Sampling distribution
Distribution of estimatesacross all possible samples
Bias of estimator
θ
Efficiency
efficient if
V ar
< V ar
Consistency
consistent if
θ
θ
as
0
Typically,
0
θ
alt. hypothesis (
a
Typically,
0
θ
significance level (
α
Tolerance for making Type I error;(e.g. 10%, 5%, or 1%)
test statistic (
Some function of the sample of data
critical value (
c
Value of
such that reject
0
if
c
c
depends on
α
c
depends on if 1- or 2-sided test
p
-value
Largest
α
at which fail to reject
0
reject
0
if
p < α
ceteris paribus
relationship between some variable
x
and our outcome
y
y
β
0
β
1
x
u
We want to estimate
β
1
, which gives us the effect of
x
on
y
β
0
and
β
1
, we make two assumptions:
u
u
x
u
) for all
x
When these hold, we get the following formulas:
β
0
y
β
1
x
β
1
Cov
y, x
V ar
x
fitted values (ˆ
y
i
y
i
β
0
β
1
x
i
residuals (ˆ
u
i
u
i
y
i
y
i
Total Sum of Squares
Ni
=
y
i
y
2
Expl. Sum of Squares
Ni
=
y
i
y
2
Resid. Sum of Squares
Ni
=
u
2 i
-squared (
2
2
SSE
SST
“frac. of var. in
y
explained by
x
Ni
=
u
i
= 0 (mean & sum of residuals is zero)
Ni
=
x
i
ˆu
i
= 0 (zero covariance bet.
x
and resids.)
The OLS line (SRF) always passes through (
x, y
2
Our model is restricted to be
linear in parameters
But not linear in
x
Other functional forms can give more realistic model
Model
Interpretation of
β
1
Level-level
y
x
y
β
1
x
Level-log
y
log(
x
y
β
1
x
Log-level
log(
y
x
y
β
1
x
Log-log
log(
y
log(
x
y
β
1
x
Quadratic
y
x
x
2
y
β
1
β
2
x
x
Note: DV
=
dependent variable; RHS
=
right hand side
ceteris paribus
relationships (i.e.
u
x
u
) is more plausible)
y
β
0
β
1
x
1
β
k
x
k
u
β
1
β
k
partial effect
of each of the
x
’s on
y
β
0
y
β
1
x
1
β
k
x
k
β
j
Cov
y,
residualized
x
j
V ar
(residualized
x
j
where “residualized
x
j
” means the residuals from OLS
regression of
x
j
on all other
x
’s (i.e.
x
1
,... , x
j
−
1
, x
j
,... x
k
y
is a linear function of the
β
’s
y
and
x
’s are randomly sampled from population
No perfect multicollinearity
u
x
1
,... , x
k
u
) = 0 (Unconfoundedness)
V ar
u
x
1
,... , x
k
V ar
u
σ
2
(Homoskedasticity)
When (1)-(4) hold:
OLS is unbiased; i.e.
β
j
β
j
When (1)-(5) hold:
OLS is Best Linear Unbiased Estimator
ˆσ
2
N
∑ i
=
ˆu
2 i
j
V ar
β
j
σ
2
j
2 j
j
, ..., k
where
j
V ar
x
j
N
∑ i
=
x
ij
x
j
2 j
2
from a regression of
x
j
on all other
x
’s
Standard deviation:
V ar
Standard error:
V ar
se
β
j
ˆσ
2
j
2 j
, j
,... , k
u
is distributed
, σ
2
Need this to know what the
distribution
of
β
j
is
Otherwise, need
asymptotics
to do hypothesis testing of
β
’s
Under A (1)–(6),
1
can test hypotheses about the
β
’s
1
Or, A (1)–(5) combined with asymptotic properties
To test a simple hypothesis like
0
β
j
a
β
j
use a
t
-test:
t
β
j
se
β
j
where 0 is the null hypothesized value.Reject
0
if
p < α
or if
t
c
(See: Hypothesis testing)
Can’t use a
t
-test for joint hypotheses, e.g.:
0
β
3
β
4
β
5
a
β
3
β
4
β
5
Instead, use
statistic:
r
ur
df
r
df
ur
ur
/df
ur
r
ur
/q
ur
k
where
r
of restricted model (if
0
true)
ur
of unrestricted model (if
0
false)
q
= # of equalities in
0
k
1 = Deg. Freedom of unrestricted model
Reject
0
if
p < α
or if
F > c
(See: Hypothesis testing)
Note:
0, always
Qualitative data
Can use qualitative data in our model
Must create a
dummy variable
e.g. “Yes” represented by 1 and “No” by 0
dummy variable trap:
Perfect collinearity that happens
when too many dummy variables are included in the model
y
β
0
β
1
happy
β
2
not
happy
u
not
happy
y
β
0
β
1
happy
β
2
age
u
β
1
avg.
y
for those who are happy
compared to
those who
are unhappy, holding fixed age
When two
x
’s are multiplied together
y
β
0
β
1
happy
β
2
age
β
3
happy
age
u
β
3
difference in
age
slope
for those who are happy
compared to
those who are unhappy
y
is a dummy variable, e.g.
happy
β
0
β
1
age
β
2
income
u
β
’s are interpreted as
change in probability
∆ Pr(
y
β
1
x
By definition, homoskedasticity is violated in the LPM Time Series (TS) data
Observe one unit over many time periods
e.g. US quarterly GDP, 3-month T-bill rate, etc.
New G-M assumption: no serial correlation in
u
t
Remove random sampling assumption (makes no sense)
Causality (e.g.
taxes
?
GDP growth)
Forecasting (e.g. AAPL stock price next quarter?)
y
always
or
every period
Seasonality:
y
always
or
at regular intervals
Non-stationarity:
y
has a unit root; i.e. not stable
Otherwise,
2
and
β
j
’s are misleading
(1) model (Auto Regressive of order 1):
y
t
ρy
t
−
1
u
t
Stable if
ρ
1; Unit Root if
ρ
Use ∆
y
y
t
y
t
−
1
instead of
y
t
Test for unit root:
Augmented Dickey-Fuller (ADF) test
0
of ADF test:
y
has a unit root
forecasting error
f
t
min
f
t
e
2 t
t
y
t
f
t
2
t
where
t
is the
information set
RMSE measures forecast performance (on future data):
Root Mean Squared Error =
m
m
−
1
∑ h
=
ˆe
2 T
h
Model with lowest RMSE is best forecast
Can choose
f
t
in many ways
Basic way: ˆ
y
T
from linear model
ARIMA, ARMA-GARCH are cutting-edge models
Granger causes
y
if, after controlling for past values of
y
past values of
z
help forecast
y
t
CLM violations Heteroskedasticity
Test: Breusch-Pagan or White tests (
0
: homosk.)
If
0
rejected, SEs, t-, and F-stats are invalid
Instead use heterosk.-robust SEs and t- and F-stats
Test: Breusch-Godfrey test (
0
: no serial corr.)
If
0
rejected, SEs, t-, and F-stats are invalid
Instead use HAC SEs and t- and F-stats
HAC: “Heterosk. and Autocorrelation Consistent”
Measurement error in
x
can be a violation of A
Attenuation bias:
β
j
biased towards 0
x
is excluded:
omitted variable bias
Bias depends on two forces:
Partial effect of
x
2
on
y
(i.e.
β
2
Correlation between
x
2
and
x
1
Which direction does the bias go?
Corr
x
1
, x
2
Corr
x
1
, x
2
β
2
Positive Bias
Negative Bias
β
2
Negative Bias
Positive Bias
Note: “Positive bias” means
β
1
is too big;
“Negative bias” means
β
1
is too small