Wolfram ResearchPRODUCTSPURCHASEFOR USERSCOMPANYOUR SITES
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.

FindFit

Usage

FindFit[data, expr, pars, vars] finds numerical values of the parameters pars that make expr give a best fit to data as a function of vars.
• The data can have the form {{ ,  , ... ,  }, { ,  , ... ,  }, ... }, where the number of coordinates x, y, ... is equal to the number of variables in the list vars.
• The data can also be of the form { ,  , ... }, with a single coordinate assumed to take values 1, 2, ... .


Notes

FindFit returns a list of replacements for  ,  , ... .
• The expression expr must yield a numerical value when pars and vars are all numerical.
• The expression expr can depend either linearly or nonlinearly on the  .
• In the linear case, FindFit finds a globally optimal fit.
• In the nonlinear case, it finds in general only a locally optimal fit.
FindFit[data, expr, {{ ,  }, { ,  }, ... }, vars] starts the search for a fit with { ->  ,  ->  , ... }.
FindFit by default finds a least-squares fit.
• The option NormFunction -> f specifies that the norm f[residual] should be minimized.
• The following options can be given:
AccuracyGoal Automatic the accuracy sought
EvaluationMonitor None expression to evaluate whenever expr is evaluated
MaxIterations 100 maximum number of iterations to use
Method Automatic method to use
NormFunction Norm the norm to minimize
PrecisionGoal Automatic the precision sought
StepMonitor None expression to evaluate whenever a step is taken
WorkingPrecision Automatic the precision used in internal computations
• The default settings for AccuracyGoal and PrecisionGoal are WorkingPrecision/2.
• The settings for AccuracyGoal and PrecisionGoal specify the number of digits to seek in both the values of the parameters returned, and the value of the NormFunction.
FindFit continues until either of the goals specified by AccuracyGoal or PrecisionGoal is achieved.
• Possible settings for Method are as for FindMinimum.
• Implementation notes: see Section A.9.4.
• New in Version 5.
• Advanced Documentation.


Any questions about topics on this page? Click here to get an individual response.Buy NowFree TrialMore Information



 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy |
Sign up for our newsletter: