Econometric Theory/Normal Equations Proof: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>PokestarFan
m {{BookCat}}/possible general fixes, replaced: [[Category:{{FULLBOOKNAME}}|{{FULLCHAPTERNAME}}]] → {{BookCat}} using AWB
 
(No difference)

Latest revision as of 00:54, 15 June 2017

Below is the proof of the Normal Equations for OLS.

The goal of OLS is to minimize the sum of squared error terms to find the best fit, also called the Residual Sum of Squares (RSS). This is denoted by ϵi^2.

Defining the RSS

Known: ϵi^=YiYi^=YiαβXi

RSS = ϵi^2 =

=(YiYi^)2

=(Yiα^β^Xi)2

Differentiate the RSS (so that we can then minimise it)

minαϵi^2 =

ϵi^2α^=2ϵi^ϵi^α^=2ϵi^(1)=2(Yiα^β^Xi)(1)=0


minβϵi^2 =

ϵi^2β^=2ϵi^ϵi^β^=2ϵi^(Xi)=2(Yiα^β^Xi)(Xi)=0

So we have two equations:

(Yiα^β^Xi)(1)=0

and

(Yiα^β^Xi)(Xi)=0 (The two(2) here is divided from both sides)

setting them both equal to Yi

We get

Yi=nα^+β^Xi (This is the first OLS Normal Equation)

and

YiXi=α^Xi+β^Xi2 (This is the second OLS Normal Equation)

Solve the Normal Equations

Divide the first equation by n

1nYi=α^+1nβ^Xi

Leaves us with (Wi1n=W¯)

Y¯=α^+β^X¯α^=Y¯β^X¯

Now we know how to get α(hat), we can work on β(hat)

YiXi=α^Xi+β^Xi2=[Y¯β^X¯]Xi+β^Xi2=[(Xi)(Yi)n]+β^[Xi2(Xi)2n]

We can move β(hat) to one side

β^=YiXi(Xi)(Yi)nXi2(Xi)2n=(xix¯)(yiy¯)(xix¯)2

- n \bar{X} \bar{Y}

And now we have our Normal equations for OLS.

Since we have two equations and two unknowns, we are able to solve for them (α^,β^).

Template:BookCat