フィルターのクリア

How can i find uncertainty of coefficients ?

1 回表示 (過去 30 日間)
Thar
Thar 2015 年 11 月 7 日
回答済み: Star Strider 2015 年 11 月 7 日
Hi all!
I have my data (x,y) and I plot these. Then I will do linear regression like:
p=polyfit(x,y,1);
yfit=polyval(p,x);
plot(x,y,'ob',x,yfit,'r');
gtext(['y=',num2str(p(1)),'x',num2str(p(2))])
I want to find the errors (or uncertainty) of coefficients a and b of the linear regression y=ax+b. How can i do this?
Thank you!

回答 (1 件)

Star Strider
Star Strider 2015 年 11 月 7 日
Since you’re using polyfit, use my FEX submission polyparci.

カテゴリ

Help Center および File ExchangeLinear and Nonlinear Regression についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by