Error functions in curve fitting regression problem.

1 view (last 30 days)
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.

Answers (1)

Torsten
Torsten on 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.

Categories

Find more on Linear and Nonlinear Regression in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!