Re: How to get the equation of a curve fitting experimental data?




John D'Errico wrote:
> In article <ef21814.-1@xxxxxxxxxxxxxxxx>, Indira <iremond@xxxxxxxxxxx> wrote:
>
> > I am dealing with a set of experimental data y.
> > I would like to fit a curve to this set of data and get the equation
> > of this curve in order to reach the primitive function Y of y.
> > I tried 'polyfit' which actually gives the coefficients of the
> > fitting polynomial... the problem is:
> > 1- it doesn't fit that accurately the data
> > 2- I get the following warning:
> > Warning: Polynomial is badly conditioned. Remove repeated data points
> > or try centering and scaling as described in HELP POLYFIT.
> > > In polyfit at 79
> >
> > The cubic spline interpolation fits the data better... but it doesn't
> > provide any equation for the fitting curve.
> >
> > Is there any other built-in function that could help here?

--

> Typically one must start with some form of model.
> In essence, you must provide some sort of prior
> information.

And even then things are not necessarily easy.

I did some model-based studies of seismic waves. The idea
was to use a sum-of-sines model to investigate the spectrum.
Most model-based methods either need prior information
about how many waves were present (which was one
of the questions I wanted to answer), or need to estimate the
number of waves along the way. Which presents its own
problems: What about noise? Attenuation? Other model
imperfections?

Nah, model-based analysis is something of a black art.

> The best material model of a cat is another, or preferably the same, cat.
> A. Rosenblueth, Philosophy of Science, 1945

I second that!

Rune

.



Relevant Pages

  • Re: non linear fitting
    ... > Does anyone know a way to weight different points in a function with ... I've got a curve with five points. ... > command but the fit does not go through the last two points. ... The best material model of a cat is another, or preferably the same, cat. ...
    (comp.soft-sys.matlab)
  • Re: Pls help Curve ftting
    ... > I am trying to fit the curve with data x and y to get the parameter ... preferably the same, cat. ... Rosenblueth, Philosophy of Science, 1945 ...
    (comp.soft-sys.matlab)
  • Re: How to do the simple minimal squared error curve fitting?
    ... > I have a simple time series data which basically looks like a concave ... I would like to use MATLAB to fit a curve to this ... Blindly recommending a nonlinear model to fit unknown ... preferably the same, cat. ...
    (comp.soft-sys.matlab)
  • Only 7.8 Billion (was: 9 Billion. The Population Explosion Is At And End.)
    ... This does, in fact, fit very well. ... deviations of about 10-20 million and is not a direct fit. ... The results of fitting this to the above-mentioned regularity ... surprising recent development in the world population curve. ...
    (sci.anthropology)
  • Re: comparison of two distribution curves
    ... john wrote: ... > is it as simple as saying that a straight line has a good fit to the ... Do a one-way anova on the control condition. ... Fit a curve to each condition. ...
    (sci.stat.edu)

Loading