This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

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 , ....
  • 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 a predictor value that gives a particular value for the model:
New in 7