Curve fitting toolbox define max error
Show older comments
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
John D'Errico
on 5 Jul 2020
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.
V
on 5 Jul 2020
dpb
on 5 Jul 2020
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.
Answers (0)
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!