Weighted average that takes error into account?

My data consists of values with an error (from non-linear curve fitting), for example:
value#1=2.3322e-10 error#1=8.7707e-13
value#2=2.3257e-10 error#2=1.2317e-12
What would be the most appropriate way to produce an average of the values that would take the error of each value into account?
For example, value#2 has a larger error so it would have less "weight" in the total average.
Thanks.

댓글 수: 6

Can the error ever be 0? If so then are all of the other entries to be ignored, or would they contribute anyhow? Can the error ever be negative? If one entry has error 1E-13 and another has error 1E-12 then how much relative weight should the two have ? Is the weight to be derived somehow from the overall errors,or should it be absolute ?
guyklx
guyklx 2019년 11월 9일
Hi Walter, no the error cannot be zero just a very small number.
If one entry has error 1E-13 and another has error 1E-12 then how much relative weight should the two have ? Is the weight to be derived somehow from the overall errors,or should it be absolute ?
guyklx
guyklx 2019년 11월 9일
"If one entry has error 1E-13 and another has error 1E-12 then how much relative weight should the two have ?" <= that is exactly what I'm asking.
No, the weight should not be derived from the overall errors. Every error is value specific.
Then it is really up to you. There are circumstances where the weighting should be inverse linear. There are circumstances where it should be . There are circumstances where the relationship should be exponential.
guyklx
guyklx 2019년 11월 9일
Thanks Walter.

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
Star Strider 2019년 11월 9일

0 개 추천

It depends on what you mean by ‘error’. In regressions, data are commonly weighted by the inverse of the variance, so the larger the variance, the smaller the weight.

댓글 수: 4

guyklx
guyklx 2019년 11월 9일
Hi,
The errors are derived from non-linear curve fitting.
Is it appropriate to assume the ‘errors’ are residuals?
Inverse-variance weighting characteristically assumes the variances are from a group of dependent observations at a common independent variable under essentially identical conditions.
I would assume that weighting individual observbations by the inverse of their residuals would not result in any significant improvement in the estimated parameters.
guyklx
guyklx 2019년 11월 9일
Thanks.
My pleasure.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

질문:

2019년 11월 9일

댓글:

2019년 11월 9일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by