The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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}


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.

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

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.