Re: Closed form solution to quadratic fit?
- From: israel@xxxxxxxxxxx (Robert Israel)
- Date: 24 Jan 2007 23:10:47 GMT
In article <1169666701.131894.251790@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Stephen_B <stephen@xxxxxxxxxxxxxx> wrote:
Is there a closed form solution to this problem? I have a set of x,y
pairs, and I would like to find the quadratic a*x^2 + b*x + c = y that
minimizes the worst case (absolute value) error between the actual data
and the quadratic approximation. I'm not trying to minimize the least
squared error, but the maximum error. Thanks.
Suppose the data points are [x_j, y_j], j=1..n.
The problem may be stated as a linear programming problem with four
variables a,b,c,t (with no sign restrictions) and 2n constraints:
minimize t
subject to
x_i^2 a + x_i b + c + t >= y_i for all i
-x_i^2 a - x_i b - c + t >= - y_i for all i
Robert Israel israel@xxxxxxxxxxx
Department of Mathematics http://www.math.ubc.ca/~israel
University of British Columbia Vancouver, BC, Canada
.
- References:
- Closed form solution to quadratic fit?
- From: Stephen_B
- Closed form solution to quadratic fit?
- Prev by Date: strange linear system
- Next by Date: Re: strange linear system
- Previous by thread: Closed form solution to quadratic fit?
- Next by thread: for noel: very brilliant long retention - ofha unvu - (1/1)
- Index(es):
Loading