Curve fitting with variance

9 visualizaciones (últimos 30 días)
yier Wang
yier Wang el 5 de Jul. de 2022
Editada: John D'Errico el 5 de Jul. de 2022
How can I fit my data with variance of each data point? I know someone recommend using weight setting, but how? Since a large variance might corresponds to a large uncertainty, I can't simply use variance for weight. What is much more reasonable in terms of mathematics?

Respuestas (1)

John D'Errico
John D'Errico el 5 de Jul. de 2022
Editada: John D'Errico el 5 de Jul. de 2022
Why cannot you just use variance for weight? In fact, that is essentially what you DO want to do. The weight on a data point will be the inverse of the square root of the variance. So a high variance translates to a low weight on that point. This is exactly what a weight is, and how it will be interpreted.

Categorías

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

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by