Re: Curve Fitting



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



Relevant Pages

  • Re: Curve Fitting
    ... results from many nonlinear fits. ... not really fit the shape of most common "s" surves. ... These curves ... its pchip module. ...
    (comp.soft-sys.matlab)
  • Re: This is What Einstein Actually Did.
    ... You have seen the curves. ... Fit the 1920 Angstrom curve ... therefore will exhibit bigger magnitude changes at the same observer distance. ... Henri. ...
    (sci.physics.relativity)
  • statistical comparison of exponential association fits
    ... the snippet below simulates 4 different two-parameter exponential association curves ... the simulations and results are displayed; all other resulting statistical data are saved... ... % simulation parameters ... whether two curves differ using the outputs of FIT ...
    (comp.soft-sys.matlab)
  • Re: FarmingFisicistsFumble
    ... compensated for by the Astier fit, ... supernova are just as far below both curves. ... It also looks to me like the Hubble data is ... Larger values of Omega ...
    (uk.business.agriculture)

Loading