Re: General Curve Fitting Question
- From: Jonathan <user@xxxxxxxxxx>
- Date: Mon, 28 May 2007 11:39:52 -0400
John,
Thank you for your help. What i ended up doing was taking the log of
my data and use a fit which helped get more reasonable data.
The one thing i am still a bit confused on is setting constraints on
variables. For example, when i had the fit of y=x^25. When i had a
tight range, matlab found that with the equation y=x^a, a was 25. If
matlab can indeed determine that when fitting with 25 R^2 is ~1 then
when i set the limits from say 1 to 100 wont the value of 25
eventually be substituted into the forumla and a high value of R^2
will be found? Again I am assuming that by setting these limits
matlab will cycle through the numbers which.
Thanks again
Jonathan
John D'Errico wrote:
plot
Jonathan wrote:
Hi John,
I am well aware of the range of number and also aware of the
thefunction. I understand that you are know what the issue is butquestion.
your
comment to plot and look at the data does not address the
I would like to know why if i can get the correct values for
.variable when i have heavy constraints matlab does not runthrough
a
wider range and extract the same value once it passes it by.
Jonathan
What you do not appreciate is that when
you do a curve fit, these codes form the
difference between your data and the
prediction, square that difference and
then sum the results.
Now, when your data spans 50 orders of
magnitude, then you square numbers of
those magnitudes, what do you think
happens when you sum the results?
That sum is dominated by the last few
elements in the list. Everything else
is virtually meaningless. Again, a
standard minimization of the sum of
squares of residuals will almost
certainly not be appropriate for this
data.
Remember that Matlab works in only 16
digits of precision, not hundreds of
significant digits as would be necessary
to work with this data. When you work
in a floating point computational
environment, you need to remember
this fact.
John
- References:
- General Curve Fitting Question
- From: Jonathan
- Re: General Curve Fitting Question
- From: John D'Errico
- Re: General Curve Fitting Question
- From: Jonathan
- Re: General Curve Fitting Question
- From: John D'Errico
- General Curve Fitting Question
- Prev by Date: uitabgroup in GUIDE
- Next by Date: Re: listview text doesn't appear
- Previous by thread: Re: General Curve Fitting Question
- Next by thread: Re: General Curve Fitting Question
- Index(es):
Relevant Pages
|