Curve fitting toolbox define max error

I am using curve fitting toolbox for Z=F(x,y)
I am getting results in this below form. Where I can do the setting where I can define max allowed error 0.09 .i.e max I put x & y backin generated equation max devaition I should get from Z is +-0.09 only. This is max/min error in "Z" where I can define that.
Goodness of fit:
SSE: 1.08e+07
R-square: 0.994
Adjusted R-square: 0.994
RMSE: 16.8

3 Comments

Are you confused as to what maximum error might mean? Or, as you asking how to set such a number as a maximum?
The curve fitting toolbox does not provide an option to let you indicate what the maximum residual for any data point will be, thus Z +/- some tolerance.. Surely you should see that you can always choose a model that fits so poorly that this could never be a viable option.
Will polynomial fit or any other fit equation is formed, it will give a equation, in which when x and y are fitted, will return Zeq.
I consider error = Zer-Zoriginal
the absolute error should not increase +-0.09999.
This is what I am aksing, is there any setting to do that?
As John, says, "No".
It isn't a necessarily fulfillable condition for a specific model (order of polynomial, say).
You could try successive orders of a polynomial until met the condition altho would be easily prone to overfitting that way.

Sign in to comment.

Answers (0)

Categories

Find more on Curve Fitting Toolbox in Help Center and File Exchange

Tags

Asked:

V
V
on 5 Jul 2020

Commented:

dpb
on 5 Jul 2020

Community Treasure Hunt

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

Start Hunting!