how to plot prediction and confidence interval
古いコメントを表示
Hi all,
I try to plot a prediction interval and a Confidence interval, of a linear regression fit. The prediction interval seem to be fine, but the confidence interval seems to be wrong. For the confidence interval I use ‘’ confint’’, see File.
Suggestions? Thanks a lot!!!
Matlab r2014a
1 件のコメント
the cyclist
2016 年 2 月 3 日
Could you upload the image you get? I don't have the curve-fitting toolbox, so I can't run your code, but I'm curious about your result.
Also, can you be more specific about why you think the confidence interval is wrong? (Sometimes people have misconceptions about the relationship between these intervals.)
採用された回答
その他の回答 (1 件)
piethal
2016 年 2 月 3 日
2 件のコメント
dpb
2016 年 2 月 3 日
Confidence interval of what??? predint is, as the name implies and the document states, the prediction interval for a new observation.
"Confidence interval" refers to a sample statistic like the coefficients or the sample mean or the like.
the cyclist
2016 年 2 月 3 日
You can generate a confidence interval for the fitted curve (as opposed to the coefficients of the curve). The only way I know how to do this is via bootstrap resampling. See my answer to this question for an example.
カテゴリ
ヘルプ センター および File Exchange で Linear Predictive Coding についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!