This is documentation for an obsolete product.

# Fit

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.

• The data can have the form {{, , ... , }, {, , ... , }, ... }, where the number of coordinates x, y, ... is equal to the number of variables in the list vars.
• The data can also be of the form {, , ... }, with a single coordinate assumed to take values 1, 2, ... .
• The argument funs can be any list of functions that depend only on the objects vars.

Examples

### Using InstantCalculators

Here are the InstantCalculators for the Fit function. Enter the parameters for your calculation and click Calculate to see the result.

You will have to evaluate the following cells in this example to generate the data used for the plots.

Here is a table of the fifteenth through the twentieth Fibonacci numbers.

Here is a plot of this data.

This gives a quadratic fit to the data.

Here is a plot of the quadratic fit.

This shows the quadratic fit superimposed on the original data.

Clear the variable definitions.

This gives a table of the values of an exponential function for x from 1 to 10 in steps of 1.

This fit recovers the original functional form.

If you include other functions in the list, Fit determines that they occur with small coefficients.

Clear the variable definition.