How to find uncertainties in the coefficients of polyfit

33 次查看(过去 30 天)
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

请先登录,再进行评论。


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