FittedModel […]
represents the symbolic fitted model obtained from functions like LinearModelFit .
FittedModel
FittedModel […]
represents the symbolic fitted model obtained from functions like LinearModelFit .
Details
- 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, ….
- 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.
Examples
open all close allBasic Examples (2)
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:
Scope (4)
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:
Generalizations & Extensions (1)
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:
See Also
LinearModelFit NonlinearModelFit GeneralizedLinearModelFit ProbitModelFit LogitModelFit InterpolatingFunction
Function Repository: FittedModelPlot
Tech Notes
Related Guides
History
Text
Wolfram Research (2008), FittedModel, Wolfram Language function, https://reference.wolfram.com/language/ref/FittedModel.html.
CMS
Wolfram Language. 2008. "FittedModel." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FittedModel.html.
APA
Wolfram Language. (2008). FittedModel. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FittedModel.html
BibTeX
@misc{reference.wolfram_2025_fittedmodel, author="Wolfram Research", title="{FittedModel}", year="2008", howpublished="\url{https://reference.wolfram.com/language/ref/FittedModel.html}", note=[Accessed: 01-September-2025]}
BibLaTeX
@online{reference.wolfram_2025_fittedmodel, organization={Wolfram Research}, title={FittedModel}, year={2008}, url={https://reference.wolfram.com/language/ref/FittedModel.html}, note=[Accessed: 01-September-2025]}