Least squares

From: John Dee (johndee_at_hotmail.com)
Date: 02/27/05


Date: Sun, 27 Feb 2005 17:52:03 +0100

To solve a least squares problem, one minimizes
sum i=0:N | f(x_i)-P(x_i,theta) |^2
in terms of the unknown parameters theta of a polynomial P, for all values of x.
r=f(x_i)-P(x_i,theta) , represents the residual.

When r is complex, this means that the magnitude of the residue is
squared, but i don't understand why this must be squared, since the
magnitude is always positive. When dropping the square, I think one is
solving a different problem. Can someone point this out for me?

Thanks
John



Relevant Pages

  • Re: Fitting a rational function for a set of data in two column
    ... >I need to analyse the data, and fit a rational function. ... where I deliberately have normalized the denominator to have no zero at x=0. ... you can transform this into a linear least squares problem by ...
    (sci.math.num-analysis)
  • Re: fsolve - nonlinear equations
    ... but if the sum of squares ... least squares problem via lsqnonlin. ... If you need to enforce explicitly, ... I am trying to solve a system of nonlinear equations using ...
    (comp.soft-sys.matlab)
  • Re: Minimizing the Frobenius norm
    ... the frobenius norm squared is the sum of the squares of the elements of the ... hence you have here a typical "least squares" problem. ... should each of the elements of these matrices be an affine linear ... Otherwise you have a nonlinear least squares problem and need a corresponding ...
    (sci.math.num-analysis)
  • Re: Vandermonde Solution for Least Squares
    ... is it possible to find a least squares parabolic fit for a redundant ... this is a linear least squares problem: ... and in some programming language using one of the many linear least squares ...
    (sci.math.num-analysis)
  • Distribution of squares mod p
    ... how many squares are congruent ... squares mod p because the residue itself is more likely to be square ... I'm sure I haven't got useful search terms. ...
    (sci.math)