How to find uncertainties in the coefficients of polyfit

40 Ansichten (letzte 30 Tage)
Chris Martin
Chris Martin am 24 Nov. 2014
Beantwortet: Star Strider am 4 Jan. 2024
How to find uncertainties in the coefficients of polyfit

Antworten (2)

aneps
aneps am 24 Nov. 2014
Bearbeitet: aneps am 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 Kommentare
Chris Martin
Chris Martin am 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 am 8 Okt. 2022
I too am looking for an answer to this!

Melden Sie sich an, um zu kommentieren.


Star Strider
Star Strider am 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.

Kategorien

Mehr zu Interpolation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by