Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: How I can fit data with a parametric equation?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg91854] Re: How I can fit data with a parametric equation?
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 10 Sep 2008 05:09:26 -0400 (EDT)

On 9/9/08 at 7:07 AM, dinodeblasio at gmail.com wrote:

>Hello everybody, I have a list of  {x,y} data and from a theoretical
>calculation I know that the data should be fitted by an equation,
>for example:

>y=ax+bx+c; where a, b, c are constant parameters.

>The question is how i can find the best fit for my data finding the
>value of this parameters.

>Do mathematica has a specific function for that?

Yes, FindFit. Assume data is a list of {x,y} pairs. Then

FindFit[data, a x + b, {a,b}, x]

will find values for a and b that represent the best fit (least
squares) line. FindFit supports non-linear models as well


  • Prev by Date: Re: How I can fit data with a parametric equation?
  • Next by Date: Re: How I can fit data with a parametric equation?
  • Previous by thread: Re: How I can fit data with a parametric equation?
  • Next by thread: Re: How I can fit data with a parametric equation?