|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
FittedModel
FittedModel[...]
represents the symbolic fitted model obtained from functions like LinearModelFit.
DetailsDetails
- Properties of a fitted model are obtained from FittedModel[...]["property"].
- FittedModel[...][{prop1, prop2, ...}] gives several properties.
- FittedModel[...][x1, ...] gives the value of the best-fit function at a particular point
, .... - Normal gives the expression for the best-fit function in a FittedModel.
- FittedModel objects are returned by fitting functions such as LinearModelFit, NonlinearModelFit, and GeneralizedLinearModelFit.
- FittedModel[...][prop, ann] gives the annotation ann associated with the property prop.
- Possible properties available for a given type of fitted model are listed on the pages for functions such as LinearModelFit that generate the model.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Obtain a FittedModel from a nonlinear fitting:
| In[1]:= |
| In[2]:= |
| Out[2]= |
Obtain the functional form from the FittedModel object:
| In[3]:= |
| Out[3]= |
Evaluate the model at a point:
| In[4]:= |
| Out[4]= |
Visualize the fitted function with the data:
| In[5]:= |
| Out[5]= | ![]() |
Extract information about the fitting:
| In[6]:= |
| Out[6]= |
Generate noisy data for the same model:
| In[1]:= |
| In[2]:= |
| Out[2]= | ![]() |
| In[3]:= |
| Out[3]= |
| In[4]:= |
| Out[4]= | ![]() |
Visually examine the residuals:
| In[5]:= |
| Out[5]= | ![]() |
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »




