Re: Least squares

From: Robert Israel (israel_at_math.ubc.ca)
Date: 02/27/05


Date: 27 Feb 2005 21:57:38 GMT

In article <KUmUd.57643$EH5.56507@blueberry.telenet-ops.be>,
John Dee <johndee@hotmail.com> wrote:
>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?

Yes, without squares it's not a least squares problem, it's a least
sum of absolute values problem. There's no reason why it "must" be
squared. However, squaring gives you a problem that is easier to solve.

Robert Israel israel@math.ubc.ca
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada



Relevant Pages

  • Re: True RMS and averaging.
    ... subtracting what comes out the end from the sum of squares, ... The cost is one squaring, one add, one ... I suppose with the decaying average you also need a constant. ...
    (comp.dsp)
  • Re: power spectrum density is always positive?
    ... Randy Yates writes: ... of the things you are squaring being complex? ... it's not that because it's not a sum of squares but the magnitude ...
    (comp.dsp)
  • Re: y=x^x
    ... it's almost like you're squaring them! ... left-half plane? ... Learn how to make squares of numbers, imbecile. ...
    (sci.math)
  • Re: y=x^x
    ... it's almost like you're squaring them! ... left-half plane? ... Learn how to make squares of numbers, imbecile. ...
    (sci.math)