Mathematica 9 is now available

Documentation / Mathematica / Built-in Functions / Numerical Computation / Data Manipulation /

Fit

FilledSmallSquare Fit[data, funs, vars] finds a least-squares fit to a list of data as a linear combination of the functions funs of variables vars.

FilledSmallSquare The data can have the form , , ... , , , , ... , , ... , where the number of coordinates x, y, ... is equal to the number of variables in the list vars.

FilledSmallSquare The data can also be of the form , , ... , with a single coordinate assumed to take values 1, 2, ... .

FilledSmallSquare The argument funs can be any list of functions that depend only on the objects vars.

FilledSmallSquare Fit[, , ... , 1, x, x^2, x] gives a quadratic fit to a sequence of values . The result is of the form + x + x^2, where the are real numbers. The successive values of x needed to obtain the are assumed to be 1, 2, ... .

FilledSmallSquare Fit[, , , , ... , 1, x, x^2, x] does a quadratic fit, assuming a sequence of x values .

FilledSmallSquare Fit[, , , ... , 1, x, y, x, y] finds a fit of the form + x + y.

FilledSmallSquare Fit always finds the linear combination of the functions in the list funs that minimizes the sum of the squares of deviations from the values .

FilledSmallSquare Exact numbers given as input to Fit are converted to approximate numbers with machine precision.

FilledSmallSquare See Section 1.6.6 and Section 3.8.2.

FilledSmallSquare Implementation Notes: see Section A.9.4.

FilledSmallSquare See also: FindFit, Interpolation, InterpolatingPolynomial, Solve, PseudoInverse, QRDecomposition, FindMinimum.

FilledSmallSquare Related packages: Statistics`LinearRegression`.

FilledSmallSquare New in Version 1.

Further Examples



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.