How to find uncertainties in the coefficients of polyfit

49 visualizaciones (últimos 30 días)
Chris Martin
Chris Martin el 24 de Nov. de 2014
Respondida: Star Strider el 4 de En. de 2024
How to find uncertainties in the coefficients of polyfit

Respuestas (2)

aneps
aneps el 24 de Nov. de 2014
Editada: aneps el 24 de Nov. de 2014
Try this:
[P,S,MU] = polyfit(x,y,N)
[y,DELTA] = polyval(P,x,S,MU) % this will give you the error
  2 comentarios
Chris Martin
Chris Martin el 25 de Nov. de 2014
actually i need the uncertainty associated with the determination of coefficients, ie i need the uncertainty associated with m, of y=mx+c
Riccardo
Riccardo el 8 de Oct. de 2022
I too am looking for an answer to this!

Iniciar sesión para comentar.


Star Strider
Star Strider el 4 de En. de 2024
An earlier version of my polyparci function already existed when this question originally posted. It calculates the confidence intervals on each parameter.
I just uploaded a significant upgrade to the original version that now additionally returns the probabilities for each parameter.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by