Loading [MathJax]/jax/output/HTML-CSS/jax.js

Monday, January 28, 2013

Bivariate Case (OLS)

Given
x=x1,x2,,xn andy=y1,y2,,yn

We define the optimal minimum or the optimized mininum as:
Opt Min F=[yactualf(x)]2
where
line y=f(x)=a+bx
Substituting the line f(x) to the optimized minimum F, we have
F=[yabx)]2
Taking the first derivative with respect to a and b,
Fa=2(yabx)(1)=0Fb=2(yabx)(x)=0
We can now derive the normal equation for the OLS as:

y=an+bxxy=ax+bx2
Solve for a and b to get critical points and find out if they really produced the optimum.

1 comment: