Curve Fitting [message #3644] |
Wed, 08 February 1995 15:57  |
Ian E. Sprod
Messages: 12 Registered: February 1995
|
Junior Member |
|
|
I am trying to fit a curve to some data using IDL but am
having a devil of a time trying to figure out which of
POLY_FIT, POLYFITW and SVDFIT to use. All I need is a quadratic fit!
Any ideas which is best/fastest/most accurate?
Thanks,
Ian
|
|
|
|
|
|
|
|
|
|
Re: Curve Fitting [message #66391 is a reply to message #3644] |
Wed, 13 May 2009 08:19  |
Craig Markwardt
Messages: 1869 Registered: November 1996
|
Senior Member |
|
|
Hi David--
On May 11, 9:47 am, David Fanning <n...@dfanning.com> wrote:
> Folks,
>
> Here is an excellent article on the perils of curve fitting
> that I think an awful lot of IDL programmers would do well
> to read, especially in light of some recent questions on
> the newsgroup:
>
> http://tamino.wordpress.com/2009/05/11/dangerous-curves/
Yep, nice article. The key point is that when doing curve fitting,
the choice of model is crucial to the analysis.
Ultimately, least squares fitting can only answer the question, is
this curve *consistent* with my data or not? The parameter values are
almost secondary. There may be many other curves that are also
consistent with the data. By not considering them, our interpretation
of the results will have a hidden bias.
If possible, it's best to choose a model based on previously known
qualities of the system being studied. [ ...which the article author
did not. ]
Craig
|
|
|