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 
Return to the default flat view Create a new topic Submit Reply
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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Ploting help
Next Topic: file_search problem

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

Current Time: Fri Oct 10 05:48:37 PDT 2025

Total time taken to generate the page: 1.20237 seconds