필터 지우기
필터 지우기

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 CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by