Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

How to show level of accuracy from original data FROM Re: Coefficients from Fit as a list?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg63424] How to show level of accuracy from original data FROM Re: [mg63396] Coefficients from Fit as a list?
  • From: "Lea Rebanks" <lrebanks at onetelhk.net>
  • Date: Fri, 30 Dec 2005 04:43:49 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Bob,

When using FindFit to give the best linear approximation to data set
points. Could you show me a simple example of code / function to show
level of accuracy / error deviation from original data set.

Many thanks

Lea Rebanks...

-----Original Message-----
From: Bob Hanlon [mailto:hanlonr at cox.net] 
To: mathgroup at smc.vnet.net
Subject: [mg63424] [mg63414] Re: [mg63396] Coefficients from Fit as a list?

points={{0,-1},{1,2},{3,7},{4,6},{7,9},{11,14}};

Fit[points,{1,x,x^2},x]

-0.0592841*x^2 + 1.89613*x - 0.113262

Reverse@Most@Cases[%,_?NumericQ,Infinity]

{-0.0592841,1.89613,-0.113262}

param={a,b,c};

param/.FindFit[points,a*x^2+b*x+c,param,x]

{-0.0592841,1.89613,-0.113262}

Needs["Statistics`NonlinearFit`"];

param/.(BestFitParameters/.
      NonlinearRegress[points,
         a*x^2+b*x+c, x, param])

{-0.0592841,1.89613,-0.113262}


Bob Hanlon

> 
> From: "LectorZ" <lectorz at mail.ru>
To: mathgroup at smc.vnet.net
> Date: 2005/12/29 Thu AM 02:57:28 EST
> Subject: [mg63424] [mg63414] [mg63396] Coefficients from Fit as a list?
> 
> Hi there,
> 
> How can I store the coefficients from the Fit function as a list?
> 
> Thanks,
> 
> LZ
> 
> 




  • Prev by Date: Re: "Null" appearing in exported gif
  • Next by Date: How to specify these limits in an integral?
  • Previous by thread: Re: Retaining variable/function expressions from session to session
  • Next by thread: Re: How to show level of accuracy from original data FROM Re: Coefficients from Fit as a list?