Question: Consider the simple regression model y = 0 + 1 D + u , where D is a binary variable. a ) Let y i

Consider the simple regression model
y=0+1D+u,
where D is a binary variable.
a) Let yi1 be yi with Di=1,yi0 be yi with Di=0, and i=1Nyi=i=1N1yi1+i=1N0yi0, where N1+N0=N. Show that ?bar(y)=N1Ni=1N1yi1N1+N0i=1N0yi0NN0N0?bar(y)1+1-bar(D)bar(y)0.
b) Show that the OLS estimator: hat()1=i=1N(Di-(?bar(D)))(yi-(?bar(y)))i=1N(Di-(?bar(D)))2 can be written as ?bar(y)1-?bar(y)0.
[Hint: Note that Diyi=yi1 and Di2=Di. Therefore hat()1=
i=1NDiyi-i=1N(?bar(D))yi-i=1N(?bar(y))Di+i=1N(?bar(D))(?bar(y))i=1NDi2-Nbar(D)2=i=1Nyi1-(?bar(D))i=1Nyi-(?bar(y))i=1NDi+Nbar(Dy)i=1NDi-Nbar(D)2.Can you write down the detailed steps and answers with typing or handwriting. Thank you so much, Ill give you a thump up
Consider the simple regression model y = 0 + 1 D

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!