Confidence interval for linear regression
이전 댓글 표시
Hello, every body. I have a question here. I have a data set (attached excel file) I'm using the following code to estimate 95 and 99% confidence bound on poly fit. But it is not giving me the desired results because the real answer for this data gives confidence bound like hyperbolic form an example attached (in pdf) but this routine produces straight lines bounds. I have seen polyparci.m from the great star but couldn't follow it exactly (perhaps an example in same code would be beneficial). I'm interested in obtaining results similar to Figure on page 3 of attached pdf using equation given on the same page. I would really appreciate any help or guidance for this. Thank you in advance
fitresult = fit(x,y,'poly1');
p11 = predint(fitresult,x,0.95,'observation','off'); plot(fitresult,x,y), hold on, plot(x,p11,'m--'), xlim([3 6])
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Half-Normal Distribution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
