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
 Standard Error of Linear Fitting

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
Hans5 Posted - 05/23/2011 : 5:11:42 PM
Hi,

I have a set of data with error bars and I'd like to fit it with linear function. But it seems like Origin fits just those five points, without their error bars. The confidence band (green) is much narrower than error bars and standard errors of constants a and b are too low I think.




So here's my question - how to make linear fit which respects the uncertainties of X and Y? Thanks for any piece of advice.
4   L A T E S T    R E P L I E S    (Newest First)
larry_lan Posted - 05/24/2011 : 10:36:41 PM
quote:

My problem is I need to know the uncertainties of a and b.



You should go to the report worksheet and see 'Standard Error' for the uncertainties of a and b.



quote:

But if Y values are e.g. 120 +/- 50, I'd estimate the intercept to be about 110 +/- 50, not 110 +/- 5.



How can you get this conclusion?

quote:

When I use the same data without error bars, I get the same results with the same uncertainties.



See the image above, either fitted result and sd are different.

quote:

I'm trying to say that 95% confidence band of the linear function should be approximately as wide as the error bars, I think.



Again, how can you get this conclusion? Confidence bands show the limits of all possible fitted lines for the given data. In other words, say, 95% confidence band means there is 95% possibility that the best-fit line lies within the confidence bands. Generally speaking, the better the fit, the narrower the band.

As Greg mentioned above, a large error bar mean less weights the point contribute to the fitted curve. It doesn't means the confidence band as wide as the error bar.

Please read our Help document to see how Origin compute parameter values, standard error, and confidence band.

Thanks
Larry
OriginLab
Hans5 Posted - 05/24/2011 : 5:05:59 PM
I'm trying to say that 95% confidence band of the linear function should be approximately as wide as the error bars, I think.
Hans5 Posted - 05/24/2011 : 1:23:08 PM
I'm using version 8 (SR0).

My problem is I need to know the uncertainties of a and b. I see that the linear function is ok. But if Y values are e.g. 120 +/- 50, I'd estimate the intercept to be about 110 +/- 50, not 110 +/- 5.

When I use the same data without error bars, I get the same results with the same uncertainties. So those error bars can be used only for weighting the individual points, or is there any possibility to obtain those "larger" uncertainties?

Thanks.
greg Posted - 05/24/2011 : 12:33:32 PM
The sort answer is : This is very linear data even without error bars.

I am not sure what version you are using, but in every version I can recall we automatically include weighting if there are error bars in the plot. If you start from a worksheet, you have to select both Y and Y Err columns when you start the fit or add the error after starting if you have the fit dialog open.

In either case, the error bars serve only to give more or less weight to the individual points and in your case, the errors are so large, they have little effect on the fit, which is so good that even at 99.8% confidence, the band is still smaller than the errors.

I captured your data using our new Digitizer (8.5.1) and got this result:

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