Propagating uncertainty through a regression equation

조회 수: 4 (최근 30일)
Meh
Meh 2014년 9월 2일
댓글: dpb 2014년 9월 2일
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:
  1. * how can I propagage these confidence limits to y?
  2. * 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
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
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.

카테고리

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