Curve Fitting

Using Least Squares Fit with Weights

by Yogi Savetman

Great gifts for Nerds
Can you tell time in binary?



Webspace for this site provided by
web hosting, web design, IT consulting
In many engineering and scientific fields, it is often necessary to fit an equation to a set of measured data. The results of an experiment is represented by a table of data points. It is desired to find a function, over a certain range, that is the "best fit" to these data points. These web pages will allow the user to find the coefficients to a polynomial which will "best fit" his data using the least squares method.
Program Inputs:
  • Below, enter the number of data points, i.e., the number of (x-y) pairs. <more>
  • On the next page, enter your data and choose the polynomial order desired. <more>
  • The final page gives your results. You may choose to print it. Then, using your browser's "Back button", you may return to the previous page to try a different order polynomial. <more>
Enter n, the number of data pairs
(n <= 50)
n = Disclaimer: By clicking the button to your left, you, the user, agree to accept any inaccuracies and/or errors that this curve fitting utility may calculate.   You are responsible for testing the suitability of this software for your particular application.  Although this program makes use of double precision math, the user understands that iterative mathematical methods may, at times, fail or return unexpected results.