0

The input is a group of points $(x,y)$. I am trying to find the regression equation of $y = ax^2$ (I am trying to find the coefficient $a$ that gives the smallest sum of squares of errors from the input points. How do I find this?

What I have tried

I tried to calculate coefficient a like above, but the result was not what I expected.

Thank you.

Sebastiano
  • 7,649

1 Answers1

1

Your regression equation is modeling the response $y$ as a linear function of $x^2$, with no intercept. So formally it is the same problem as this one, except you replace every occurrence of $x_i$ with $x_i^2$. The result will agree with your calculation.

grand_chat
  • 38,951