Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Numerical Data > Statistical Model Analysis >
Mathematica > Data Manipulation > Statistics > Statistical Model Analysis >
Mathematica > Mathematics and Algorithms > Statistics > Statistical Model Analysis >

FittedModel

FittedModel[...]
represents the symbolic fitted model obtained from functions like LinearModelFit.
  • 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 x1, ....
  • 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.
Obtain a FittedModel from a nonlinear fitting:
Obtain the functional form from the FittedModel object:
Evaluate the model at a point:
Visualize the fitted function with the data:
Extract information about the fitting:
Generate noisy data for the same model:
Plot the data:
Fit a model:
Visually check the fit:
Visually examine the residuals:
Obtain a FittedModel from a nonlinear fitting:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Obtain the functional form from the FittedModel object:
In[3]:=
Click for copyable input
Out[3]=
Evaluate the model at a point:
In[4]:=
Click for copyable input
Out[4]=
Visualize the fitted function with the data:
In[5]:=
Click for copyable input
Out[5]=
Extract information about the fitting:
In[6]:=
Click for copyable input
Out[6]=
 
Generate noisy data for the same model:
In[1]:=
Click for copyable input
Plot the data:
In[2]:=
Click for copyable input
Out[2]=
Fit a model:
In[3]:=
Click for copyable input
Out[3]=
Visually check the fit:
In[4]:=
Click for copyable input
Out[4]=
Visually examine the residuals:
In[5]:=
Click for copyable input
Out[5]=
Extract the short description for a property:
A longer description:
Obtain multiple properties at once:
Plot the actual and predicted response values:
Obtain a FittedModel object for a linear fit:
For a nonlinear fit:
For a generalized linear fit:
For a logit fit:
For a probit fit:
Obtain a list of available properties for a linear model:
Properties vary for different types of models:
Perform other mathematical operations on the functional form of a fitted model:
Integrate symbolically and numerically:
Find an predictor value that gives a particular value for the model:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team