Re: Vandermonde Solution for Least Squares




In article <1139470033.970427.62210@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"siddharth" <siddharth.vaghela@xxxxxxxxx> writes:
Hi,
is it possible to find a least squares parabolic fit for a redundant
set of sample data?

since i need a parabolic fit, my coeffs r [co c1 c2] and my sample
points range from 3 to 15 samples. is it possible to solve this by
treating X = [1 xi xi^2]size = N as a vandermonde matrix even though
the number of coeffs m < N?

in simple words, can i have a non-square matrix as a vandermonde matrix
and can i solve it using the equations mentioned in Numerical Recipes
in C (pg 90 . ch 2.8)

pls give ur suggestions as to how else i can solve this problem.

thankx,
siddharth


this is a linear least squares problem:

norm( y - X*[c0;c1;c2] , 2 ) = min_{c0,c1,c2}
with
y=[y(1);...;y(n)]
and
X=[1 x(1) x(1)^2 ; ... ; 1 x(n) x(n)^2 ]
n>=3
and at least three of the x(i) pairwise different.
you solve it in MATLAB with
c=X\y ;
and in some programming language using one of the many linear least squares
solvers
see
http://plato.la.asu.edu/topics/problems/nlolsq.html

hth
peter

.



Relevant Pages

  • 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: how to analyze the orthogonal experiment data with strong dependence.
    ... linear) in order to do so. ... Takeaki Kariya and Hiroshi Kurata Generalized least squares. ... Wiley series in probability and statistics. ... If the orthogonal design was not the correct design for those ...
    (sci.stat.consult)
  • Re: 2D gaussian fit
    ... My understanding is that in 3D linear regression ... based on least squares Euclidean norm the bound is O. ... >I have an array with data and I want to fit it to a 2D gaussian. ... Find statistical mean and variance and use those as a fit. ...
    (sci.math.num-analysis)
  • Re: Line fitting
    ... This is known as a linear least squares ... spline is a "free knot" problem, ... linear regression modeling works. ...
    (comp.soft-sys.matlab)
  • Re: Frenchs Primordial Study and Schramm & Turner, 1997
    ... >> least squares analysis. ... > How did you determine that the relationship was linear, Franz? ... Fit a hypothesis that the relaionship contains a square ...
    (sci.astro)