How to find uncertainties in the coefficients of polyfit

回答 (2 件)

Star Strider
Star Strider 2024 年 1 月 4 日

1 投票

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.
aneps
aneps 2014 年 11 月 24 日
編集済み: aneps 2014 年 11 月 24 日

0 投票

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!

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

質問済み:

2014 年 11 月 24 日

回答済み:

2024 年 1 月 4 日

Community Treasure Hunt

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

Start Hunting!

Translated by