Results 1 to 3 of 3

Math Help - [SOLVED] Desesperate, need help for Best Approximation

  1. #1
    MHF Contributor arbolis's Avatar
    Joined
    Apr 2008
    From
    Teyateyaneng
    Posts
    1,000
    Awards
    1

    [SOLVED] Desesperate, need help for Best Approximation

    I need help for today on this exercise :
    Approximate the data in the following table \begin{array}{c|cccc} x & -1 & 0 & 1 & 2\\ \hline y & -1.1 & -0.4 & -0.9 & -2.7\end{array} with a function of the form f(x)~-e^{ax^2+bx+c} in the sens of least squares for the function ln(-f(x)).
    I understand the problem and I will simplify it for you, so you can help me. They want me to approximate the data given in the table, via a function of the type f(x)~-e^{ax^2+bx+c}, which is a too complicated problem. Therefore, in order to do it, we take the natural log of f(x), to approximate a new set of data, which will be ln(-f(x)). This is much less complicated to determine a, b and c. After this we just replace a, b and c in f(x) and we're done. But the problem is that I don't know how to get these values.
    The problem is simplificated to approximate \begin{array}{c|cccc} x & -1 & 0 & 1 & 2\\ \hline y & 0.0953 & -0.9163 & -0.105 & 0.993\end{array} with a function of the form ax^2+bx+c. To get a linear system, I must use the inner product theory to solve the problem.
    Let V be the set of f(-1), f(0), f(1), f(2) such that f is a function. Let W be a subset of V, so W={...}. Then I define the inner product between x and y as \sum_{i=1}^{n}x_iy_i. From it I must use the normal equations to solve the problem and get a, b and c. But as I don't know how to define W, nor how to construct the normal equations, I'm totally stuck on this.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by arbolis View Post
    I need help for today on this exercise :
    Approximate the data in the following table \begin{array}{c|cccc} x & -1 & 0 & 1 & 2\\ \hline y & -1.1 & -0.4 & -0.9 & -2.7\end{array} with a function of the form f(x)~-e^{ax^2+bx+c} in the sens of least squares for the function ln(-f(x)).
    I understand the problem and I will simplify it for you, so you can help me. They want me to approximate the data given in the table, via a function of the type f(x)~-e^{ax^2+bx+c}, which is a too complicated problem. Therefore, in order to do it, we take the natural log of f(x), to approximate a new set of data, which will be ln(-f(x)). This is much less complicated to determine a, b and c. After this we just replace a, b and c in f(x) and we're done. But the problem is that I don't know how to get these values.
    The problem is simplificated to approximate \begin{array}{c|cccc} x & -1 & 0 & 1 & 2\\ \hline y & 0.0953 & -0.9163 & -0.105 & 0.993\end{array} with a function of the form ax^2+bx+c. To get a linear system, I must use the inner product theory to solve the problem.
    Let V be the set of f(-1), f(0), f(1), f(2) such that f is a function. Let W be a subset of V, so W={...}. Then I define the inner product between x and y as \sum_{i=1}^{n}x_iy_i. From it I must use the normal equations to solve the problem and get a, b and c. But as I don't know how to define W, nor how to construct the normal equations, I'm totally stuck on this.
    Since the assumptions usually made to justify regression will not be satisfied for this problem the main advantage of regression is lost (that is the knowlege of the covariance matrix of the estimators of the coefictents). In which case there is no reason to fiddle around doing this problem that way. I would just throw this into a non-linear least squares tool and let it sort the coefficients out form me.

    A suitable tool is the solver that comes with Excell.

    RonL
    Follow Math Help Forum on Facebook and Google+

  3. #3
    MHF Contributor arbolis's Avatar
    Joined
    Apr 2008
    From
    Teyateyaneng
    Posts
    1,000
    Awards
    1
    I agree that it's not a nice problem. Usually the problem can be done by partial derivatives to find the minimum of a multivariable function. My teacher said that mostly of the time it won't be a linear system, and that's why the problem can be solved implanting an inner product. But in the exercise I just posted, there's something not correct. They want me to solve a problem using a Lemma or I don't know what property without even prove that it works. I mean, if you have a set of points and approximate them by a quadratic function. When you know the coefficient of the parabola (a, b and c), if you have the same set of points given, but the exponential of them. We are using the property that the best approximation of the form e^{ax^2+bx+c} will have the same coefficients than before. Which should be at least explained!
    I really hope that tomorrow I won't have to be confronted to such a problem, in my exam.
    A suitable tool is the solver that comes with Excell.
    Yes, certainly. Almost any program that can do this is better than to do it manually. (too much calculations). But I should understand how to do it handly. Thank you anyway!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] Normal approximation to binomial
    Posted in the Statistics Forum
    Replies: 7
    Last Post: March 10th 2010, 05:06 PM
  2. [SOLVED] Chebyshev polynomial approximation
    Posted in the Calculus Forum
    Replies: 1
    Last Post: July 28th 2009, 02:16 AM
  3. [SOLVED] Taylor Polynomial approximation
    Posted in the Calculus Forum
    Replies: 8
    Last Post: June 13th 2009, 09:39 PM
  4. [SOLVED] Best approximation/least squares/inner product
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: June 19th 2008, 06:44 AM
  5. [SOLVED] [SOLVED] approximation problem
    Posted in the Number Theory Forum
    Replies: 0
    Last Post: May 12th 2005, 12:32 AM

Search Tags


/mathhelpforum @mathhelpforum