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
 All Forums
 Origin Forum
 Origin Forum
 fit with stat. weighting: what if data point is 0?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
WildEnte Posted - 03/09/2004 : 11:32:48 AM

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!
2   L A T E S T    R E P L I E S    (Newest First)
WildEnte Posted - 03/10/2004 : 03:52:03 AM

Thanks for your quick and helpful reply.
easwar Posted - 03/09/2004 : 10:59:24 PM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000