필터 지우기
필터 지우기

Nonlinear Regression with Errors in X and Y

조회 수: 4 (최근 30일)
harry wang
harry wang 2012년 3월 22일
편집: Tom Lane 2017년 12월 15일
I am dealing a series of data point X and Y, their relation is nonlinear, how can i do a nonlinear regression to obtain the fitted curve: Y=a*X^2+b*X+c? I am especially interested in the uncertainty of the quadratic coefficient: "a", i have found some programs but they only consider the error in Y without including the errors in X. Are there any way to determine the uncertainty of "a" considering errors in both X and Y?
Mike

답변 (3개)

Safwan
Safwan 2012년 3월 22일
What do you mean with the errors in X. Anyway, when you plot your data you can go to Tools->Basic fitting (in the figure) and fit your data with quadratic curve. Otherwise if you have the Curve fitting Toolbox of Matlab then you can use more functions. Last suggusted option from me, you can use the fminsearch.m function of matlab to find the value of a.
  댓글 수: 1
harry wang
harry wang 2012년 3월 22일
I can find out the value of a using what you suggested, but how to determine the uncertainty of "a"? if i know the errors range for X and Y.

댓글을 달려면 로그인하십시오.


Sean de Wolski
Sean de Wolski 2012년 3월 22일
That looks like a multiple linear regression to me.
doc polyfit
  댓글 수: 2
Safwan
Safwan 2012년 3월 22일
Hi Sean, i have a question for you. Have you ever tried to convert a polyfit block (Simulink) into C code by the embedded coder?
Sean de Wolski
Sean de Wolski 2012년 3월 23일
nope.

댓글을 달려면 로그인하십시오.


Tom Lane
Tom Lane 2012년 3월 23일
편집: Tom Lane 2017년 12월 15일
If you just had y and one or more x variables as predictors, there is information about an errors-in-variables fit here:
If you applied this literally to your example, you'd have to imagine that x and x^2 had separate errors. There is a file exchange submission that appears to address this, but I haven't played around with it:
  댓글 수: 1
harry wang
harry wang 2012년 3월 23일
I have checked out this program on total least square method, it seems it can only determine the error for the sum of squared orthogonal distance, it could not determine the errors for "a", "b", and "c".

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by