Propagating uncertainty through a regression equation
10 次查看(过去 30 天)
显示 更早的评论
I want to propagage uncertainties through a regression equation (for now a linear one):
y= ax +b
Using the curve fitting tool I can get the values of a and b alog with their 95% conficence limits. Now my question is:
- * how can I propagage these confidence limits to y?
- * if my variable x has also uncertainty, how can it be propagated to y along with the confidence intervals of a and b?
1 个评论
dpb
2014-9-2
Star's given more general answer; for polynomials a) is available from polyfit and polyval with the optional return arguments. See doc for each for the details.
回答(1 个)
Star Strider
2014-9-2
Using the Statistics Toolbox functions nlinfit and nlparci you can get the confidence limits on the parameters. With nlpredci you can get the confidence limits on the estimated values, that are your ‘confidence limits on y’.
If x also has uncertainty, you have to use Total least squares. There are a few File Exchange Total least squares contributions, but no MATLAB toolbox functions implement it. You’ll need to explore them to see if they provide confidence limits on the the parameters and the predictions.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!