Weighted average that takes error into account?

5 visualizaciones (últimos 30 días)
guyklx
guyklx el 9 de Nov. de 2019
Comentada: Star Strider el 9 de Nov. de 2019
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 comentarios
Walter Roberson
Walter Roberson el 9 de Nov. de 2019
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 el 9 de Nov. de 2019
Thanks Walter.

Iniciar sesión para comentar.

Respuestas (1)

Star Strider
Star Strider el 9 de Nov. de 2019
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 comentarios
guyklx
guyklx el 9 de Nov. de 2019
Thanks.
Star Strider
Star Strider el 9 de Nov. de 2019
My pleasure.

Iniciar sesión para comentar.

Categorías

Más información sobre Least Squares en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by