Results 1 to 2 of 2

Thread: Least square approximation parabola

  1. #1
    Junior Member
    Joined
    Jan 2010
    Posts
    28

    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 y=c_0+c_1x+c_2x^2 to the data points (x_i,y_i) given by the set {(0,3),(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 c_0,c_1,c_2. Which means i need to find a parabola which is as close as possible.

    From Ac=b where A= \left[ \begin {array}{ccc} 1&0&0\\ \noalign{\medskip}1&1&1<br />
\\ \noalign{\medskip}1&2&4\\ \noalign{\medskip}1&3&9\end {array}<br />
 \right] , c=  \left[ \begin {array}{c} c_{{0}}\\ \noalign{\medskip}c_{{1}}<br />
\\ \noalign{\medskip}c_{{2}}\end {array} \right] <br />
and 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, A^TA 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 />

    Which gives me 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

    4y=11-x+x^2

    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.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor chiph588@'s Avatar
    Joined
    Sep 2008
    From
    Champaign, Illinois
    Posts
    1,163
    Looks good to me!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: January 3rd 2012, 10:53 AM
  2. [SOLVED] Least square approximation of a function and being in subspace W
    Posted in the Advanced Algebra Forum
    Replies: 5
    Last Post: September 22nd 2011, 11:25 AM
  3. Complete the Square? Parabola?
    Posted in the Math Topics Forum
    Replies: 9
    Last Post: February 2nd 2010, 01:53 PM
  4. Finding vertex of parabola by completing the square?
    Posted in the Trigonometry Forum
    Replies: 5
    Last Post: April 28th 2009, 02:58 PM
  5. Square in A Parabola
    Posted in the Calculus Forum
    Replies: 1
    Last Post: December 26th 2008, 12:06 PM

Search Tags


/mathhelpforum @mathhelpforum