Виведення варіації коефіцієнта регресії в простій лінійній регресії


38

У простій лінійній регресії маємо y=β0+β1x+u , де u∼iidN(0,σ2) . Я отримав оцінювач:

β1^=∑i(xi−x¯)(yi−y¯)∑i(xi−x¯)2 ,
деx¯ іy¯ - вибіркові засобиxіy.

Тепер я хочу , щоб знайти дисперсію р 1 . Я отримав щось на зразок наступного: Var ( ^ β 1 ) = σ 2 ( 1 - 1β^1

Var(β1^)=σ2(1−1n)∑i(xi−x¯)2 .

Виведення таке:

Var(β1^)=Var(∑i(xi−x¯)(yi−y¯)∑i(xi−x¯)2)=1(∑i(xi−x¯)2)2Var(∑i(xi−x¯)(β0+β1xi+ui−1n∑j(β0+β1xj+uj)))=1(∑i(xi−x¯)2)2Var(β1∑i(xi−x¯)2+∑i(xi−x¯)(ui−∑jujn))=1(∑i(xi−x¯)2)2Var(∑i(xi−x¯)(ui−∑jujn))=1(∑i(xi−x¯)2)2×E[(∑i(xi−x¯)(ui−∑jujn)−E[∑i(xi−x¯)(ui−∑jujn)]⏟=0)2]=1(∑i(xi−x¯)2)2E[(∑i(xi−x¯)(ui−∑jujn))2]=1(∑i(xi−x¯)2)2E[∑i(xi−x¯)2(ui−∑jujn)2] , since ui 's are iid=1(∑i(xi−x¯)2)2∑i(xi−x¯)2E(ui−∑jujn)2=1(∑i(xi−x¯)2)2∑i(xi−x¯)2(E(ui2)−2×E(ui×(∑jujn))+E(∑jujn)2)=1(∑i(xi−x¯)2)2∑i(xi−x¯)2(σ2−2nσ2+σ2n)=σ2∑i(xi−x¯)2(1−1n)

Did I do something wrong here?

I know if I do everything in matrix notation, I would get Var(β1^)=σ2∑i(xi−x¯)2. But I am trying to derive the answer without using the matrix notation just to make sure I understand the concepts.


2
Yes, your formula from matrix notation is correct. Looking at the formula in question, 1−1n=n−1n so it rather looks as if you might used a sample standard deviation somewhere instead of a population standard deviation? Without seeing the derivation it's hard to say any more.
— TooTone

General answers have also been posted in the duplicate thread at stats.stackexchange.com/questions/91750.
— whuber

Відповіді:


35

At the start of your derivation you multiply out the brackets ∑i(xi−x¯)(yi−y¯), in the process expanding both yi and y¯. The former depends on the sum variable i, whereas the latter doesn't. If you leave y¯ as is, the derivation is a lot simpler, because

∑i(xi−x¯)y¯=y¯∑i(xi−x¯)=y¯((∑ixi)−nx¯)=y¯(nx¯−nx¯)=0

Hence

∑i(xi−x¯)(yi−y¯)=∑i(xi−x¯)yi−∑i(xi−x¯)y¯=∑i(xi−x¯)yi=∑i(xi−x¯)(β0+β1xi+ui)

and

Var(β1^)=Var(∑i(xi−x¯)(yi−y¯)∑i(xi−x¯)2)=Var(∑i(xi−x¯)(β0+β1xi+ui)∑i(xi−x¯)2),substituting in the above=Var(∑i(xi−x¯)ui∑i(xi−x¯)2),noting only ui is a random variable=∑i(xi−x¯)2Var(ui)(∑i(xi−x¯)2)2,independence of ui and, Var(kX)=k2Var(X)=σ2∑i(xi−x¯)2

which is the result you want.


As a side note, I spent a long time trying to find an error in your derivation. In the end I decided that discretion was the better part of valour and it was best to try the simpler approach. However for the record I wasn't sure that this step was justified

=.1(∑i(xi−x¯)2)2E[(∑i(xi−x¯)(ui−∑jujn))2]=1(∑i(xi−x¯)2)2E[∑i(xi−x¯)2(ui−∑jujn)2] , since ui 's are iid
because it misses out the cross terms due to ∑jujn.

I noticed that I could use the simpler approach long ago, but I was determined to dig deep and come up with the same answer using different approaches, in order to ensure that I understand the concepts. I realise that first ∑juj^=0 from normal equations (FOC from least square method), so u^¯=∑iuin=0, plus u^¯=y¯−y^¯=0, so y¯=y^¯. So there won't be the term ∑jujn in the first place.
— mynameisJEFF

ok, in your question the emphasis was on avoiding matrix notation.
— TooTone

Yes, because I was able to solve it using matrix notation. And notice from my last comment, I did not use any linear algebra. Thanks for your great answer anyway^.^
— mynameisJEFF

sorry are we talking at cross-purposes here? I didn't use any matrix notation in my answer either, and I thought that was what you were asking in your question.
— TooTone

sorry for misunderstanding haha...
— mynameisJEFF

2

I believe the problem in your proof is the step where you take the expected value of the square of ∑i(xi−x¯)(ui−∑jujn). This is of the form E[(∑iaibi)2], where ai=xi−x¯;bi=ui−∑jujn. So, upon squaring, we get E[∑i,jaiajbibj]=∑i,jaiajE[bibj]. Now, from explicit computation, E[bibj]=σ2(δij−1n), so E[∑i,jaiajbibj]=∑i,jaiajσ2(δij−1n)=∑iai2σ2 as ∑iai=0.


2

Begin from "The derivation is as follow:" The 7th "=" is wrong.

Because

∑i(xi−x¯)(ui−u¯)

=∑i(xi−x¯)ui−∑i(xi−x¯)u¯

=∑i(xi−x¯)ui−u¯∑i(xi−x¯)

=∑i(xi−x¯)ui−u¯(∑ixi−nx¯)

=∑i(xi−x¯)ui−u¯(∑ixi−∑ixi)

=∑i(xi−x¯)ui−u¯0

=∑i(xi−x¯)ui

So after 7th "=" it should be:

1(∑i(xi−x¯)2)2E[(∑i(xi−x¯)ui)2]

=1(∑i(xi−x¯)2)2E(∑i(xi−x¯)2ui2+2∑i≠j(xi−x¯)(xj−x¯)uiuj)

=1(∑i(xi−x¯)2)2E(∑i(xi−x¯)2ui2)+2E(∑i≠j(xi−x¯)(xj−x¯)uiuj)

=1(∑i(xi−x¯)2)2E(∑i(xi−x¯)2ui2), because ui and uj are independent and mean 0, so E(uiuj)=0

=1(∑i(xi−x¯)2)2(∑i(xi−x¯)2E(ui2))

σ2(∑i(xi−x¯)2)2


1
It might be helpful if you edited your answer to include the correct line.
— mdewey

Your answer is being automatically flagged as low quality because it's very short. Please consider expanding on your answer
— Glen_b -Reinstate Monica
Використовуючи наш веб-сайт, ви визнаєте, що прочитали та зрозуміли наші Політику щодо файлів cookie та Політику конфіденційності.
Licensed under cc by-sa 3.0 with attribution required.