Use known error bars in polyconf function
Show older comments
I would like to know if it's possible to add error bars (which I know the value for my experiment) to polyconf function in order to reestimate confidence bounds ?
Thanks in advance !
1 Comment
Andrew Newell
on 11 Feb 2011
Do you mean that you are fitting the data using polyfit(x,y,n) and you have error estimates for y?
Accepted Answer
More Answers (2)
Jeremy
on 16 Feb 2011
0 votes
2 Comments
Andrew Newell
on 16 Feb 2011
You're welcome Jérémy! In answer to question 1: there is a theoretical explanation. See chapter 7 of "Regression Analysis by Example" by Chetterjee et al.
Andrew Newell
on 16 Feb 2011
As for question 2 - I expanded the answer above.
Jeremy
on 16 Feb 2011
0 votes
2 Comments
Andrew Newell
on 16 Feb 2011
I think the least squares method assumes that scatter in the measurements about the best-fitting line is due to measurement error, so there is no need to incorporate the errors explicitly. If there is some variation that is not measurement error, then the linear model needs to be revised. But I'm not a statistician.
Jeremy
on 16 Feb 2011
Categories
Find more on Surface Style in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!