필터 지우기
필터 지우기

Error functions in curve fitting regression problem.

조회 수: 3 (최근 30일)
Sharda
Sharda 2015년 2월 4일
답변: Torsten 2015년 2월 4일
I want to perform a curve fitting regression analysis by using absolute deviation (S=sum{i=1 to n}|y(i)-f(x(i)|,where y(i) is the target value and f(x(i)) is the predicted value ) as the error function. It seems polyfit is used for polynomial regression analysis but it predicts the coefficients in least square sense. Are there any other inbuilt functions that I can use to solve my problem. Plz help me ,I am new to matlab.

답변 (1개)

Torsten
Torsten 2015년 2월 4일
Approximation in l1 norm results in a linear optimization problem:
min: sum_{i=1}^{n} eps_i
s.c.
y_i - f(x_i) <= eps_i
y_i - f(x_i) >= -eps_i
(i=1,...,n)
Unknowns are the eps_i and the polynomial coefficients.
Use linprog to solve.
Best wishes
Torsten.

Community Treasure Hunt

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

Start Hunting!

Translated by