Filter löschen
Filter löschen

Error functions in curve fitting regression problem.

3 Ansichten (letzte 30 Tage)
Sharda
Sharda am 4 Feb. 2015
Beantwortet: Torsten am 4 Feb. 2015
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.

Antworten (1)

Torsten
Torsten am 4 Feb. 2015
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