Leastsquares fitting of data
About this calculator
This applet allows the user to enter pairs of data  x, an independent variable; and y, the dependent variable  and then generates an equation to describe the best "fit" for that data. The applet can generate several types of bestfit equations. It can generate a linear fit, producing the standard y=mx + b equation, where m is the slope and b is the yintercept (the value of y when x=0). It can also produce a polynomial fit, typically a more accurate equation to describe the data. A polynomial fit with a degree of 3 will produce this equation:
y = c_{0} + c_{1}*x + c_{2}*x^{2} +c_{3}*x^{3}
where c_{0}, c_{1}, c_{2}, and c_{3} are the coefficients. These coefficients (called expansion coefficients by the applet).
Using this calculator
To use this calculator, follow this recipe:
 Select the type of fit you want. If you choose a polynomial fit, choose the degree.
`
 For most fits, leave "Constant" selected.
 Click on "Data". A separate window will appear, providing you with a text box. Type or copy your xy data into the box. The data should be in pairs with a space between the xvalue and the yvalue. Click on the "Submit" button
 Your coefficients will appear in the output window.

Regression Calculator

