x=x1,x2,⋯,xn andy=y1,y2,⋯,yn
We define the optimal minimum or the optimized mininum as:
Opt Min F=∑[yactual−f(x)]2
where
line y=f(x)=a+bx
Substituting the line f(x) to the optimized minimum F, we have
F=∑[y−a−bx)]2
Taking the first derivative with respect to a and b,
∂F∂a=2∑(y−a−bx)(−1)=0∂F∂b=2∑(y−a−bx)(−x)=0
We can now derive the normal equation for the OLS as:
∑y=an+b∑x∑xy=a∑x+b∑x2
Solve for a and b to get critical points and find out if they really produced the optimum.
This comment has been removed by the author.
ReplyDelete