How to find uncertainties in the coefficients of polyfit

49 vues (au cours des 30 derniers jours)
Chris Martin
Chris Martin le 24 Nov 2014
How to find uncertainties in the coefficients of polyfit

Réponses (2)

aneps
aneps le 24 Nov 2014
Modifié(e) : aneps le 24 Nov 2014
Try this:
[P,S,MU] = polyfit(x,y,N)
[y,DELTA] = polyval(P,x,S,MU) % this will give you the error
  2 commentaires
Chris Martin
Chris Martin le 25 Nov 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 le 8 Oct 2022
I too am looking for an answer to this!

Connectez-vous pour commenter.


Star Strider
Star Strider le 4 Jan 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.

Catégories

En savoir plus sur Interpolation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by