The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 fit with stat. weighting: what if data point is 0?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

WildEnte

Germany
Posts

Posted - 03/09/2004 :  11:32:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic

Hola!

I searched the forums & the Origin help, but found nothing, so here I go:

I fit a gaussian to a dataset (countrates) describing a gaussian - no problem so far. Now I choose "Statistical weighting" - also no problem. I get the same result if I choose an arbitrary dataset for the weighting where I put in the sqrt(data).

But what does Origin do when the datapoint is 0? The weighting is w=1/sqrt(0) in that case, but this must be handled in a different way because otherwise I'd get a a division by zero.

I need to know this... the chi^2 depends on the value Origin puts in there (chi^2 being basically the sum over the distances between fit and datapoints normalized to the error of the according datapoints).

Thanks for your input!

easwar

USA
1965 Posts

Posted - 03/09/2004 :  10:59:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hello,

In versions prior to 7SR4, when a weighting method encountered a possible division by zero, Origin replaced the error by a smaller non-zero error from a neighboring point. We decided that was not appropriate to do and since 7SR4 we simply bring up a dialog stating that zero or extremely small values of error which are not consistent with the weighting method were found, and the fit does not proceed.

I presume you are using an Origin version prior to ver 7SR4 since you do not see the error message. I would suggest eliminating those points from your fit using the masking tool, or yourself replacing the zero error (if error comes from a different column than the y data) by what you may decide to be a suitable non-zero error value.

Easwar
OriginLab.



Edited by - easwar on 03/09/2004 11:02:35 PM
Go to Top of Page

WildEnte

Germany
Posts

Posted - 03/10/2004 :  03:52:03 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply

Thanks for your quick and helpful reply.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000