Re: Curve Fitting
- From: "Kah-Kheng Khoo" <kahkheng_khoo@xxxxxxxxxxxxxxxxx>
- Date: Sun, 9 Apr 2006 22:02:14 -0400
Its probable that you will be unhappy with the
results from many nonlinear fits. Your curves do
not really fit the shape of most common "s" surves.
Why not? These curves (at least some of them)
go through a very sharp transition, with a sharp
shoulder, but then have soft tails. So anything
like a logistic curve, if it goes through that
very sharp transition, will be absolutely flat
in its tails. A trick is to use an extra term to
soften those tails. I picked one of the curves
y3(x) and built a model with an arbitrarily
chosen logistic model. It fit reasonably well,
although I cannot promise as much for some of
your other curves. Here are models for each
of the data sets
inline1(x) = 1./(1+exp(-x))
y1(x) = 0.77437 + -0.00095003*x + ...
-0.61227*inline1((x - 0.30179)/0.56219)
y2(x) = 0.74384 + -0.00096337*x + ...
-0.58398*inline1((x - 0.35022)/0.54256);
y3(x) = 0.73301 + -0.0011195*x + ...
-0.033095*inline1((x - 6.8642)/6.5064)
y4(x) = 0.87616 + -0.00020269*x + ...
-0.093307*inline1((x - 6.9592)/3.5474)
This last curve fits very poorly, due to the
fact that it has a very asymmetrical shape from
the toe to the shoulder. Again, most simple
models will fail to represent this curve type
well.
Why do you need an explicit functional form?
A spline model can be used just as well much
of the time. And if you are choosing arbitrary
terms in nonlinear models, its hard to justify
them as seriously better, especially when the
fit is poor.
John
John,
Thanks for your reply. I've tried out some of the curves and they do
fit very nicely. I have a couple of questions though..
1. How did you derive to use the exp in function? and
2. If I wanted to derive the equation as a function of y, how would
the equation look like?
Again, thanks in advance for your help.
.
- Follow-Ups:
- Re: Curve Fitting
- From: John D'Errico
- Re: Curve Fitting
- References:
- Curve Fitting
- From: Kah Kheng Khoo
- Re: Curve Fitting
- From: John D'Errico
- Re: Curve Fitting
- From: Kah Kheng Khoo
- Re: Curve Fitting
- From: John D'Errico
- Curve Fitting
- Prev by Date: Re: vectorize (2x2) by planar coords
- Next by Date: moving averages
- Previous by thread: Re: Curve Fitting
- Next by thread: Re: Curve Fitting
- Index(es):
Relevant Pages
|
Loading