计量经济学stata早上7-8考试
MT1 Review
ECON:3300
University of Iowa
Fall 2021
Setup
Data and sample are synonymous
– We assume independent and identically distributed (IID) sample
– Sample of observations drawn independently from the same distribution
– Random sample of observations from the same distribution
(Yi,Xi) represents (Y,X) for the ith position in the sample
– IID: (Yi,Xi) are independent across i and have the same distribution for all i
The ith position in the sample is typically called “agent i “
Our Tools
Pair of random variables (Y,X) is characterized by joint probability distribution Pr(Y=y,X=x)
– From joint distribution, can obtain marginal distribution of Y and X
– Sum Pr(Y=y,X=x) across x to obtain Pr(Y=y)
– Sum Pr(Y=y,X=x) across y to obtain Pr(X=x)
– Can also obtain conditional distribution of Y given X : Pr(Y=y∣X=x)
– Bayes’ rule
– Interpretation of conditional distribution
Mean
E[Y]=∑yPr(Y=y)⏟weight y
E[Y] is the “best” predictor of Y
Sample estimator of E[Y]: Sample average
ˉY=n∑i=11n⏟weight Yi=1nn∑i=1Yi
Sample average gives equal weight to each observation Yi
Conditional mean
E[Y∣X=x]=∑yPr(Y=y∣X=x)⏟weight y
E[Y∣X=x] is the “best” predictor of Y as a function of x Interpretation of conditional mean
– E[Y∣X=x] is E[Y] only for those that satisfy X=x Interpretation of conditional mean with more than 1 condition: e.g., E[Y∣X=x,Z=z]
Sample estimator of E[Y∣X=x]?
– Sample average only for those that satisfy X=x
Covariance
cov(Y,X)=E[(Y−E[Y])(X−E[X])]
cov(Y,X)>0:Y and X move in the same direction on
average
cov(Y,X)<0:Y and X move in the opposite direction
on average
var(Y) is cov(Y,Y)
sd(Y) is √var(Y)
corr(Y,X)=cov(Y,X)sd(Y)sd(X); corr is always between −1 and 1
With Binary X
“Treated” v.s. “Non-treated”
Unlike lab experiments, difficult to control for “everything else”
Economics typically deals with observational data Observational data: Agents can “select” what they do
Why did they “select” to be “treated’?
– A related example is adverse “selection”
– High-risk people “select” generous insurance policy
The “treated” and the “non-treated” may be inherently different
Difference in means capture “treatment effect” plus something else
“Difference in differences” might capture the “treatment effect’
Linear regression model
Y=α0+β0X+U
Describes how we think Y is generated
Interpretation of error term U
X and U are not necessarily independent
– Generalization of “the “treated” and the “non-treated” may be inherently different”
Interpretation of β0
For binary X, CEF E[Y∣X=x] is always linear in x For general X, form of E[Y∣X=x] unknown
E[Y∣X=x]=E[α0+β0X+U∣X=x]=α0+β0x+E[U∣X=x]⏟=?
计量经济学代写请认准UpriviateTA. UpriviateTA为您的留学生涯保驾护航。