Re: Multi variable least square data fitting
- From: Carl Barron <cbarron413@xxxxxxxxxxxx>
- Date: Thu, 15 Jun 2006 23:48:38 -0400
In article <44918c52$0$889$ba4acef3@xxxxxxxxxxxxxx>, Jean-Claude Arbaut
<jcarbaut@xxxxxxxxxxx> wrote:
Ruggero Pellegrin wrote:A'A is often ill conditioned. QR decomposition or SVD decomposition
Hi,
I'm looking for a least square formula in the form:
w=a*x+b*y+c*x^2+d*y^2
[x, y] known data
[a,b,c,d] unknown coefficients
w output variable
My calculus notions are rudimental(I stop at A*x=B)
It's almost A*X=B :-)
if X = [a;b;c;d], Y=[w1;w2;...;wn]
and A=[x1,y1,x1^2,y1^2; x2,y2,x2^2,y2^2; ...]
Then you have a linear system, with too many constraints.
You get the least squares solution by solving:
(A'*A)*X = A'*Y
therefore I'd really
apreciate a hint on using Matlab or Scilab /equivalent tool.
Won't some Saint here be so kind to help me sorting
things out
Thank you a lot in advance
Ruggero
of A yields a 'better' solution in general, SVD can be used to get
confidence infromation, if that is not needed then QR is faster.
A = QR where Q'Q = I and R is right triangular.
Rx = Q'b which is solved by back substitution.
google QR or SVD for more info...
.
- Follow-Ups:
- Re: Multi variable least square data fitting
- From: Julian V. Noble
- Re: Multi variable least square data fitting
- References:
- Multi variable least square data fitting
- From: Ruggero Pellegrin
- Re: Multi variable least square data fitting
- From: Jean-Claude Arbaut
- Multi variable least square data fitting
- Prev by Date: ? determine major singular pair
- Next by Date: Re: ? determine major singular pair
- Previous by thread: Re: Multi variable least square data fitting
- Next by thread: Re: Multi variable least square data fitting
- Index(es):
Relevant Pages
|