필터 지우기
필터 지우기

How to find uncertainties in the coefficients of polyfit

조회 수: 33 (최근 30일)
Chris Martin
Chris Martin 2014년 11월 24일
답변: Star Strider 2024년 1월 4일
How to find uncertainties in the coefficients of polyfit

답변 (2개)

aneps
aneps 2014년 11월 24일
편집: aneps 2014년 11월 24일
Try this:
[P,S,MU] = polyfit(x,y,N)
[y,DELTA] = polyval(P,x,S,MU) % this will give you the error
  댓글 수: 2
Chris Martin
Chris Martin 2014년 11월 25일
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 2022년 10월 8일
I too am looking for an answer to this!

댓글을 달려면 로그인하십시오.


Star Strider
Star Strider 2024년 1월 4일
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.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by