comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Compare non-linear function fit parameters of two data sets
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Compare non-linear function fit parameters of two data sets [message #92309] Sun, 15 November 2015 02:21 Go to next message
suruchi is currently offline  suruchi
Messages: 13
Registered: September 2012
Junior Member
If we have two different sample datasets and we fit a non-linear function to these two datasets (for example an exponential function AB^x +C), then how do we compare the two fits?
Re: Compare non-linear function fit parameters of two data sets [message #92313 is a reply to message #92309] Mon, 16 November 2015 11:26 Go to previous messageGo to next message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
On Sunday, November 15, 2015 at 5:21:22 AM UTC-5, suruchi wrote:
> If we have two different sample datasets and we fit a non-linear function to these two datasets (for example an exponential function AB^x +C), then how do we compare the two fits?

If you wish to compare goodness of fit, then compare the chi-square value of each fit.
Re: Compare non-linear function fit parameters of two data sets [message #92350 is a reply to message #92309] Mon, 23 November 2015 12:06 Go to previous message
Russell[1] is currently offline  Russell[1]
Messages: 101
Registered: August 2011
Senior Member
On Sunday, November 15, 2015 at 5:21:22 AM UTC-5, suruchi wrote:
> If we have two different sample datasets and we fit a non-linear function to these two datasets (for example an exponential function AB^x +C), then how do we compare the two fits?

As a general rule, chi^2 is probably what you want. But the problem can be a bit more subtle, if you're not careful. If you're fitting two different models to a bunch of data and trying to conclude which model is better, then chi2 might not be the whole story. If the models have different numbers of free parameters, then chi2 can be deceiving. Consider a case where you have a model of the form:

y(x) = a + b * x

and a second model:

z(x) = a + b*x + c*x2+d*x^3 + .... + h*x^6

then you naturally expect z(x) to be a better fit (and lower chi2) by virtue of having more "flexibility". Look at the various "information criteria":

https://en.wikipedia.org/wiki/Information_criterion

But even this isn't very clear, because the question of model selection is not entirely closed (at least that is my understanding).

-R
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Ploting help
Next Topic: file_search problem

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:11:47 PDT 2025

Total time taken to generate the page: 0.00483 seconds