Least square approximation parabola
I´m working on an assignment which I think I have solved properly but since I don´t have the solution I´m a little nervous and I wonder if someone could take a look at it.
Here´s the question (translated from another language):
What is the best adjustment, in the "least square" sense, of the parabola
to the data points
given by the set ,(1,2),(2,4),(3,4)})
Here´s my solution:
I plug the given points in the equation and solve the system of linear equations and find that there is no solution
. Which means i need to find a parabola which is as close as possible.
From
where
and ![b=\left[ \begin {array}{c} 3\\ \noalign{\medskip}2\\ \noalign{\medskip}<br />
4\\ \noalign{\medskip}4\end {array} \right] <br />](http://latex.codecogs.com/png.latex?b=\left[ \begin {array}{c} 3\\ \noalign{\medskip}2\\ \noalign{\medskip}<br />
4\\ \noalign{\medskip}4\end {array} \right] <br />
)
And since the columns in A are linearly independent,
is invertible I get
![c=(A^TA)^{-1}A^Tb=\left[ \begin {array}{ccc} {\frac {19}{20}}&-{\frac {21}{20}}&1/4<br />
\\ \noalign{\medskip}-{\frac {21}{20}}&{\frac {49}{20}}&-3/4<br />
\\ \noalign{\medskip}1/4&-3/4&1/4\end {array} \right] <br />
\left[ \begin {array}{cccc} 1&1&1&1\\ \noalign{\medskip}0&1&2&3<br />
\\ \noalign{\medskip}0&1&4&9\end {array} \right] <br />
\left[ \begin {array}{c} 3\\ \noalign{\medskip}2\\ \noalign{\medskip}<br />
4\\ \noalign{\medskip}4\end {array} \right] <br />](http://latex.codecogs.com/png.latex?c=(A^TA)^{-1}A^Tb=\left[ \begin {array}{ccc} {\frac {19}{20}}&-{\frac {21}{20}}&1/4<br />
\\ \noalign{\medskip}-{\frac {21}{20}}&{\frac {49}{20}}&-3/4<br />
\\ \noalign{\medskip}1/4&-3/4&1/4\end {array} \right] <br />
\left[ \begin {array}{cccc} 1&1&1&1\\ \noalign{\medskip}0&1&2&3<br />
\\ \noalign{\medskip}0&1&4&9\end {array} \right] <br />
\left[ \begin {array}{c} 3\\ \noalign{\medskip}2\\ \noalign{\medskip}<br />
4\\ \noalign{\medskip}4\end {array} \right] <br />
)
Which gives me ![c= \left[ \begin {array}{c} 11/4\\ \noalign{\medskip}-1/4<br />
\\ \noalign{\medskip}1/4\end {array} \right] <br />](http://latex.codecogs.com/png.latex?c= \left[ \begin {array}{c} 11/4\\ \noalign{\medskip}-1/4<br />
\\ \noalign{\medskip}1/4\end {array} \right] <br />
)
This means that the parabola that is the best adjustment to the given set of points is

I really need to get this straight because I´m studying math on my own without the help of tutors and peers. So any help is appreciated.