Re: Least Squares Parabola

$\displaystyle S=\sum_{i=1}^{n}(y_{i}-a-bx_{i}-cx_{i}^{2})^{2}.$

Differentiate $\displaystyle S$ partially wrt $\displaystyle a,b$ and $\displaystyle c,$ equate each derivative to zero and solve the resulting equations.

Re: Least Squares Parabola

Hi

Thank you for response. I am try to show that a,b,c are minimization. I took derivatives of proper equation wrt a,b,c set to zero but now am unsure of how to solve for a,b,c explicit

Thank you very much

Re: Least Squares Parabola

The equation that you should be differentiating is the one for $\displaystyle S.$

Differentiating wrt $\displaystyle a$ gives you

$\displaystyle \frac{\partial S}{\partial a}=-2\sum_{i=1}^{n}(y_{i}-a-bx_{i}-cx^{2}_{i})$

and on putting this equal to zero this can be rewritten as

$\displaystyle \sum_{i=1}^{n} y_{i}=an+b\sum_{i=1}^{n} x_{i}+c\sum_{i=1}^{n} x_{i}^{2}$

The summations are taken over the $\displaystyle n$ data points and will therefore be numbers.

Differentiate to find the other two equations and then solve them simultaneously for $\displaystyle a,b$ and $\displaystyle c.$

BTW,** do not double post**. The response that you are getting from your other posting is an alternative method, they produce the same end result.

Re: Least Squares Parabola

Quote:

Originally Posted by

**BobP** The equation that you should be differentiating is the one for $\displaystyle S.$

Differentiating wrt $\displaystyle a$ gives you

$\displaystyle \frac{\partial S}{\partial a}=-2\sum_{i=1}^{n}(y_{i}-a-bx_{i}-cx^{2}_{i})$

and on putting this equal to zero this can be rewritten as

$\displaystyle \sum_{i=1}^{n} y_{i}=an+b\sum_{i=1}^{n} x_{i}+c\sum_{i=1}^{n} x_{i}^{2}$

The summations are taken over the $\displaystyle n$ data points and will therefore be numbers.

Differentiate to find the other two equations and then solve them simultaneously for $\displaystyle a,b$ and $\displaystyle c.$

BTW,** do not double post**. The response that you are getting from your other posting is an alternative method, they produce the same end result.

Much quicker than this method by the way...

Mods, would you please merge this thread with the other identical thread?

Re: Least Squares Parabola

Hello

thank you for reply

My onlly question was how to solve for a,b,c simultaneously. I already done the derivatives wrt a,b,c from proper equation (S)

thank you very much

Re: Least Squares Parabola

If you are working 'on paper', then a routine elimination is best.

Subtract multiples of the first equation from the second and third equations to eliminate $\displaystyle a,$ say, from both of them, then take a multiple of one of the new equations from the other to eliminate $\displaystyle b.$

That allows you to calculate $\displaystyle c$ and you can back substitute to calculate $\displaystyle b$ and $\displaystyle a.$