Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Subject: Re: Using Fit to interpolate data
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
McHale, Paul

Posts: 60
Registered: 5/29/11
Subject: Re: Using Fit to interpolate data
Posted: Jul 28, 2012 2:39 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I like Bill Rowe's:

In[12]:= params=FindFit[fiberDataDensitiesFeierabend, a Exp[b
x], {a, b}, x]

Out[12]= {a->2.06978*10^6,b->-1.61827}

and

Plot[a Exp[b x] /. params, {x, 7, 16.5},
Epilog -> {PointSize[.02], Point[fiberDataDensitiesFeierabend]}]



Here is another alternative of the same thing.

In[]:= f = NonlinearModelFit[fiberDataDensitiesFeierabend, a Exp[b x], {a, b}, x]
Out[]:= FittedModel[2.06978x10^6 * e^(-1.61827 * x) ]

In[]:= Plot[f[x],{x,7,16.5},Epilog->{PointSize[.02],Point[fiberDataDensitiesFeierabend]}]
Out[]:= (same result)

In[]:= f["FitResiduals"]
Out[]:= {-0.0000117777,0.0474942,0.0884309,0.128468,-0.038007,0.00348739}

In[]:= f["ParameterConfidenceIntervals"]
Out[]:= {{1.11329*10^6,3.02627*10^6},{-1.68272,-1.55381}}


I really like the FitResiduals you can use with object returned by NonlinearModelFit[]. There is also EstimatedVariance, BestFit. Just saying, you might want to look into it. There is an excellent youtube video.

http://www.youtube.com/watch?v=KolZZm8If9Q




Paul McHale | Electrical Engineer, Energetics Systems | Excelitas Technologies Corp.
=09
Phone: +1 937.865.3004 | Fax: +1 937.865.5170 | Mobile: +1 937.371.2828
1100 Vanguard Blvd, Miamisburg, Ohio 45342-0312 USA
Paul.McHale@Excelitas.com
www.excelitas.com



Please consider the environment before printing this e-mail.
This email message and any attachments are confidential and proprietary to Excelitas Technologies Corp. If you are not the intended recipient of this message, please inform the sender by replying to this email or sending a message to the sender and destroy the message and any attachments.
Thank you





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.